Determining Process Intense Tasks With Suexec Installed
i got mod suexec / phpsuexec installed on the server recently. if i click on view cpu/memory/mysql usage in WHM i can see this in the first row:
<username><domain>3.170.110.1
Top Process%CPU 145/usr/bin/php
Top Process%CPU 100/usr/bin/php
Top Process%CPU 81.7/usr/bin/php
now this info is pretty useless. ok, php is evidently bursting to pretty damned high cpu levels. BUT, what are the actual FILES causing this load?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Alias To A Php Script (php Suexec Installed)
i install roundcube webmail (php) i want to add an alias like /mail for all domain to /usr/src/roundcube i add this command in httpd.conf: Quote: Alias /mail /usr/src/webmail but because suphp installed , apache run it under root user (or user assigned to it) and suphp produce "500 Internal server Error"
View Replies!
View Related
Determining Requirements
with a single server running PHP and MySQL. What sort of hosting requirements do you think I would need for... A site with a mysql db with 100,000+ records in a single table and executing simple select statements on the table with 100,000+ records at a rate of 50 queries per second? (All other things should be negligible at this scale).
View Replies!
View Related
Determining Location
im planning to setup a loadbalencer system soon and im wanting to redirect users based on their location, im wondering if anyone knows how best to do this (servers will be hosting streaming media and load balancer will be la linux based server
View Replies!
View Related
Determining Operating System (Linux)
Without having all of the operating systems at my disposal for testing, I would like to figure out a way to determine the operating system of a remotely accessed Linux machine. It seems pretty strange though, since cPanel reports both machines I am using as being CENTOS Enterprise 4.5 i686, yet one's uname -a reports: Code: Linux hostsentry.crucialwebhost.com 2.6.9-023stab044.4-enterprise #1 SMP Thu May 24 17:41:23 MSD 2007 i686 i686 i386 GNU/Linux Code: Linux main.7kb.org 2.6.9-55.0.6.ELsmp #1 SMP Tue Sep 4 21:36:00 EDT 2007 i686 i686 i386 GNU/Linux I'm assuming there is a way to determine the OS from this information. Anyone know how?
View Replies!
View Related
Creating/Managing Cron Tasks With PHP
I want to create a simple PHP script to manage cron jobs. Say I want to create a front end like a control panel. I know, many of the WHT members are using custom coded control panels, and surely they have implemented this already. What is the right approach to do it ? - Using exec() function and execute commands - Write directly to /var/spool/cron/<username>
View Replies!
View Related
About Suexec
what fellow users here set --with-suexec-docroot in Apache installations when cgi-bin folder is outside the public_html folder. Looks like setting it to /home is the only way.
View Replies!
View Related
Litespeed Suexec
I installed lsws without apache conf file(httpd.conf). Then I created a new virtual host in "suEXEC" Template. I added a new user via SSH and made home dir for him and chowned his home dir + all his files to hisusername:hisusername. His home dir(/home/user/) is chmoded to 755 and his /public_html to 711. It worked fine but after that I installed phpbb3 forum and when I tried to chmod config.php to 600 I got an error on the forum: Fatal error: require() [function.require]: Failed opening required './config.php' (include_path='.:/usr/local/lib/php') in /home/username/public_html/common.php on line 127 When I was using lsws with apache conf file and I had configured suEXEC + suPHP for apache I was able to chmod config file to 600 and it worked fine. I have no idea what could be the problem now. It works fine when I chmod config.php to 755 but for security reasons I would need a way to configure it to 600. LiteSpeed si running as nobody:nobody. EX. APP settings: LSAPI App $VH_NAME_lsphp uds://tmp/lshttpd/$VH_NAME_lsphp.sock SCRIPT HANDLER settings: Suffix: php5 Type: LiteSpeed API Name: [VHost Level]: $VH_NAME_lsphp
View Replies!
View Related
SuExec Effect?
I want to ask about suexec. Currently I disable suexec in my dedicated server. Which is better, to enable it or not? What will happen to existing sites folder permissions if suexec is turned on?
View Replies!
View Related
Register_globals With Suphp And SuEXEC
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! or 500 internal error could anyone teach me how to solve the issue?
View Replies!
View Related
Configure Suexec And PHP
I have a problem in the last apache upgrade (apache 2.2.8 + php5) step . exactly in "Configure Suexec and PHP" I found this option doesn't have multi values as CGI or Suphp just I found none : PHP 5 Handler none PHP 4 Handler none I must to return to build apache1 with php4 for I can see suphp and cgi in "Configure Suexec and PHP" "PHP 4 Handler" option .
View Replies!
View Related
Setting Up Php/SuExec
(what I did find was for old apache, not 2.2) I have Fedora Core 5 wih Apache 2.2.2 and VirtualHosts setup, currently running mod_php and mod_suexec. I would like to switch to use php with suexec because I need to edit files with php that "nobody" doesn't have access to (777 not an option). Right now mod_suexec works great with Perl, but not PHP. So I ask, how can I get them to play nice?
View Replies!
View Related
Apache 2.2 + Suexec + Mod_fastcgi
First uninstall your existing PHP. Install httpd-devel Second compile a new PHP with support of cgi/fcgi: Code: ./configure --prefix=/usr/local/php-fcgi --enable-fastcgi --enable-memory-limit --with-mysql=shared,/usr --enable-discard-path --enable-force-cgi-redirect --with-imap=shared,/usr --with-gd=shared,/usr --with-libxml=shared,/usr --with-mbstring=shared --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-kerberos --with-imap-ssl make make install To solve the errors during configure problems take a look at this: [url] Next you'll need to download/install fcgid: Code: wget http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz tar xfvz fcgi-2.4.1-SNAP-0311112127.tar.gz cd fcgi-2.4.1-SNAP-0311112127 ./configure make make install Next you'll need to compile/install mod_fastcgi for Apache 2.2.2: Code: wget [url] tar xfvz mod_fastcgi-SNAP-0404142202.tar.gz cd fcgi-2.4.1-SNAP-0311112127 Now we need to apply a patch so mod_fastcgi compiles with Apache 2.2. Put the following into a file: Code: diff -ruN mod_fastcgi-2.4.2/Makefile.AP2 mod_fastcgi-2.4.2.for22/Makefile.AP2 --- mod_fastcgi-2.4.2/Makefile.AP2Mon Jul 29 03:36:34 2002 +++ mod_fastcgi-2.4.2.for22/Makefile.AP2Mon Dec 5 13:05:21 2005 @@ -20,8 +20,6 @@ all: local-shared-build -install: install-modules - clean: -rm -f *.o *.lo *.slo *.la diff -ruN mod_fastcgi-2.4.2/fcgi_buf.c mod_fastcgi-2.4.2.for22/fcgi_buf.c --- mod_fastcgi-2.4.2/fcgi_buf.cTue Feb 4 00:07:37 2003 +++ mod_fastcgi-2.4.2.for22/fcgi_buf.cMon Dec 5 12:59:01 2005 @@ -50,7 +50,7 @@ { Buffer *buf; - buf = (Buffer *)ap_pcalloc(p, sizeof(Buffer) + size); + buf = (Buffer *)apr_pcalloc(p, sizeof(Buffer) + size); buf->size = size; fcgi_buf_reset(buf); return buf; @@ -487,7 +487,7 @@ char *new_elts; int new_nalloc = (arr->nalloc <0>nelts + n; - new_elts = ap_pcalloc(arr->pool, arr->elt_size * new_nalloc); + new_elts = apr_pcalloc(arr->pool, arr->elt_size * new_nalloc); memcpy(new_elts, arr->elts, arr->nelts * arr->elt_size); arr->elts = new_elts; diff -ruN mod_fastcgi-2.4.2/fcgi_config.c mod_fastcgi-2.4.2.for22/fcgi_config.c --- mod_fastcgi-2.4.2/fcgi_config.cThu Oct 30 02:08:34 2003 +++ mod_fastcgi-2.4.2.for22/fcgi_config.cMon Dec 5 12:59:01 2005 @@ -50,7 +50,7 @@ /* Convert port number */ tmp = (u_short) strtol(portStr, &cvptr, 10); if (*cvptr != '' || tmp <1> USHRT_MAX) - return ap_pstrcat(p, "bad port number "", portStr, """, NULL); + return apr_pstrcat(p, "bad port number "", portStr, """, NULL); *port = (unsigned short) tmp; @@ -75,11 +75,11 @@ tmp = strtol(txt, &ptr, 10); if (*ptr != '') { - return ap_pstrcat(p, """, txt, "" must be a positive integer", NULL); + return apr_pstrcat(p, """, txt, "" must be a positive integer", NULL); } if (tmp <min> USHRT_MAX) { - return ap_psprintf(p, ""%u" must be >= %u and <u>= %u and <u cp=''>= %d", *num, min); + return apr_psprintf(p, ""%d" must be >= %d", *num, min); } return NULL; @@ -126,9 +126,9 @@ *num = (u_int)strtol(val, &ptr, 10); if (*ptr != '') - return ap_pstrcat(p, """, val, "" must be a positive integer", NULL); + return apr_pstrcat(p, """, val, "" must be a positive integer", NULL); else if (*num < min) - return ap_psprintf(p, ""%u" must be >= %u", *num, min); + return apr_psprintf(p, ""%u" must be >= %u", *num, min); return NULL; } @@ -147,9 +147,9 @@ *num = (float) strtod(val, &ptr); if (*ptr != '') - return ap_pstrcat(p, """, val, "" is not a floating point number", NULL); + return apr_pstrcat(p, """, val, "" is not a floating point number", NULL); if (*num <min> max) - return ap_psprintf(p, ""%f" is not between %f and %f", *num, min, max); + return apr_psprintf(p, ""%f" is not between %f and %f", *num, min, max); return NULL;
View Replies!
View Related
FastCGI- (apache 2.2, Php 5.1, Suexec)
I have just switched from mod_php to fastcgi + suexec, but now trying to use the ab command times out : ab -n 10000 -c 100 [url] This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0 Copyright 1996 Adam Twiss, Zeus Technology Ltd, [url] Copyright 2006 The Apache Software Foundation, [url] Benchmarking www.example.com (be patient) Completed 1000 requests Completed 2000 requests Completed 3000 requests Completed 4000 requests Completed 5000 requests Completed 6000 requests Completed 7000 requests apr_poll: The timeout specified has expired (70007) Total of 7422 requests completed Then I get a bunch of emails from LFD ....
View Replies!
View Related
Howto For Suexec, Php As Cgi
I've been attempting to develope a server running apache 2+, php 5, and I was running into issues installing php as cgi.... All my scripts require The shebang: #!/usr/bin/php at the top to execute properly. Anyone know a good site/how to that explains how to do this? has anyone else here run suexec with apache? If so, could you tell me what you compiled it with? Just curious, as I think i'm doing everything right, yet I still fail
View Replies!
View Related
Disable/Bypass Suexec Per Vhost Domain
I am running on; Plesk versionpsa v8.0.1_build80060613.20 os_CentOS 4.2 Operating systemLinux 2.6.9-023stab033.6-smp License key numberPLSK.00170782.0006 I need to be able to access cgi between vhost domains. In particular one frequently updated file located 'centrally' in the cgi-bin of one of the vhost domain. I would like to be able to have other vhost domains be able to access this file but suexec won't let that happen. I have searched around and tried to following; Created vhost.conf file in the conf directory of one of the domains. The vhost.conf file contained (with no #): # <IfModule mod_suexec.c> # SuexecUserGroup userid psacln # </IfModule> I ran; /usr/local/psa/admin/bin/websrvmng -u --vhost-name=<domain name> Then reboot. The result was all the vhosts stopped working. I reset the websvrmng, things returned to normal. Then I tried updating the httpd.include file adding (with no #); # <IfModule mod_suexec.c> # SuexecUserGroup userid psacln # </IfModule> Then reboot. The result was the same, all vhosts stopped working. Does anyone have an idea how I can achieve this? I know I can disable suexec all together but that wreaked a little havoc with the cgi app when I tried that.
View Replies!
View Related
Blank Php Pages- Mod_cgi- Suexec? W00t
I am having trouble with blank pages on some web applications; ccHost and phpBB3. I can get these to run on a seperate VPS, that isn't as securely locked down and the dedi --- but it is of course the dedi I want to run these apps from. I simply get blank pages when trying to access ccHost. As if PHP isn't parsing it. But in a phpBB3 installation I'm getting random blanks, some of which I can refresh out of ... What's even weirder: sometimes when I try to viewtopic - or call some function ... I get the download dialogue!? (Do you want to open or download index.php for instance). I've been trying loads of stuff. It seems that mod_security isn't running anymore, so that isn't the issue. Could mod_cgi or mod_suexec perhaps be the cheeky offenders? I have absolutely no idea. Just hoping someone can help me where to look... Or how I can debug this issue. I'm at a loss in how to continue. Any help will be very appreciated. Some details... The server is hardened and secured, but... I'm running other CMS installs on the server, and they are working fine. Even a phpBB2 install is running smooth. Besides this I'm using LAMP setup on CentOS and webmin is running.
View Replies!
View Related
PAM Authentication Failure With FTP And Apache Suexec
i am trying to setup a VPS with: Apache Suexec, so that each VHosts runs under there own username FTP for each of the vhosts. I have made a username aplushost and FTP works fine when i login, however when i try and get Suexec to work it shows a 403 permision dined, even know the whole directroy path is with correct permsions. "/home/aplushost/www" However if i chown the directroy "aplushost" to apaches username , currently "nobody" i have tried with "apache" and many others the page is displayed correctly. The weird thing is that the www directroy can still be set to the aplushost username and files work inside. However due to changing the privalages of the folder aplushost ftp now fails to login due to the folder not being owned by the ftp user "aplushost". So im stuck between only having one item working at a time. i have put some content of my config files. ----------httpd.conf vhosts------------------ <VirtualHost 87.117.196.247> DocumentRoot "/home/aplushost/www" ServerName aplushost.co.uk SuexecUserGroup aplushost aplushost <Directory "/home/aplushost/www"> allow from all Options +Indexes </Directory> </VirtualHost> ---------------passwd file---------------- aplushost:x:500:99::/home/aplushost/www:/sbin/nologin (Have tried with many different shells, no difference, also tried with home directroy as just /home/aplushost)
View Replies!
View Related
Using Vhost.conf To Override Suexec Directive In Httpd.include
I need to change the server configuration on Plesk such that the SuexecUserGroup directive is removed, so the user's cgi scripts run as the apache user (www-data), rather than as the user specified in that directive (the domain user), as on an unshared (non-VPS) server. I don't care about security from other domains because only one domain runs on it anyway, so making the user domain-specific is irrelevant from a security point of view and stops some of the user's code working. This directive is found in /var/www/vhosts/domainname.com/conf/httpd.include and is: SuexecUserGroup user psacln (this line appears twice, for ports 443 and 80) I understand that this file can't be modified, as it may be overwritten by Plesk. Therefore additional directives must go in the vhost.conf file. Will the following vhost.conf file do the trick and override the directives in httpd.include? <VirtualHost domainIP:443> SuexecUserGroup www-data www-data </VirtualHost> <VirtualHost domainIP:80> SuexecUserGroup www-data www-data </VirtualHost>
View Replies!
View Related
Where Is My PHP Installed
All my .php pages are returned blank because a developer I hired installed php 5.0.4 WITHOUT mysql support as you see in the following: PHP 5.0.4 Info: Code: Configure Command './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' Server API Apache 2.0 Handler Virtual Directory Support disabled Configuration File (php.ini) Path /php.ini Scan this dir for additional .ini files /etc/php.d Now I'd like to recompile php WITH mysql support but I don't know where its located on the server and how should I recompile.
View Replies!
View Related
PHP5 Installed, Is Mysql5
is mysql5 required for php5? I currently have php4&5 installed with mysql4 If I install mysql5 is it backwards compatible? Are there any known issues with mysql5 on a server like performance issues? I'm not looking to have scripts recode at this point in time.
View Replies!
View Related
Installed Memcache But Not Working
If anyone is familiar with memcache... I could really use your help. I've installed memcache, added the extension to php.ini and it's all showing up when I do phpinfo... However, when I try to run memcache, I always get that I cannot connect and when I try 'memcached' or 'memcache' from the command line, it always says it can not recognize it.
View Replies!
View Related
Installed Zend Optimizer
I tried to install some scripts and it required to install Zend Optimizer. I have already install it but while trying to install script, it still says that Zend Optimizer has not installed yet.
View Replies!
View Related
Zend Optimizer Not Installed
I found that php.ini in a directory caused Zend to disappear [root@server ~]# php -vPHP 4.4.8 (cli) (built: Jan 3 2008 18:17:12)Copyright (c) 1997-2008 The PHP GroupZend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies with Suhosin v0.9.22, Copyright (c) 2007, by SektionEins GmbH with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies[root@server ~]# [root@server ~]# php -m[PHP Modules]bcmathbz2calendarctypeeAcceleratorftpgdiconvimapmysqloverloadpcreposixsessionsocketsstandardsuhosintokenizerxmlZend Optimizerzipzlib[Zend Modules]Zend Extension ManagerZend OptimizereAccelerator[root@server ~]# I recompiled php as cgi when i try to put php.ini in a dir it caused Zend to disappear then i cant open my site ( Zend Optimizer not Installed )
View Replies!
View Related
PHPBB Installed On IIS
i not sure what goin on, my phpbb display tis msg when i navigate inside the forum (IIS6.0, windows 2k3) This msg your browser does not support meta redirection please click HERE to be redirected
View Replies!
View Related
Installed Zend On My Ser
I have installed zend on my server. but when it tried to load, this comes out.. Failed loading /usr/local/Zend/lib/ZendExtensionManager.so: /usr/local/Zend/lib/ZendExtensionManager.so: cannot open shared object file: No such file or directory
View Replies!
View Related
2 Copies Of PHP Installed
I have a problem with Fedora linux server. I have two copies of PHP installed. Now I have problems with modules, which are compiling with new version: Quote: [20-Nov-2007 03:27:30] PHP Warning: PHP Startup: json: Unable to initialize module Module compiled with module API=20060613, debug=0, thread-safety=0 PHP compiled with module API=20050922, debug=0, thread-safety=0 These options need to match in Unknown on line 0 I've already removed all paths from bash and set only path to new version: path=/usr/local/bin Old version is in /usr/bin/ When I do phpinfo() after this change, I get old version info... I wonder what should I do? Will removing both PHP and installing newest version will be a good idea or I can get more trouble?
View Replies!
View Related
Nobody Process
We have many process under nobody user, so our server load is Very high and its not good. Here is our server log about one of this process: Code: Time: Mon Apr 13 11:36:33 2009 +0430 PID: 4415 Account: nobody Uptime: 25532 seconds Executable: /usr/local/lsws/bin/lshttpd.4.0 Command Line (often faked in exploits):
View Replies!
View Related
What Does This Process Mean
i have always this process in my server ; Code: 2 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/0 3 root 34 19 0 0 0 S 0 0.0 0:00.08 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:06.43 migration/1 5 root 34 19 0 0 0 S 0 0.0 0:00.31 ksoftirqd/1 6 root RT 0 0 0 0 S 0 0.0 0:05.22 migration/2 7 root 34 19 0 0 0 S 0 0.0 0:00.82 ksoftirqd/2 8 root RT 0 0 0 0 S 0 0.0 0:01.41 migration/3 9 root 34 19 0 0 0 S 0 0.0 0:00.08 ksoftirqd/3 what doeas mean , and for wich application are this proccess
View Replies!
View Related
|