icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPsuexec » 777 – My install script says ...

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old March 14th, 2006, 4:36 AM   #1 (permalink)
Surpass Staff
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
23,926 posts
Gave thanks: 904
Thanked 768 times
777 – My install script says ...

777 – Do I need directories set to this? My install script says that I do.

No, you do not need to have directories or files set to 777, even if your installation documents tell you that you do.

When a script asks you to do this, they just want you to give read and write access to that folder. Read and write access is different with phpsuexec and is not the same.

Permissions of 755 will work in the same way – Scripts owned by your account user UID/GID will be able to write to your files, the same way that they can running under apache with 777 permissions.
You cannot manipulate the php.ini settings with .htaccess when running PHP as cgi/phpsuexec.
If you have php applications / scripts that have directories set to 777, (required to write to them under php/apache module), they would need to be changed. Also we would need to change ownerships of all files owned by user “nobody” to the user name UID/GID for your account.

htaccess

You cannot manipulate the php.ini settings with .htaccess when running PHP as cgi/phpsuexec. If you are using .htaccess with php_value entries within it, you would receive an internal server 500 error when attempting to access the scripts. This is because PHP is no longer running as an Apache module and Apache will not handle those directives any longer. All PHP values should be removed from your .htaccess files to avoid this issue. Placing a php.ini file in its place will solve this issue.
__________________
Have you ever want to draw a windmill, and after that animate it? No problem!
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On