Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 1st February 2011, 19:33
talkingnews talkingnews is offline
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 15
Thanked 6 Times in 6 Posts
Default What are the required permissions for getting mod-php working?

Short of changing the entire /var/www to 777 (bad idea!), I almost give up.
Been all over the web, tried a few options, still getting "permission denied" and complaints about symlinks, despite them being allowed in the conf and vhost file.
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2011, 13:26
talkingnews talkingnews is offline
Member
 
Join Date: Jan 2011
Posts: 67
Thanks: 15
Thanked 6 Times in 6 Posts
 
Default

Right, I found the answer at 1am!

In the vhost.conf file, you have to change all instances of any
/var/www/symlink to site
to
/var/www/clients/client/site/

then you have to go to the root of the vhost in question and

chown -R www-data:www-data *

(assuming apache is running as that) otherwise you need to change all perms to 775 which is probably a bad thing.

Now I've got it working, the site runs like a rocket! I've gone from 5-6 seconds lag while suphp gets going on first load, to 0.17 seconds for first page load!

Of course, if I could sort out WHY suphp and any type of CGI is so slow on initial load with all the prefork settings right and loads of spare RAM, that would be better, but I've given up on that after a week and speed was the need.
Reply With Quote
Reply

Bookmarks

Tags
apache2, mod-php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot add Mailboxes after PHP-Update hfr Installation/Configuration 5 7th November 2009 21:09
FFMPEG maybe not an php library? Mkipz Installation/Configuration 2 14th September 2009 22:13
ISPConfig virtual web pages not working mike_phi Installation/Configuration 8 7th May 2008 17:51
Virtual Hosting Not Working stirfry Installation/Configuration 26 7th August 2007 11:53
Transferring Hard Drive to new System latcarf Installation/Configuration 26 20th February 2007 19:51


All times are GMT +2. The time now is 20:23.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.