Dreamlink.Net
Please Login or Register

Announcements

Dreamlink.Net Inc. Web Hosting - Powered By Kayako SupportSuite
 
 php 5.2.9 with suphp and zend 3.3.3
Posted By: Tony M. On: 11 Mar 2009 01:53 PM
Details Apache 2.2 recompiled on all servers

Dear Valued Client

Our servers have been recently updated to Apache 2.2 and php 5.2.9 (suphp) .

This is the most flexible way of serving PHP requests and tends to be very secure.
PHP scripts are executed by the user who owns the VirtualHost serving the request.

Are you receiving Internal server errors with your php scripts ?
========================================================
First of all you should check your error log (you can check your error log using your Control panel).
On a SuPHP system, permissions should not be more than 755 as such permissions are unnecessary.
Chmod down to 755 (or lower as appropriate) and it should stop throwing those errors.

SuPHP performs various security checks before executing PHP scripts.
Scripts are run as the user who owns the VirtualHost, and as long as this use has permissions sufficient to
write to a file/directory, PHP scripts will also have the ability to do so.

You may receive internal server errors also due to php_flag used on your .htaccess
=========================================================
Apache directives (.htaccess) like php_value are NO more valid with suphp.
It is possible to place a php.ini file in your /home/user/public_html directory
and specify these types of values there.

For example if you was using and .htaccess file with
php_flag register_globals on

now you should create instead a php.ini file with
php_flag register_globals on

We do NOT reccomend the usage of register_globals .

Please read the php security chapter on Using register_globals for related information
http://www.php.net/manual/en/security.globals.php

For information about emulating register_globals being On or Off, see this FAQ.
http://www.php.net/manual/en/faq.misc.php#faq.misc.registerglobals

Also if we do not reccomend it (due to security reasons), if your website still requires register_globals to be "on",
create a php.ini file containing this line
php_flag register_globals on
and place it in your /public_html directory:

We do not reccomend the usage of register_globals and we do not recoomend the usage
of php scripts which requires register_globals on.
This feature is DEPRECATED , relying on this feature is highly discouraged.


Please remember that this directive (register_globals) will be removed in PHP 6
http://www.php.net/manual/en/ini.core.php#ini.register-globals


Best Regards,
Tony, Server Administrator
Dreamlink - Technical Support



 Back
Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search