Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:linux:arch_php_fcgid [2012/04/22 23:00]
alex
en:linux:arch_php_fcgid [2012/04/22 23:18]
alex [PHP via FastCGI under Arch Linux]
Line 9: Line 9:
 </​code>​ </​code>​
  
-FastCGI needs a wrapper or else suexec will get angry, so create one in ''/​srv/​http''​+FastCGI needs a wrapper or else suexec will get angry, so create one in ''/​srv/​http''​:
  
 <​code>​ <​code>​
-# mkdir /var/www/​fcgi-bin.d/​php5-default +# mkdir /srv/http/​fcgi-bin.d/​php5-default 
-# ln -s /usr/bin/php5-cgi /var/www/​fcgi-bin.d/​php5-default/​php-fcgi-wrapper+# ln -s /usr/bin/php-cgi /srv/http/​fcgi-bin.d/​php5-default/​php-fcgi-wrapper
 </​code>​ </​code>​
  
 Create the FastCGI Apache configuration file ''/​etc/​httpd/​conf/​extra/​php5-fcgid.conf''​ with the following content: Create the FastCGI Apache configuration file ''/​etc/​httpd/​conf/​extra/​php5-fcgid.conf''​ with the following content:
  
-<code>+<file - php5-fcgid.conf>
 <​IfModule !mod_php4.c>​ <​IfModule !mod_php4.c>​
 <​IfModule !mod_php4_filter.c>​ <​IfModule !mod_php4_filter.c>​
Line 46: Line 46:
     # Define alias "/​fcgi-bin/"​. The action above is using this value, which means that     # Define alias "/​fcgi-bin/"​. The action above is using this value, which means that
     # you could run another "​php5-cgi"​ command by just changing this alias     # you could run another "​php5-cgi"​ command by just changing this alias
-    Alias /fcgi-bin/ /var/www/​fcgi-bin.d/​php5-default/​+    Alias /fcgi-bin/ /srv/http/​fcgi-bin.d/​php5-default/​
     ​     ​
     # Turn on the fcgid-script handler for all files within the alias "/​fcgi-bin/"​     # Turn on the fcgid-script handler for all files within the alias "/​fcgi-bin/"​