Jump to content


Shared servers being converted to suPHP for better security and file control


7 replies to this topic

#1 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 30 August 2008 - 12:59 PM

The days of not being able to edit or delete a file or folder owned by nobody are over! SharkSpace will be converting all shared servers to suPHP which greatly increases server security and fixes the issue of scripts creating files owned by nobody (which makes them impossible to delete by the user.)

How does it increase security?

Files no longer need to be 666 and folders no longer need to be 777 to be writable. The new writable permissions are:

Files: 644
Unwritable Files: 444
Folders: 755

This greatly increases security by not allowing outside users to edit files with writable permissions. We will change all your current files and folders to the new permissions.


When will the server I am on be converted?

We will post notices in this forum when each server is converted.

Things to note.

PHP flags no longer work in the .htaccess file. If you need to enable things such as register globals you can follow the below guide(we will add most of these things for you):

In .htaccess under public_html, add the following:
suPHP_ConfigPath /home/user/public_html 
<Files php.ini> 
order allow,deny 
deny from all 
</Files>
Note: You must change user to your account username.

Create a php.ini file under public_html add any of the below settings that you need:

register_globals = On 
upload_max_filesize = 30M 
post_max_size = 30M 
memory_limit = 30M 
upload_tmp_dir = 30M 
max_execution_time = 180
Using a php.ini file may cause issues if your scripts use Zend Optomizer or IonCube encoding. You then just need to add the following to your php.ini file to resolve the issue:


Note: this may not be needed. Please test before using.
[Zend] 
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so 
zend_optimizer.optimization_level=15 
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3 
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3 
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so 
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


MIMEtypes

If you added a Mimetype to the system in order to run html files as php scripts you will have to remove it and add an ApacheHandler instead. Log into Cpanel, then click on Apache Handlers and add the following:

Extension: .html
Handler: application/x-httpd-php


Errors you may encounter

If you get a 500 error when accessing your site you either have code that doesnt belong in your .htaccess file or you changed the permissions on a file to 666 or a folder to 777.

Check your Cpanel Error Log

The cpanel error log will give you details about any error you may experience.

Drupal and other Content Management Systems:

In older versions you may experience a few errors, such as "Call to undefined function: user_access()". Add the following code to php.ini to fix it:
session.save_handler = files
session.cache_limiter = nocache


#2 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 30 August 2008 - 01:02 PM

The following servers are already running suPHP:

Black
Brown
Copper
Gold
Future
Orange
Silver
White

#3 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 31 August 2008 - 05:15 PM

The follow servers now are running suPHP:

Green
Maroon
Grey

#4 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 01 September 2008 - 11:02 AM

The following servers are now running suPHP:
Yellow
Atlantic
Discovery
Eagle

#5 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 02 September 2008 - 08:18 AM

Here is an overview of suPHP: http://www.blog.shar...ction-to-suphp/

The rest of the servers will be switched to suPHP starting on September 12th.

#6 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 12 September 2008 - 11:51 AM

The following servers are now running suPHP:

Aqua
Beige
Red
Maroon

#7 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 12 September 2008 - 07:00 PM

The following servers are now running suPHP:

Burgundy
Pink
Saturn


#8 Scott-E2

    Administrator

  • Administrators
  • 1,053 posts

Posted 13 September 2008 - 06:02 PM

The rest of the servers have been switched to suPHP.

All SharkSpace servers are now running suPHP.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users