Install Mod Suexec Centos

Active5 years, 9 months ago

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 run my virtual host.

I copied all the config over from my working older apache version, modified the httpd.conf to reflect the new location and the new port. Currently I still have my .24 apache running on port 80 in /etc/httpd and I am trying to configure my .25 apache which is in /usr/local/apache2 and whenever I start up the new apache I get:

To install the suPHP PHP handler, select Mod SuPHP. To uninstall the suPHP PHP handler, deselect Mod SuPHP. Click Save and Build at the bottom of the Short Options List interface. After the EasyApache build completes, use the Configure PHP and suEXEC interface to set the PHP 5 Handler option to suphp. Apache2, PHP, SuEXEC configuration on CentOS. Install rpms – httpd, php-common, mod_fcgid, additional php modules you might need. Along with this template. Mod_suexec The SuexecUserGroup directive allows you to specify a user and group for CGI programs to run as. Non-CGI requests are still processed with the user specified in the User directive. I installed mod_suexec from ports with apache22, but unfortunately I can't get my virtualhosts to run as the user specified in httpd.conf with: # apache. Hello every one. New CentOS user here, as well as generally new to linux. I have a question regarding yum and using it to install or remove modules for a package. Red Hat / CentOS Apache 2 FastCGI PHP Configuration. You will learn about Apache 2 + mod_fastcgi + PHP installation and configuration under Red Hat Enterprise Linux / CentOS Linux version 5.x+. Install mod_fastcgi. [notice] caught SIGTERM, shutting down [Mon Dec 29 23:] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin.

Reading up a bit up on suexec I see that it needs a wrapper and I am completely oblivious as where to go after having my entire apache compiled.

Is suexec wrapper something you can add on after ./config, make, make install?

Install Mod Suexec Centos Server

I am new to working with apache so any feedback would be greatly appreciated.

Centos

Edit: I'm not sure if I should try to delete the entire instance of the newer apache and try to reconfigure & make it, but at the same time I'm not sure how to delete only the newer apache without messing up the currently configured version.

MarufMaruf

1 Answer

If you build apache yourself and you want the suexec wrapper compiled with it, you need to add it before compiling to the configure options: --enable-suexec.

Check http://httpd.apache.org/docs/2.2/suexec.html#install

If you just compile and install again, only the new apache should be overwritten.

etagenkloetagenklo
5,0541 gold badge20 silver badges30 bronze badges

Not the answer you're looking for? Browse other questions tagged apache-2.2centoscentos6httpdsuexec or ask your own question.

Active5 years, 9 months ago

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 run my virtual host.

Suexec

I copied all the config over from my working older apache version, modified the httpd.conf to reflect the new location and the new port. Currently I still have my .24 apache running on port 80 in /etc/httpd and I am trying to configure my .25 apache which is in /usr/local/apache2 and whenever I start up the new apache I get:

Mod Suexec

Reading up a bit up on suexec I see that it needs a wrapper and I am completely oblivious as where to go after having my entire apache compiled.

Is suexec wrapper something you can add on after ./config, make, make install?

I am new to working with apache so any feedback would be greatly appreciated.

Edit: I'm not sure if I should try to delete the entire instance of the newer apache and try to reconfigure & make it, but at the same time I'm not sure how to delete only the newer apache without messing up the currently configured version.

MarufMaruf

1 Answer

If you build apache yourself and you want the suexec wrapper compiled with it, you need to add it before compiling to the configure options: --enable-suexec.

Check http://httpd.apache.org/docs/2.2/suexec.html#install

If you just compile and install again, only the new apache should be overwritten.

etagenkloetagenklo

Install Mod_suexec Centos

5,0541 gold badge20 silver badges30 bronze badges

Install Mod Suexec Centos 11

Not the answer you're looking for? Browse other questions tagged apache-2.2centoscentos6httpdsuexec or ask your own question.

Comments are closed.