Differences

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

Link to this comparison view

Last revision Both sides next revision
freebsd_apache [2012/08/10 17:21]
127.0.0.1 external edit
freebsd_apache [2015/06/01 16:22]
steve
Line 29: Line 29:
 Load fcgid module Load fcgid module
 <​code>​ <​code>​
-fetch -q -o /​usr/​local/​etc/​apache22/​extra/​httpd-fcgid.conf http://freebsd.digitaltrike.com/​apache/​httpd-fcgid.conf+fetch -q -o /​usr/​local/​etc/​apache22/​extra/​httpd-fcgid.conf http://beandog.org/​apache/​httpd-fcgid.conf
 echo "# Digital Trike" >> /​usr/​local/​etc/​apache22/​httpd.conf echo "# Digital Trike" >> /​usr/​local/​etc/​apache22/​httpd.conf
 echo Include etc/​apache22/​extra/​httpd-fcgid.conf ​ >> /​usr/​local/​etc/​apache22/​httpd.conf echo Include etc/​apache22/​extra/​httpd-fcgid.conf ​ >> /​usr/​local/​etc/​apache22/​httpd.conf
Line 39: Line 39:
   AddHandler fcgid-script .fcgi   AddHandler fcgid-script .fcgi
 </​IfModule>​ </​IfModule>​
-</​code>​ 
- 
-== Create filesystem hierarchy == 
- 
-<​code>​ 
-cd /​usr/​local/​www/​localhost/​ 
-mkdir cgi-bin htdocs sessions uploads 
-chown www:www sessions uploads 
-chown dtrike:​dtrike htdocs 
-cd cgi-bin 
-wget http://​freebsd.digitaltrike.com/​php/​php-cgi.ini -O /​usr/​local/​etc/​php-cgi.ini 
-wget http://​freebsd.digitaltrike.com/​php/​php-wrapper -O /​usr/​local/​www/​localhost/​cgi-bin/​php-wrapper 
-chmod +x /​usr/​local/​www/​localhost/​cgi-bin/​php-wrapper 
-</​code>​ 
- 
- 
-<​code>​ 
-Include etc/​apache22/​extra/​httpd-mpm.conf 
-Include etc/​apache22/​extra/​httpd-info.conf 
-Include etc/​apache22/​extra/​httpd-vhosts.conf 
-Include etc/​apache22/​extra/​httpd-default.conf 
-Include etc/​apache22/​extra/​httpd-ssl.conf 
-</​code>​ 
- 
-== Create virtual host configuration == 
- 
-<​code>​ 
-mkdir -p /​var/​www/​localhost/​{htdocs,​cgi-bin,​sessions,​uploads,​php} 
-wget -q http://​freebsd.digitaltrike.com/​php-wrapper -O /​var/​www/​localhost/​cgi-bin/​php-wrapper 
-chmod +x /​var/​www/​localhost/​cgi-bin/​php-wrapper 
-chown -R vhost:vhost /​var/​www/​localhost/​{cgi-bin,​htdocs} 
-touch /​var/​www/​localhost/​php/​error_log 
-chown www:www /​var/​www/​localhost/​{sessions,​uploads,​php/​error_log} 
-wget -q http://​freebsd.digitaltrike.com/​deployment/​fs-overlay/​var/​www/​localhost/​php.ini -O /​var/​www/​localhost/​php/​php.ini 
 </​code>​ </​code>​