• 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:

  • computer-code-screens
    Dodgy WordPress Developer Tactics
  • Michele-Fest
    If my Music Taste was a Festival ...
  • privacy-keyboard-keys
    My Privacy Has Been Sold
  • paramount-plus-screenshot
    Paramount+'s UI Makes me Sad
  • Instafest-mneylon-2023
    Another Year of Listening to Music Visualised (sort of)
  • 289887236_594150668736944_8594055335696493546_n
    Growing my own Salad Ingredients

Filed Under: apache, Debian, Open Source, security, Ubuntu Tagged With: apache, Debian, php, servers, Ubuntu

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

dotblog founder

Mastodon

Archives

  • Bluesky
  • Instagram
  • Threads
  • Twitter

Pages

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

Blogroll

  • My Mastodon
  • Gordon Hudson
  • Stewart Curry
  • Technology.ie Podcast
  • Grandad

Stalking Links

Subscribe to Michele Neylon :: Pensieri

Blogroll

  • Blacknight Blog
  • Damien Mulley
  • Gianni Ponzi
  • Gordon Hudson
  • Grandad
  • My Mastodon
  • Paul Savage – BlackDog SEO
  • Stewart Curry
  • Technology.ie Podcast
  • Tom Doyle

Sites

  • Business Travel Tips
  • Discount Coupon Codes
  • Domain News
  • Fat.ie – my diet blog
  • Film Posters
  • Film Reviews
  • Films
  • Free Desktop Wallpapers
  • Irish Blogger Discussion Forum
  • Irish Stamps
  • Movie Trailers and News
  • Paste.ie

Footer

Site hosted in Ireland by Blacknight - Content copyright Michele Neylon

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