Apache suEXEC is a feature of the Apache Web server that allows users to run CGI and SSI applications as a different user.
Questions tagged [suexec]
54 questions
37
votes
5 answers
Completely removing phpMyAdmin
I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because of Virtualmin's security settings (suexec).
When I visit mydomain.com/phpmyadmin, it would download the whole PHP page instead of execute…

webnat0
- 2,646
- 5
- 29
- 43
15
votes
2 answers
Apache - Init: Can't open server private key file
I am enabling ssl on my apache running on localhost. I generated a self signed certificate and put it in a usual place:
[david@david web]$ ll /etc/ssl/certs/
...
-rwxrwxrwx. 1 david david 977 Mar 7 13:18 localhost.crt
-rwxrwxrwx. 1 david david …

David Williams
- 8,388
- 23
- 83
- 171
12
votes
4 answers
What causes "suexec policy violation" when Perl is called via server side include?
I'm working on a Perl script which is called from a server side include on an Apache 2 server. The script is displaying the generic "Internal Server Error" page rather than showing me the actual error. When I check the Apache error log, I see these…

Nick Bolton
- 38,276
- 70
- 174
- 242
12
votes
1 answer
Apache ITK vs Suexec
What is the benefit of using ITK module instead of Suexec running Apache server? The idea is the same, which is to run scripts with owner privileges instead of nobody, www or apache!
Is it better to use ITK in favor of suexec? If so, why? What about…

Ilia Ross
- 13,086
- 11
- 53
- 88
10
votes
3 answers
apache suexec "command not in docroot"
Error message is:
command not in docroot (/home/site1/cgi-bin/test.pl).
Here I found this:
suexec requires the CGI script to be under the server's DocumentRoot (not the VirtualHost DocumentRoot). It is permitted, however, for the VirtualHost…

Pol Hallen
- 1,852
- 6
- 32
- 44
5
votes
1 answer
taint-mode perl: preserve suid when running external program via system()
I'm trying to add a feature to a legacy script. The script is suid, and uses perl -T (taint mode: man perlsec), for extra security. The feature I need to add is implemented in Python.
The problem is that I can't convince perlsec to preserve the suid…

bukzor
- 37,539
- 11
- 77
- 111
5
votes
3 answers
How to resolve suexec policy violation causing error 500 using git-http-backend?
I'm trying to get git-http-backend working on my remote vps with no luck. I've adjusted httpd.conf in a way similar to the on this question, but as soon as I add the ScriptAlias directive, the error occurs.
Apache error log:
suexec policy…

Luke
- 799
- 8
- 11
4
votes
1 answer
How to successfully run Perl script with setuid() when used as cgi-bin?
I have a Perl script that is called either via Apache or on the command-line.
For testing purposes, I pass it the username I want the Perl script to operate with, and use POSIX::setuid to set the uid.
If I run the script from the command line, then…

Alex Reynolds
- 95,983
- 54
- 240
- 345
4
votes
1 answer
'suexec policy violation' prevent my website from running?
When I try to run my website it shows a 500 internal server error :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at…

Zorba
- 41
- 1
- 4
4
votes
1 answer
suexec policy violation
I developed a site on PHP and hosted it with iPage. it was working fine, but today I checked the site and it says:
The server encountered an unexpected condition which prevented it from fulfilling
the request. The script had an error or it did not…

Saghir A. Khatri
- 3,429
- 6
- 45
- 76
3
votes
1 answer
Problem with imagick module - PHP
I have a strange error in the image magick php module.
ImagickException [ 1 ]: Postscript delegate failed '/tmp/magick-XXxIARsr': wd7C.cache @ error/pdf.c/ReadPDFImage/638
From what it seems it's a problem with authorization.
I have suphp and suexec…

Stéphane Goetz
- 682
- 1
- 7
- 16
3
votes
1 answer
Apache suExec is not working in Plesk 11 [Still using www-data default user]
I just performed a migration from server to server using Plesk migration tool, Every thing works fine, websites, databases, emails setting, redirections... everything.
But, the only problem is that all websites I've transferred from my old server…

Adil Ouchraa
- 501
- 3
- 5
- 18
3
votes
1 answer
"Writeable by group" exception for php scripts which are under git control
I am working on a website which is implemented using a number of PHP scripts. The entire website is a git repository which is running on a dedicated Apache server. The server will serve a website to the world but will not contain any reseller…

Lea Hayes
- 62,536
- 16
- 62
- 111
2
votes
0 answers
Proper working with suexec on apache httpd 2.4
I am trying to run 3 separated domains in one machine, each with its user (through virtual host) so I decided to use suExec for my task (it been also installed along with apache):
Global Server configuration running on "apache" user and group.
The…

Xerix
- 401
- 4
- 17
2
votes
1 answer
Deploying Python app on cPanel via CGI - SuExec & 500 error
I have the following CGI script which launches a Flask web application. However all I get is a 500 Internal Server Error
#!/home/xxx/public_html/cgi-bin/venv/bin/python
import…

Erik Johnson
- 858
- 1
- 7
- 29