Home   Help Login Register  
Welcome, Guest. Please login or register.

Login with username, password and session length

Search
Free Website WooThemes - Quality Themes, Great Support
Pages: [1]   Go Down
Print
Topic: PHPsuexec - What You Need To Know  (Read 1138 times)
« on: August 30, 2007, 01:26:00 PM »
Tech Offline
Newbie

View Profile
*

iTrader: 1
Posts: 183



PHPsuexec works in much the same way that CGI (perl scripts etc) with suexec does. All PHP scripts will be run under your account user name UID/GID, rather than the user running the web server which is the case when PHP is run as an apache module.

This simply means that rules that apply to .cgi & .pl files on your current server, now also apply to PHP files. The maximum permissions permitted on directories and .PHP files are 755. Failing to have permissions set to a MAXIMUM of 755 on PHP files and their installation paths will result in a 500 internal server error, when attempting to execute them.

What if a script needs 777 for directories or files!

This is no longer required. You do not need to have directories or files set to 777, even if your installation documents tell you that you do. Permissions of 755 will work in the same way. Scripts owned by your account user will be able to write to your files in the same way that they can running under apache with 777 permissions.

If you have PHP applications/scripts that have directories set to 777, (required to write to them under PHP/apache module), they will need to be changed to 755. Also you will need to change ownerships of all files owned by user "nobody" to the username for your account.

.htaccess

You can no longer manipulate the php.ini settings with .htaccess files.

If you are using .htaccess with php_value entries within it, you will receive a 500 internal server error when attempting to access the scripts. This is because PHP is no longer running as an apache module and apache will not know how to 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.

Read more http://www.techentrance.com

Article Source: http://EzineArticles.com/?expert=Ahmad_Shafeek

Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on NetvouzShare this topic on NewsvineShare this topic on OneviewShare this topic on RedditShare this topic on RojoShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TechnoratiShare this topic on TwitterShare this topic on TipdShare this topic on YahooShare this topic on Google buzz
« Last Edit: December 31, 1969, 05:00:00 PM by Tech » Logged

Pages: [1]   Go Up
Print
Jump to:  

Untitled Document
(c) 2010 HELM, WHM, cPanel, ASP, .Net development, PHP, MySQL, MSSQL Server, SEO support forum
Powered by SMF 1.1.16 | SMF © 2011, Simple Machines | Forum style designed by PixelSlot
Web Hosting - Sitemap - XML Sitemap