Questions tagged [suexec]

97 questions
1
vote
2 answers

Apache + SuExec + php-fpm - how to set them up?

I wonder if there is a good guide on how to setup Apache + SuExec + php-fpm? I have a server which I am going to use several separate website. So, I need php to be run as site-owner user. As I can see, php-fpm is a little different from php-fcgi. Is…
Vladislav Rastrusny
  • 2,671
  • 12
  • 42
  • 56
1
vote
2 answers

Apache error with suEXEC only

When I enable suEXEC by following the tutorial here, I am able to get PHP to run over Apache in cgi mode, but when I start trying to use suEXEC I get a 403, and the following error appears in the error log "client denied by server configuration". …
Iiridayn
  • 304
  • 2
  • 12
1
vote
1 answer

Apache 2.4 VHosts with FastCGI and suexec-custom

I have setup at my local machine Ubuntu 22.04 Apache 2.4 with suexec-custom. In fact, this setup was working from Ubuntu 16 up to this update to 22.04. I only load some modules, reload some other and suexec was working fine for a test site say it:…
centurian
  • 421
  • 3
  • 7
0
votes
0 answers

linux shared folder for all users php not working mod_hive suexec

Feel free to educate me - I'm migrating from a windows server to a dedicated linux server with apache 2.4 and centos 6.10 ... all users on the server are actually ME, so this part is not a security concern. I want to share a folder to all users. I…
KSechrist
  • 3
  • 2
0
votes
1 answer

suEXEC queries www-data when trying to execute a script as userXYZ

I am setting up a suexec environment with Apache2 and PHP 7.0 with FastCGI. I have installed everything the normal way Aptitude install libapache2-mod-fcgid apache2-suexec-custom A2enmod suexec My server has following structure: There are users…
Daniel Marschall
  • 803
  • 4
  • 9
  • 20
0
votes
1 answer

Can cgi scripts with permission 775 run under suEXEC?

We have suEXEC installed, and we also use git version control. suEXEC only allows cgi scripts to run with permission 755. Git sets file permissions on cgi scripts (and all executables) to 775. Is there a way to configure suEXEC so that cgi scripts…
0
votes
2 answers

vsftpd permissions for virtual users with Apache SUexec compatibility

I run a linux server with Apache + SUexec where all virtualhosts htdocs folder are owed by specific users : # ls /www/sites drwxr-xr-x 4 vhost-sitea.com vhost-sitea.com 4096 Oct 13 16:45 www.sitea.com/ drwxr-xr-x 3 vhost-siteb.com …
Ken Addams
  • 11
  • 1
0
votes
1 answer

suexec AP_DOC_ROOT Path on gentoo

after a few years running php as mod_php I want to move to fcgi. On my server I run currently gentoo linux. I allready set up php als fcgi and everything is working. But there is one problem. I have to change the path of the AP_DOC_ROOT from…
user39063
  • 121
  • 3
0
votes
1 answer

Why does Apache need o+x permissions for a Virtual Host running under suEXEC?

Running Apache 2.4.10 on Arch Linux. I'm trying to restrict an SFTP user to only be able to access his home directory, a public folder under a vhost directory, without being able to access that vhost directory. Right now when I log in as the user, I…
Hugh Guiney
  • 245
  • 2
  • 8
  • 21
0
votes
1 answer

suEXEC is enabled but apache is still using "apache" user for every website

I'm using Plesk 12 with some modules enabled, including suexec: But when I run whoami from a PHP script, I still get apache's default user: apache What am I doing wrong? Should I double check some config file or activate something else?
dmmd
  • 415
  • 4
  • 17
0
votes
1 answer

Centos6 Apache configure SUEXEC wrapper

On a Centos 6 trying to upgrade to a specific apache version (from 2.2.24 to 2.2.25) from source since yum doesn't have the right version I need (or the very least I can't find the repo for it) and I ran into an issue with suexec not being able to…
Maruf
  • 159
  • 9
0
votes
1 answer

configuring awstats with suexec

I have a web server with more than 100 websites running apache and php as fcgid and suexec. I have configured awstats on my server(FreeBSD) following awstats installation on FreeBSD but when I try to access the statistics of one of the websites I…
pnanvuma
  • 1
  • 3
0
votes
2 answers

Apache startup is failed

My server was terminated abnormally because power was turned off. After start server I can't to run Apache. $ /etc/init.d/httpd start Starting httpd: [FAILED] Apache log file: [notice] suexec mechanism…
alexBl
  • 37
  • 1
  • 2
  • 6
0
votes
1 answer

Configuring suExec to work with Apache and PHP via FastCGI

I have installed ISPConfig 3 on an Ubuntu VPS and configured it for Apache + PHP via FastCGI and suexec. I am able to upload PHP apps (e.g. Wordpress) and run them normally w/ suexec. However, for some reason the PHP scripts cannot write data to…
Matt Hamann
  • 193
  • 1
  • 1
  • 8
0
votes
2 answers

Modules to protect PHP and Perl from accessing other users file/data?

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 since I last done such configuration I could say a…
Prix
  • 4,881
  • 3
  • 24
  • 25