Page 1 of 1

Apache directives to specific site

Posted: Fri Jul 25, 2014 9:40 pm
by fedekrum
A client is asking me how can he add some apache directives to his virtual site.
Here is what he needs to do:

Code: Select all

apt-get update && sudo apt-get install libapache2-mod-fastcgi
a2enmod actions fastcgi alias
/etc/init.d/apache2 restart
vi /etc/apache2/conf.d/php5-fpm.conf
<IfModule mod_fastcgi.c>
     AddHandler php5-fcgi .php
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
/etc/init.d/apache2 restart
How can I get this to work on his virtual site? I cant find the files he is talking about.

thanks

Re: Apache directives to specific site

Posted: Wed Jul 30, 2014 9:12 pm
by imperio
Only administrator can change http virtual hosts of users
/home/user/conf/web/httpd.conf

Re: Apache directives to specific site

Posted: Thu Jul 31, 2014 9:07 pm
by erldcrtz
fedekrum wrote:A client is asking me how can he add some apache directives to his virtual site.
Here is what he needs to do:

Code: Select all

apt-get update && sudo apt-get install libapache2-mod-fastcgi
a2enmod actions fastcgi alias
/etc/init.d/apache2 restart
vi /etc/apache2/conf.d/php5-fpm.conf
<IfModule mod_fastcgi.c>
     AddHandler php5-fcgi .php
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
/etc/init.d/apache2 restart
How can I get this to work on his virtual site? I cant find the files he is talking about.

thanks
that is sad... a client is asking you and you don't even know how to do it... what kind of business are you running?.. LOL