The suexec tag has no wiki summary.
0
votes
1answer
9 views
Errors getting apache working with fcgi and suexec
I have a Debian 6 server and I was previously using Apache with mod_php but decided to switch to using fcgi instead since Wordpress was somehow causing Apache to crash. I have the following in my ...
0
votes
0answers
9 views
Unable to successfully switch from mod_php to fastCGI and suExec?
So I followed the guidelines on THIS page but can't seem to get it to work properly. The directions assume that no prior installation of apache2 and php exist. But I have been running mod_php on ...
1
vote
2answers
2k views
SuExec: “command not in docroot” Even Though It Is?
Arch Linux 2011.08.19 (Linux 3.4.2 i686)
Apache 2.2.22 with SuExec
PHP 5.4.4 (cli) via FastCGI
My sites were all working fine earlier… I’m not sure when it happened because I noticed it over a week ...
0
votes
1answer
165 views
How to avoid '403 Forbidden' response in Apache with suEXEC enabled
I have configured an Apache 2.2 web server with suEXEC following a couple of tutorials after reading the official documentation. I'll put a short summary here:
# Install and enable Apache, suEXEC, ...
0
votes
1answer
43 views
How to enable group-writable suexec-capable CGI scripts?
I have been asked to set up a shared webspace on our department webserver that may be accessed by multiple people and which might be running CGI or PHP scripts. The people maintaining the webspace ...
0
votes
1answer
25 views
apache+php-fpm and security in shared enviroment compared to apache+suexec+mod_fastcgi
I've been using Apache with suexec and mod_fastcgi. It starts up PHP handlers as the selected system user and listens to request via PIPES (fastcgi protocol). It works well but can't share opcode via ...
0
votes
1answer
38 views
Multiple VHosts with FastCGI and Suexec
I have a Debian virtual machine server which I have full control over, but I have someone who wants to host a single domain on it. This is obviously a security concern, as even if his particular user ...
0
votes
2answers
113 views
Can't Get New Instance Of RT To Start
I am trying to transplant an instance of RT 4.0.1 (with local code customization) from a CentOS 4 server to a CentOS 6 server.
My problem appears to be that I can't get the fastcgi script to start.
...
0
votes
0answers
11 views
External php-workers [closed]
I'd like to setup main (apache, litespeed?) server and 2 or more separate server which will handle php parsing (php-workers). I'm looking for a best solution to do this in shared enviroment (suexec?). ...
0
votes
0answers
63 views
SuExec settings not working as expected
I am trying to set the suexec at Debian squeeze. Below is how i installed the suexec
sudo apt-get install php5-cgi libapache2-mod-fastcgi apache2-suexec-custom
sudo a2enmod actions fastcgi suexec
...
0
votes
2answers
52 views
Modules to protect PHP and Perl from accessing other users file/data? [closed]
I've use to use a combination of suPHP with suExec in order to try to protect the users and limiting the PHP/Perl from running out of their allowed space (i.e.: user/tmp folders).
Its been a while ...
0
votes
1answer
60 views
From suPHP to mod_php
I have a Centos6 64-bit server, Apache/2.2.15, PHP5.3.3, one IP and four name-based virtual hosts and SSL/SNI to provide https in addition to http. All those hosts are assigned to different linux ...
0
votes
0answers
20 views
limit groups to r-w-x on virtual hosts and their document roots
Im trying to use suexec to limit a linux group access to a virtual hosts folder but its coming back as 403 forbidden. I want to limit that user/group to that folder. I'd also like to add ftp users to ...
4
votes
4answers
2k views
How to change suexec root directory from “/var/www” to “/home”?
Hi I've installed suexec using on ubuntu 12.04:
apt-get install apache2 apache2-suexec libapache2-mod-fcgid php5-cgi
However when I run the following command:
sudo /usr/lib/apache2/suexec -V
I ...
0
votes
1answer
595 views
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 ...
0
votes
3answers
57 views
Preventing error_log flooding
Is there a way to have httpd/php stop logging errors if they are repeating over and over again to prevent flooding?
Currently the /usr/local/apache/logs/error_log file is getting flooded and would ...
10
votes
1answer
2k views
Multiple php versions simultaneously on Ubuntu
I want to be able to run multiple php versions on my development box running Ubuntu 12.04. What I want to accomplish is that when I use localhost as domain a default is used (let's say php 5.3.17). ...
1
vote
1answer
137 views
Mechanism behind user forwarding in ScriptAliasMatch
I am following this tutorial to setup gitolite and at some point the following ScriptAliasMatch is used:
ScriptAliasMatch \
"(?x)^/(.*/(HEAD | \
info/refs | \
objects/(info/[^/]+ | \
...
0
votes
1answer
143 views
mod_ruid2 is installed but uploaded files are still with apache ownership
I have mod_ruid2 loaded into Apache but uploaded files are still under apache user ownership and I can't install Joomla! components. It's directadmin. How Can I fix this?
0
votes
1answer
139 views
How to download source, modify source, recompile and build .deb package?
I have to customize my Apache2 suExec module to ensure some special environment variables getting passed through suExec.
How to download the source code form Debian package apache2-suexec, modify ...
0
votes
1answer
99 views
Files uploaded with php scripts are owned by apache on Directadmin
Uploaded files are owned by apache, I have DirectAdmin installed and also mod_suexec is loaded into Apache. So is there anyway to upload file with account owner under mod_php(php5_module)?
0
votes
0answers
114 views
fcgiwrap (perl) in a shared hosting environment
I have nginx and I use Perl with fcgiwrap/spawn-fcgi (on Debian Squeeze). This works great for me because I am the only user on the server.
As I read that is less than ideal situation if I want to ...
0
votes
3answers
224 views
Apache - suExec - FastCGI - PHP = security issue
I installed Apache with FastCGI (mod_fastcgi), suExec and PHP on my local development box. Working perfectly, except one thing.
Let's say I have two users:
user1 - /home/user1/public_html
user2 - ...
0
votes
0answers
80 views
Mod_suexec not compiling in 64-bit mode - wrong ELF class
i am using a smartos machine and i need to setup apache 2.2 with suexec
i need to compile and enable mod_suexec
i proceed as follows:
apxs -c -Wc,-m64 mod_suexec.c
/opt/pkg/libexec/apr/libtool ...
3
votes
0answers
179 views
Apache mass virtual hosting & suexec & fcgid
I followed Falco's tutorial and everything now works as expected for 2 users (e.g. john and alice) with their relevant directories (/var/www/john and /var/ww/alice).
Now, I want to go to the next ...
3
votes
4answers
1k views
PHP fopen always fails with permission denied
I am in the process of migrating a couple of Wordpress blogs over to AWS and have run into an issue with file permissions that has successfully foiled me for the last couple of hours.
The simplest ...
1
vote
1answer
106 views
suexec failing scriptalias without logs
I am trying to install gitolite 3 on a apache2 server. So I need to run a CGI script owned by git:git. My configuration for achieving this (based mainly on this) is:
<VirtualHost myserver.com>
...
0
votes
0answers
59 views
web.py with fcgid and suexec
I'm trying to set up web.py under mod_fcgid (and Apache, on CentOS 6). If I follow the instructions at http://webpy.org/cookbook/fastcgi-apache, it just works.
But, I want to go a step further, and ...
1
vote
0answers
91 views
suexec executes world writable php files and files ownd by root. why?
I've configured my server to use suexec for php this weekend. Now I've recognized that suexec also serves files owned by root or that are world writable. But this seems to me not like the standard ...
0
votes
2answers
198 views
Apache with suexec, fcgid shows content from wrong vHost over ssl
I changed my Apache setup to worker mode, suexec und fcgid as described in this tutorial: https://wiki.hetzner.de/index.php/Apache_PHP5_fcgi_und_SuExec.
Allmost everything works fine. I wrote a ...
1
vote
2answers
567 views
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 ...
0
votes
0answers
202 views
Suexec with Apache - “too few arguments”
I am trying to setup suexec on a Centos 6 server. When i do suexec -v as root an error is generated - details below..
VHost suexec:
SuexecUserGroup www-site www-site
CLI:
[root@s1 html]# ...
0
votes
0answers
115 views
php handler as cgi/suexec
in my phpinfo it is showing php handler as cgi/fastcgi but i want to change it to cgi/suexec.
i tried from whm php and suexec configuration and i found that suphp is default php haldler then why ...
1
vote
1answer
308 views
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, ...
1
vote
1answer
173 views
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 ...
1
vote
1answer
204 views
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 ...
1
vote
1answer
374 views
fcgid / suExec + phpMyAdmin
I recently installed mod_fcgid and suExEc on my Ubuntu server following these instructions:
http://www.howtoforge.com/Fhow-to-set-up-apache2-with-mod_fcgid-and-php5-on-ubuntu-10.04
Since suExec does ...
3
votes
1answer
305 views
Confusion on SUEXEC and DOCROOT
I keep running into an issue with suexec where it says the cgi script is not in the docroot.
I get this error:
"[2012-05-21 04:53:02]: command not in docroot (/apps/dctools/www/cgi-bin/test.cgi)"
...
2
votes
1answer
96 views
Suexec, group-writeable files
I am running an Apache server with Suexec. However, I get an internal server error if I try to execute a CGI script that is group-writeable (if I chmod g-w , the script runs fine)
However, I want the ...
1
vote
1answer
531 views
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 ...
0
votes
1answer
906 views
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 ...
0
votes
2answers
156 views
Apache 2.4 and SuExec configuration
If I want PHP and other scripts to run as their own user when accessed from a web browser, is this the right way to configure apache?
./configure --enable-so --enable-deflate --enable-expires
...
2
votes
1answer
263 views
Secure Apache PHP vhost configuration
I'm looking to secure some websites running under apache using suexec. At the moment php is executed with the user/group of the file being executed. This seems to me, not secure enough. It stops ...
0
votes
1answer
130 views
PHP Permissions (chmod vs. suEXEC)
I have an application that claims to require chmod 777 permissions for two of its directories (and their subdirectories). Instead of doing that, would suEXEC be a more secure alternative?
2
votes
1answer
227 views
issue with with suexec command when i try to initialise virtualmin on a pc with webmin installed and working
I am trying to initialise Virtualmin. After installing it via Webmin->Module->new module installation screen.
This is the message that I am getting in Webmin:
The Suexec command on your system is ...
0
votes
1answer
497 views
Virtualmin clean install - Internal Server errors with PHP
I've just reinstalled my server's OS (Ubuntu 10.04 LTS) and installed Virtualmin using the install script (install.sh). Everything on the server is completely vanilla - the only thing I've done after ...
1
vote
1answer
314 views
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 ...
-3
votes
1answer
197 views
How do you setup PHP to run as user as CGI?
Been trying lots of examples but nothing seems to be working. I don't wanna use yum/apt-get I want to do everything from source so I get a better understanding. Yum/apt-get just cheats the system and ...
0
votes
2answers
437 views
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
...
1
vote
2answers
367 views
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 ...
