Questions tagged [suexec]

97 questions
1
vote
2 answers

mod_vhost_alias + suEXEC: auto selecting uid/gid

I'm trying to configure Debian 6.0.4 for massive shared hosting with PHP5. Packages apache2-mpm-worker libapache2-mod-fcgid apache2-suexec are installed. I successfully loaded mod_vhost_alias and suexec to manage my domains by directory, then I…
Fabio
  • 21
  • 6
1
vote
1 answer

Configuring Apache2/mpm-worker not to eat up all the server's RAM

Th server is running around 40 WordPress sites. Originally I'd set the server up using mod_php and mpm-prefork back when the server had 2GB of memory, and it was running comfortably well. Recently, however, I updated the server to use FastCGI,…
Mortanis
  • 21
  • 1
1
vote
1 answer

Safest way to run bash script using PHP-FPM

I currently running a websever with Nginx+PHP-Fpm and each sites on its own username/GID. Then I have a bash script that I use to create new user along with other necessary stuffs. I know I can call a script using shell_exec/suexec but I am…
Sam W.
  • 41
  • 1
  • 6
1
vote
1 answer

Apache: change PHP suexec user/group per SSL client

I've got a server running several vhost sites, and was wondering if there could be a way to get some vhost PHPs executed under a different user/group depending on the client connecting to them. I figured it could go like: client connects via…
jarfil
  • 11
  • 2
1
vote
1 answer

PHP with suexec/fcgid

httpd.conf file: LoadModule fcgid_module modules/mod_fcgid.so AddHandler fcgid-script .php FCGIWrapper /usr/local/php5 .php # manual MaxRequestsPerProcess 1000 FcgidMaxProcesses 200 FcgidProcessLifeTime 7200 MaxProcessCount 500 FcgidIOTimeout…
Jane
  • 13
  • 3
1
vote
2 answers

Why the php-cgi wrapper script for php-fpm? (Using virtualhost and suexec.)

I just setup my server with Apache, FastCGI, and PHP-FPM. My question is regarding the /cgi-bin/ folder: is it really necessary to have a /cgi-bin/php-fpm wrapper for every single virtualhost that runs apache using a different user/group?…
Caleb Gray
  • 350
  • 3
  • 8
1
vote
1 answer

suexec policy violation: What were these guys up to?

Have just assumed responsibility for a new client's site. OS is Linux. They had a cgi-bin directory below document root. I was looking at my error.log for an issue with a script and found a number of attempts to access dis-used Perl scripts. I…
corvidnola
  • 11
  • 1
  • 3
1
vote
2 answers

PHP Include Always Fails

Apache HTTP Server 2.2.21 with VirtualHosts under SuExec PHP 5.3.8 via fcgid Arch Linux 2011.08.19 I am in the process of migrating from shared hosting to VPS. The code I had ran fine before the move but is now failing at this…
Hugh Guiney
  • 245
  • 2
  • 8
  • 21
1
vote
1 answer

ApacheHTTPD mod_suexec, safe_mode, open_basedir

as the Debian developers consider safe_mode (which will not make it into PHP6) and open_basedir inherently broken security measures, I wonder if they can be considered replaceable by mod_suexec combined with mod_fcgid. Do you think this is…
benjamin
  • 187
  • 1
  • 12
1
vote
2 answers

I need clarification on Apache2, MPM-Worker, FastCGI, PHP5-fpm, suEXEC?

My current configuration is: Apache2 + MPM-Worker AND FastCGI + PHP5-fpm (PHP 5.3.2) ON Ubuntu 10.04 LTS I have a single pool of 2-5 processes running as a different user from that of the default www-data. FastCGI/PHP5-fpm is configured as an…
farinspace
  • 173
  • 1
  • 1
  • 13
1
vote
1 answer

suexec error configuring mod_fastcgi with apache2.2.3 on centos

I've been following this blog post so that I can share APC opcode cache between PHP processes using FastCGI. Unfortunately I'm getting the following error when starting httpd: Starting httpd: Syntax error on line 4 of…
Jonathan Day
  • 204
  • 1
  • 2
  • 10
1
vote
1 answer

Need advice in setting up server. fastCGI, suExec, speed, security, etc

I am running my own dedicated server with centOS 5 and WHM/cPanel. I would like to configure my server to meet my needs but I need a little help. It will only be my own websites being run on this server. I'm still a little green when it comes to…
lewisqic
  • 181
  • 1
  • 5
1
vote
2 answers

Single fastcgi/php-cgi server for multiple virtualhosts?

I'm currently hosting sites for clients using the following setup: Apache 2.2.16 mod_fastcgi 2.4.7 php 5.3.3 Apache uses the worker MPM and serves PHP through a dynamic FastCGI config: FastCgiSuexec /usr/sbin/suexec FastCgiConfig -singleThreshold…
hlidotbe
  • 215
  • 3
  • 6
1
vote
2 answers

Running APC with suEXEC

Our servers are currently setup to run PHP as DSO with suEXEC enabled. Is it possible for us to install APC in this setup? Servers are CentOS 5.2 running with WHM/cPanel
robjmills
  • 990
  • 9
  • 26
1
vote
1 answer

How to enable suexec for VPS using Plesk Panel?

I have tested on Plesk 9 and 10(preview version), but I couldn't find a way to enable suexec. The apache has loaded the suexec module, but it was not enabled. The OS is Centos 5.4. Any help will be appreciated. # grep -i suexec…
garconcn
  • 2,388
  • 8
  • 35
  • 46