| PHP4 has been configured as an Apache module on Gossimer, LLC 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 filephp_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.
|
| |
Tags: Cgi Scripts, Cgi Version, Direct Download Manager, File Php, File Script, File Uploads, Fix File Permissions Manager, Flag Register, Flag Value, Global Web, Htaccess File, Htaccess Files, Internal Server Error, Linux, Linux Web, Php, Php File, Php Functions, Php Script, Php Scripts, Php Version, Redirect Manager, Scheduled Task Manager, Web Hosting package, Web Hosting Servers, Web Server Account, Website Owner, World Writable
The Redirect Manager (available ONLY with our Linux Hosting Packages) in your Control Panel gives you the ability to seamlessly forward requests for any local folder, sub-folder or file on your website to another Domain name, URL or IP address. For example, if you want http://www.your-domain-name.com/somepath to redirect to http://www.some-other-domain.com, then you can use the Redirect Manager to define a rule for this. It is very easy-to-use, and allows you to add as many such web forwarding rules as you want.
Enabling Redirection
1. Login to your Control Panel and search for the domain name for which you have purchased this hosting package. Click here to read how >>
2. In the search results view, click on the domain name. This will take you to the order details view.
3. Click on Manage Web Hosting Service in the lower toolbar.
4. In the Website Management interface pop-up that follows, go to Manage Website -> Web Server Manager -> Redirect Manager -> Add Redirect.
5. Here, specify the following details:
- Redirect from URL: The URL on your website which you wish to redirect
- Redirect to URL: The destination URL to which you wish to redirect
6. Click on Submit.
Modifying Redirection
1. Perform steps 1-3 mentioned in the above process.
2. In the Website Management interface pop-up that follows, go to Manage Website -> Web Server Manager -> Redirect Manager -> List Redirects.
3. Click on the Redirect From link to go to the Redirect Details page for that specific redirection.
4. You can modify the Redirect To URL field value.
5. Click on Submit.
Disabling Redirection
1. Perform steps 1-2 mentioned in the above (modifying redirection) process.
2. Select the checkbox adjacent to one or more redirects, which you wish to disable.
3. Click on Delete button and confirm the action by clicking on OK.
4. Click on Delete to provide the final approval for deletion.
IMPORTANT
In order to complete the action, the Web Server needs to be restarted. Random restarts affect other services running on the Server. In order to avoid this, the Server has been scheduled to restart at intervals of 20 minutes. Hence, each one of the above mentioned actions might take upto 20 minutes to be effective.
Tags: Checkbox, Control Panel, Destination Url, Details View, Domain Address, Domain Name, Final Approval, Forward Requests, Gt 2, Gt Web, Ip Address, Linux, Manage Web Hosting Service, Management Interface, Manager, Redirect Manager, Redirect Url, Search Domain, View 3, web forwarding, Web Hosting Service, Web Redirect, Web Server, Web Server Manager, Website Management