Software projects/OS/Slackware/Advanced usage/Apache

From Pandora Wiki
Revision as of 09:10, 15 April 2012 by Linux-SWAT (talk | contribs) (Created page with "= Activate Apache = * To enable PHP support, edit (as root) /etc/httpd/httpd.conf , and change this line: #Include /etc/httpd/mod_php.conf into Include /etc/httpd/mod_php.conf ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Activate Apache

  • To enable PHP support, edit (as root) /etc/httpd/httpd.conf , and change this line:
#Include /etc/httpd/mod_php.conf

into

Include /etc/httpd/mod_php.conf
  • As root, type:
chmod +x /etc/rc.d/rc.httpd
  • Now, Apache will be started at each boot.
  • Then run:
/etc/rc.d/rc.httpd start

Website

  • Put your http or php pages in /srv/www/htdocs/ .