|
Important features of PHP5 version on AW GRUP Linux Web Hosting Servers
PHP4 has been configured as an Apache module on
AW GRUP Linux Hosting Servers whereas PHP5 has been configured as a CGI. This was a requirement
for supporting both versions of PHP on the Servers and allow users to conveniently
upgrade their PHP pages to support the newer version.
Configuring PHP as a CGI in a shared hosting
environment brings more security, flexibility and less restrictions. It is also
easier to track it's usage and control the resources used by it since CGI
scripts run under the website owner's account and not under the global Web Server
account.
Note that the following important features
are supported in the CGI version of PHP5 and are not available in the PHP4 Apache module
version:
- PHP scripts execute using the permissions of
any of the website's FTP users instead of the user "nobody".
- World writable folders (chmod 777) are not required for file uploads through
PHP.
- PHP scripts need a minimum of 700 permissions to execute. Permission 750 or
770 is recommended. The permissions for all non-executable files such as html, text and images
needs to be 774 or 754.
- If the folder that contains a PHP file/script is world writable (chmod 777),
it will result in an Internal Server Error. The normal folder permissions can be
771 or 751.
- php_flag or php_value can NOT be used in .htaccess files. This will
result in an Internal Server Error.
- The PHP flags that do not work in .htaccess can be moved to php.ini file in
the same folder where the PHP script exists. However, the php flag/value will be
in the format of php.ini and not that of .htaccess.
For example, the following
content from .htaccess file
php_flag register_globals off
will go the into php.ini file as
register_globals
= off
- Apache specific PHP functions do not work under PHP5.
Reference >>
-
If your .htaccess file contains "Options" directive, it should have + or
- with the directive.
IMPORTANT
- The PHP version of your website will
be automatically changed from PHP4 to PHP5 on 15th July 2008. In the
meantime, you are advised to make your PHP code compatible with PHP5
version.
- You NEED NOT change the
permissions of any of your files and folders (as mentioned in points 1 to 4) as
those changes will be taken care of automatically when we make the switch from PHP4 to PHP5.
However, permissions need to be manually set by you for any new files and folders
that are uploaded to your website after the switch to PHP5 version happens.
- If you wish to upgrade the PHP version
of your website manually before the announced date, you may do so.
Click here to read how >>
In such a case, you would need to change the permissions of your files
and folders manually in accordance with the points 1 to 4.
|