Smooth Migration From Mod_php To Suphp

Oct 16, 2007

When cpanel has apache 2.2 available. I am planning on switching my servers over to it and to SuPHP from mod_php. There are hundreds of accounts on my different servers and I am worried about the transition. I know cpanel has a permission conversion script, but I dont completely trust it. The biggest issue to me though, is all the users that have php_values and flags in their htaccess files that would then be needed converted to php.ini's. Has anyone created a conversion script for doing this in an automated fashion?

I might not even convert my full servers to this and just do with the partial ones (less than 25%), but I really think it would benefit the customers and myself with the nice added layer of protection of suphp.

View 12 Replies


Moving To New VPS - Smooth Transition

Sep 11, 2008

I'm not sure if this should go in this forum or not so admins feel free to move it to the appropriate place.

I am looking at moving to a new VPS host and was just wondering what the best method of moving sites over while having the least amount of downtime.

Is it better to set up the new VPS with new nameservers and then change the nameservers for each domain once ready to move the sites over, or should I keep the nameservers and just change the IP they point to when ready to switch?

View 8 Replies View Related

Smooth Move 1&1 Strikes Again

Jul 27, 2007

Just when you thought a host could not possibly get any worse...

THEY DO! <snicker>

This time they have really, really outdone themselves. As many of you know..Plesk is not optional. You can remove's not same as starting fresh.

Well..I login to my big one (The only one I've had problems with)
to see what poor webhostautomation was talking about. A new error...I had never seen it before..and I had attempted to install Helm on this brute many times before..before handing it over to them.

1&1 has added something...and it is the source of this new error..I am almost 100% sure of it. Today..I decided...I give force me to use Plesk..I'll use Plesk.

I try to login to Plesk..guess what..this new addition prevents Plesk from working. Brilliant job, folks!

You can remake it from the primary image..but..that will do you good.

Luckily, I have a backup that does not have this new crap on it...and are restoring the vps from this "clean" backup as we speak.

View 5 Replies View Related

Mod_php Vs. Fastcgi

Jul 6, 2009

I'm looking at optimizing our dynamic content delivery process and there are some interesting claims regarding fastcgi vs. mod_php.

What I am wondering about is assuming apache serving ONLY php content, why would fastcgi perform any better than mod_php? The memory footprint of spawned workers exists in both solutions.

Wouldn't context switches and buffering in fastcgi actually lower performance?

What could be gained by using a different web server (nginx/lighty) ? The primary bottleneck would still be physical memory (assuming <255 workers) ?

View 8 Replies View Related

Apache Vs Nginx (mod_php VS Php-fpm)

Jun 23, 2009

Here is the comparison between Apache and Nginx. Request processing overhead and real-world application performance measurements included.


View 7 Replies View Related

Shared Server With Mod_php

Feb 24, 2007

I decided to stick with mod_php for my shared server. What I'm looking for is any info/links on best security implementations for mod_php.

View 4 Replies View Related

Secure Mod_php On A Shared Hosting Environment

Jan 21, 2007

I'm running a shared hosting environment and I'd like to know if it's even possible to secure the Apache while it's running mod_php. I know I could go suPHP with PHP-CGI, but that'd increase drastically the server load.

So what should I do to best secure the server?

So far now I did:

- Apache:
Installed mod_security and mod_evasive.

- PHP:
Set register_globals=OFF
Set disable_functions = ini_restore, popen, exec, shell_exec, system, passthru, proc_open, proc_close
Set safemode=ON
Set open_basedir to user's directory on virtualhost

Is that would be a secure environment for my users?

View 2 Replies View Related


Nov 13, 2007

I use "suphp" on 3 servers I own with apache 2.2.6 and suddenly yesterday (15 hours ago) one of the servers show "Internal server error" on all sites.

Tried rebuilding apache and php 4 times with no fix until I came to try handling php with cgi instead. (I always like to track who is using apache processes)

well. getting to this fix was after 10 hours of all sites not working on the server.

now (5 minutes ago) I go to to read their docs for solution to find this


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at Port 80

Why did this suddenly arise while No changes were done on server software or config?

I believe this happens after the first coming apache restart or something but dunno what was the reason yet

maybe guys have to update us when their site comes back online

View 5 Replies View Related

FastCgi Or SuPHP

Apr 1, 2009

what do you prefer?

fastcgi or suphp?

which one is better with suexec (in security and resource usage)?

View 11 Replies View Related

SuPHP Along With Suhosin

Oct 28, 2009

we have installed suPHP along with suhosin on server to prevent upload of illegal scripts but still we are having problems with scripts used for phishing web sites! We have a lot of Joomla users and other php apps installed on server.

View 5 Replies View Related

How To Remove Suphp

Mar 23, 2009

i have many problem from this

i want to remove it

i had recompiled apache without it but it still working

View 2 Replies View Related

SuPHP Or EAccelerator

Jul 22, 2009

I have a Linux server for shared hosting in which I am using Cpanel/WHM. I have PHP running as suPHP which I believe is for security. The problem I am facing is a lot of PHP based websites create load on the server and consume as much as 10% of the CPU and sometimes some script even consumes 50% CPU. I think I can reduce the load caused by the PHP scripts by installing eAccelerator. However, it does not work with PHP running as suPHP. Can anybody tell me which one should I choose of the both? Is there any other way to reduce the load on the server?

View 14 Replies View Related

Suexec And Suphp?

Feb 8, 2008

what are suexec / suphp and for what purpose we use it.

View 1 Replies View Related

SuPhp Use A Lot Of Resource

May 22, 2008

we are try SuPhp on Cpanel server but seem that is use a lot of resource, on 2 X quad core server we can't add more than 300 domains for server, whic configuration do u use? any alternative solution?

View 7 Replies View Related

PHP 5 Handler (DSO Vs SUPHP)

Jun 25, 2008

somebody suphp?

What is your advice?

View 6 Replies View Related

PHPSuExec Or Mod SuPHP

Mar 18, 2008

I'm wondering which one is the best with cPanel and Apache 1.3.41. The server will be used for shared hosting.

View 11 Replies View Related

Php 5 Handler Dso Vs Cgi Vs SuPHP

Mar 19, 2008

I wanted to ask an advice which php handler is the most secure to have on a shared server:

dso vs cgi vs SuPHP

I currently have dso with Suexec on and few accounts are getting phishing sites uploaded so I read that SuPHP is safer. What do you recommend?

If I do change the server to SuPHP should I enable Suexec as well in the whm: Configure Suexec and PHP?

View 9 Replies View Related

Suphp And Suhosin ..

Nov 27, 2008

i have install suhosin and i want to know that should i install suphp too?


do you recomend me to install suphp?

View 2 Replies View Related

Suphp On Webmin With Debian 5

Jun 24, 2009

I have just installed my vps with webmin on debian 5 and I need a guide to how to configure my system to use suphp, Ive googled it but not come back with any clear guide.

I better add Ive plunged in at the deepend and after the secuity breach at Vaserv, I can not take the easy option and install lxadmin any longer.

View 1 Replies View Related

SuPHP On A Dedicated Server

Oct 18, 2009

I'm running a dedicated server (ie my site only) which is primarily a vbulletin powered site.

I was wondering if it is beneficial in running PHP as suPHP along with suhosin?

A lot of articles I see seem to be aimed at shared setups where there are other users with various (possibly) untrusted scripts.

It is a WHM/cPanel managed server which by default is set to run PHP5 as DSO (Apache module).

suexec is installed however this only affect CGI scripts correct?

I recently had a (paid) security audit completed and I asked the question about suhosin. The reply I got was:


You do not need suhosin as you do not run suPHP we enforce posix acl's which will prevent vulnerable scripts from being able to download to the system easily and prevent the automated attacks. You can try this by installing a phpshell and you will see it's not very effective, only php functions are really of any use (such as readfile() and so on) but it will prevent things like wget xxx.

Should I recompile Apache (via EasyApache) with suPHP and suhosin or just leave as is?

View 14 Replies View Related

Register_globals With Suphp And SuEXEC

Mar 29, 2009

my server is centos and cpanel,

i setup it with suphp and suEXEC,

and i set the register_globals as off on server,

now,i had a website need register_globals on,

i search many articles and try to edit php.ini and .htaccess,

but all still show

FATAL ERROR: register_globals is disabled in php.ini, please enable it!


500 internal error

could anyone teach me how to solve the issue?

View 14 Replies View Related

Broke Something When Playing Around With Suphp

May 17, 2009

suphp and spent the better part of the day configuring a new server and then upgrading it to suphp in preparation for a migration next week.

However, I broke the links to var/www/html in the process and I don't know at what point it broke to know how to fix it.

I have a couple of links that usually work to this directory:

Both of which now come up to a 404 error from my main site:

View 12 Replies View Related

Suphp Working With Vsftpd

Apr 23, 2009

I am setting up a shared Server with apache2 and php5 + suhosin +suPHP + vsftpd.

The Directory Structure is:

1. DocumentRoot


2. For each website I would create a system account and tie it to each virutal host(as required by suPHP)

chown -R John:group1 /var/www/virtual/website1
chown -R Mary:group1 /var/www/virtual/website2
chown -R Ben:group1 /var/www/virtual/website3

DocumentRoot /var/www/virtual/website1
suPHP_UserGroup John group1

DocumentRoot /var/www/virtual/website2
suPHP_UserGroup Mary group1

3. I setup vsftpd with chroot to each virtual host.

This works very nice as long as each client has only one ftp account. But if a client(website1) wants to have multiple ftp accounts( ex. john, john100, john200), they would mess up the file ownership when they upload and change files. Since suPHP executes PHP scripts with the permissions of their owners (suPHP_UserGroup John group1, suPHP would complain their setid is mismatched because the John100 is not the suPHP_USERGROUP owner(John). I have tried Virtual Hosting with Vsftpd and Mysql, that didn't work because all the virutal users would be acting as one user (guest_username=virtualftp) when they upload and change files. I am wondering if there is ways to allow multiple ftp accounts for each Virutal host working together with suPHP. Or It is possible for ftp user to change ownership once they log in.

View 3 Replies View Related

SuPHP + CGI PHP And Zombie Processes

May 28, 2009

OS: CentOS 5
Software: Apache 2 / PHP CGI 5.8 / suPHP

Today I took the leap and switched to suPHP, rather than the Apache module. This is just what suited us best for hosting our own websites, keeping them more isolated from eachother bar a certain shared directory.

All is great, apart from I'm now noticing Zombie processes all of the time. These processes do seem to go away though, if I watch top the amount of Zombie processes will go up and down between 0 and 10.

17471 gnation 15 0 0 0 0 Z 1 0.0 0:00.03 php-cgi <defunct>
17463 gnation 16 0 0 0 0 Z 1 0.0 0:00.02 php-cgi <defunct>
17467 gnation 16 0 0 0 0 Z 1 0.0 0:00.02 php-cgi <defunct>

Are these processes a problem, considering they do leave after a while? I've read up about Zombie processes and it would seem that as long as they are closing at some point, instead of hanging around, then that's fine. Is this supposed to happen in my setup?

View 3 Replies View Related

Apache 2.2, PHP 5, SuPHP, Forcetype

May 8, 2008

Forcetype does not appear to run correctly with Apache 2.2 and SuPHP. Most information suggests changing

ForceType application/x-httpd-php


ForceType x-httpd-php

This does not work for me and php code is being displayed as text instead of being parsed by apache.

View 12 Replies View Related

SuPHP Bytes The Dust

Dec 26, 2007

After upgrading to Apache2, installing suPHP and mod_userdir, and enabling open_basedir, I can still browse other users webroot with a c99 shell script. to increase protection without needing safe_mode on?

View 9 Replies View Related

Phpsuexec,,,suphp Issue

Oct 15, 2007

My server has update to

WHM 11.11.0 cPanel 11.15.0-R17665
CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0
apache 1.3.37

and now the server run without phpsuexec so i try to recompile apache with php security and suphp module but the php.ini files still didn't work in the client's sites and there is alot of scripts want php.ini files for safemode = off , etc even the top process show me nobody not users to know who spam or other tings

i run this command

/usr/local/cpanel/bin/rebuild_phpconf --current

and i got

php has not yet been configured with EA3

with the new update cpanel i can't run php.ini files anymore

View 4 Replies View Related

DirectAdmin./SUPHP (Anyone Run This Combo)

May 13, 2007

A server I have runs DA. On this server I switched php to SUPHP. This combo has worked 99% good so far except for one big pain in the ***.

When ever a new domain, sub domain or a pointer domain is added I get a php_admin_flag error and Apache will not restart untill I rem out all instances of php_admin_flag lines in the httpd.conf file.

Stopping httpd: [FAILED] Starting httpd: Syntax error on line 31 of /usr/local/directadmin/data/users/****/httpd.conf: Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not included in the server configuration [FAILED]

Has anyone solved this? Apperantely the new version of DA was suppose to fix this but I upgraded DA today and at the end I ended having to rem out all php_admin_flag instances for all domains on that server which = good times.

View 2 Replies View Related

SuPHP - 600 Permissions Mess Up Css/images

Jul 10, 2009

I'm using suphp to secure a shared web hosting server and am confused about one issue I'm having. It is my understanding that using suphp, you should be able to chmod 755 all directories and chmod 600 all files since apache runs the .php files as the user.

However, when I chmod 600 all files, the formatting of the sites gets messed up. It loses all css and if you try to view image files in the browser you get a permission denied error. Why is that?

As a temporary solution, I can chmod 644 all files and then 600 only sensitive files like config files (wp-config.php for WordPress for example), but I'd rather just chmod 600 everything.

Can anyone explain why 600 doesn't work?

With 644 permissions, any user could upload a script like:

$filename = realpath("/home/user/public_html/wp-config.php");
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
echo '<textarea name="textareaName" rows="46" cols="103">'.$contents.'</textarea>';
and view another users's file if it is 644.

View 4 Replies View Related

Alternative To SuPHP (phpsuexec) For Plesk

Jul 25, 2009

As all we know suPHP or phpsuexec are coded to let apache run the script with file's owners name and not the "nobody"

1- Plesk does not support phpsuexec but its possible to setup suPHP on plesk! Any comment, suggestion experience?

2-My alternative
I create a group for each single user named "apacheUSERNAME" and will assign both apache and the user to this group.

Then I will change the group for any file/directory that needs 777 permission.But instead 775.
Again suggestions are appreciated

3-Final comparator should be server load; How will be the server performance(load) with or without suPHP or phpsuexec

View 0 Replies View Related

Copyrights 2005-15, All rights reserved