You are not logged in.
Pages: 1
I'm an ex-IIS administrator, and have a simple question for you...
I finally got everything with Apache, php, sql running smoothly- however, how do I set Apache to recognize index.php instead of index.html?
Thanks in advance,
JSkier
--
JSkier
Offline
I'm not sure if this is what you are asking, but try adding the following to /etc/httpd/conf/httpd.conf
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
and
<Directory /home/httpd/htdocs/phptestdirectory >
DirectoryIndex index.php
</Directory>
and also, don't forget to add APACHE_OPTS="-D PHP4" to /etc/conf.d/httpd
Don't forget to post your PKGBUILD in your thread when you announce a new package in incoming.
see HERE for details
Offline
<Directory /home/httpd/htdocs/phptestdirectory >
DirectoryIndex index.php
</Directory>
This is what I want, however, is there a way to make this global, so that all directories under html look for index.php?
Thanks again,
JSkier
--
JSkier
Offline
Try using
DirectoryIndex index.php
just by itself (not inside directory tags).
Don't forget to post your PKGBUILD in your thread when you announce a new package in incoming.
see HERE for details
Offline
As I was about to put that line in I found the actual setting for it here:
# 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
</IfModule>
Sooner or later I'll purchase a beginners book on Apache :mrgreen:
Thanks once again,
JSkier
--
JSkier
Offline
Pages: 1