• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Michele Neylon :: Pensieri

Technology, Marketing, Domains, Thoughts

Working With SuPHP Permissions and Ownership

January 8, 2012 by Michele Neylon Leave a Comment

debian-openI switched one of my web servers over to use SuPHP a few weeks ago, as it's a lot more secure.

However moving from mod_php to suPHP does require a small bit of tweaking of files and directories.

Under mod_php you can easily end up with a lot of files and directories being owned by the Apache user, which on Debian / Ubuntu is "www-data". You'll need to change the ownership of all those files to the website user.

The other thing to watch out for is permissions - setting them to 644 should fix any errors you're getting.

Another issue I ran into was this error in the logs:

SoftException in Application.cpp:564: Directory "/home/www/www.xxxx.xx/web" is writeable by group

Solution is to chmod 755 the web directory.

After doing a default install and configuration of SuPHP you might run into difficulties running PhpMyAdmin, as the standard SuPHP configuration will forbid it.

The fix is to tweak the settings add the following to your main suphp.conf :

<Directory /usr/share/phpmyadmin>
        suPHP_Engine on
    </Directory>

 

Related Posts:

  • Rebooting IrishBlogs.comRebooting IrishBlogs.com
  • Checking Apache’s VHost ConfigurationChecking Apache’s VHost Configuration
  • OSX Essential Apps – 2018 EditionOSX Essential Apps – 2018 Edition
  • Switching Over to Michele.blogSwitching Over to Michele.blog
  • Mod_Rewrite Help Needed!!Mod_Rewrite Help Needed!!
  • Fixing the OpenGraph Image Displayed in XenForoFixing the OpenGraph Image Displayed in XenForo

Filed Under: apache, Debian, Open Source, security, Ubuntu Tagged With: apache, Apache HTTP Server, Debian, php, servers, Ubuntu, Web server, WWW

Michele is founder and CEO of Irish hosting provider and domain name registrar Blacknight. Read More…

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Primary Sidebar

dotblog founder

Most Recent Posts

Sacha Baron Cohen Takes Aim at Social Media Platforms

Brexit as a Burger

Le Grand Bleu Cinema Concert Tour

Boris Johnson vs Monty Python

Geeky Brexit Meme

Archives

  • Instagram
  • Twitter

Pages

  • About Me
  • About This Site
  • Archives
  • Comments Policy
  • Contact Me
  • Privacy

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

Copyright © 2019 · Magazine Pro on Genesis Framework · WordPress · Log in