Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:linux:arch_php_fcgid [2012/04/22 20:53] – created alex | en:linux:arch_php_fcgid [2012/04/22 21:18] (current) – [PHP via FastCGI under Arch Linux] alex | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| </ | </ | ||
| - | FastCGI needs a wrapper or else suexec will get angry, so create one in ''/ | + | FastCGI needs a wrapper or else suexec will get angry, so create one in ''/ |
| < | < | ||
| - | # mkdir /var/www/ | + | # mkdir /srv/http/ |
| - | # ln -s /usr/bin/php5-cgi /var/www/ | + | # ln -s /usr/bin/php-cgi /srv/http/ |
| </ | </ | ||
| Line 29: | Line 29: | ||
| < | < | ||
| # Path to php.ini – defaults to / | # Path to php.ini – defaults to / | ||
| - | DefaultInitEnv PHPRC=/etc/php5/cgi | + | DefaultInitEnv PHPRC=/etc/php |
| | | ||
| # Number of PHP childs that will be launched. Leave undefined to let PHP decide. | # Number of PHP childs that will be launched. Leave undefined to let PHP decide. | ||
| Line 46: | Line 46: | ||
| # Define alias "/ | # Define alias "/ | ||
| # you could run another " | # you could run another " | ||
| - | Alias /fcgi-bin/ /var/www/ | + | Alias /fcgi-bin/ /srv/http/ |
| | | ||
| # Turn on the fcgid-script handler for all files within the alias "/ | # Turn on the fcgid-script handler for all files within the alias "/ | ||
| Line 70: | Line 70: | ||
| Include conf/ | Include conf/ | ||
| </ | </ | ||
| + | |||
| + | Finally, restart apache: | ||
| + | |||
| + | < | ||
| + | # rc.d restart httpd | ||
| + | </ | ||
| + | |||
| + | ===== Links ===== | ||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||