PDA

View Full Version : a couple of questions about apache thats pre installed...



Zero_1984
09-01-2004, 02:58 AM
hey all, just a few questions about the apache httpd server that comes with knoppix, because im trying to get it running...

first question, does the pre instaled apache support php?!
second question. is the pre installed apache set up to start automatically? and if not.. how do i go about this?


thanks all.

shah
09-01-2004, 03:49 AM
1) Yes, knoppix came with apache that support php extension. You need to do some editing in :
/etc/apache.httpd.conf to set your apache ex: point to where your webpages located. The default is /var/www.
also add index.php in /etc/apache.httpd.conf so it can read php directly.
ex:
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php
</IfModule>

2) To set apache to start on boot, run this command as su: update-rc.d apache defaults

To test if your apache is working, point your browser to your ip address.

:D