• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Michele Neylon :: Pensieri

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:

  • Debugging a Broken Website
    Debugging a Broken Website
  • Jumping on the Newsletter Bandwagon (sort of)
    Jumping on the Newsletter Bandwagon (sort of)
  • If my Music Taste was a Festival ...
    If my Music Taste was a Festival ...
  • Irish Accents are Insanely Diverse
    Irish Accents are Insanely Diverse
  • Don't Treat People (or Businesses) Like Lab Rats Princeton
    Don't Treat People (or Businesses) Like Lab Rats Princeton
  • A Few Resolutions for Lockdown 2.0
    A Few Resolutions for Lockdown 2.0

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

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Newsletter Signup

Join my newsletter

Please wait...

Thank you for signing up!

dotblog founder

Most Recent Posts

American English vs English

Aslan in the 1980s

Hans Zimmer on 60 Minutes

Paint it Black on Violin

If my Music Taste was a Festival …


Mastodon

Archives

  • Instagram
  • Twitter

Pages

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

Blogroll

  • My Mastodon
  • Tom Doyle
  • Technology.ie Podcast
  • Stewart Curry
  • Grandad

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

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