Go back
Published : 25th Jan 2008
Read : 1737 times
Reference #65
What is suPHP? What is being changed from phpsuexec to suPHP? How to use php4 or php5 on Bigskymedia server?
suPHP is a tool for executing PHP scripts with the permissions of their owners. Currently our servers use phpsuexec which also executes PHP with the permission of their owners. However these are two different tools and there are some improvements with moving to suPHP.
Once suPHP is available on your server, you can login to your control panel and find a link 'PHP Configuration' under 'Software/Services'. On that page
1. You can switch your account's php to php4 or php5
2. You can read how to configure php and how suPHP works. It is similar to phpsuexec as explained on this link excluding some improvements mentioned below.
http://www.bigskymedia.net/faqs/read.php?cid=64
3. Download server wide php.ini for php4 or php5 and customize it for your own needs. You may need to do this regularly to keep your php settings in synch with server level settings e.g after Zend Optimizer upgrade.
Changes from phpsuexec to suPHP:
1. By default php CLI is php5. Here are the paths for your reference:
/usr/bin/php (php5 cgi)
/usr/local/bin/php (php5 cli)
/usr/php4/bin/php (php4 cgi)
/usr/local/php4/bin/php (php4 cli)
2. Some restrictions have been removed such as HTTP auth works via php, and symbolic links also work.
3. ionCube PHP Loader will be available server wide alongwith Zend Optimizer. If you use custom php.ini you will need to update it by downloading it from your control panel so that latest Zend Optimizer can load for your scripts as well.
4. If you are setting up custom php settings, the custom php.ini file will be required in a folder where the php script needs to execute. Or you can place php.ini anywhere and have this directive in public_html/.htaccess
suPHP_ConfigPath /home/username/php5-config
where username is your cpanel account username, and php5-config is just a folder name (you can name it anything) and it will pick php.ini from that folder. Yes, you can have php.ini outside of your webroot in suPHP. This is a new feature.