I am fairly new to using linux and am trying to get PHPix installed on a mandrake 7.2 system running php 4.03pl1. Here's my situation.
I untarred the PHPix file. Moved the contents into my HTML dir. Copied a folder of pics to the albums dir. When I hit a link from the supplied index.phtml file, I get my default web server placeholder (the index.html file supplied with apache).
Any ideas why this is happening?
thanks in advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2000-12-15
I'm going to assume that you installed phpix directly into your documentroot? You should probably put it in your home directory, but hey, it's your machine.
Anyhow, the problem most likely is that your web server looks for index.html before index.phtml. Assuming you have php installed correctly, all you need to do is edit your http.conf (or srm.conf, or wherever it lives in Mandrake) and make the DirectoryIndex line have "index.phtml" before it has "index.html".
That was a terribly crafted sentence. Here's an example of the line in question, from my /etc/apache/srm.conf (Debian box):
I am fairly new to using linux and am trying to get PHPix installed on a mandrake 7.2 system running php 4.03pl1. Here's my situation.
I untarred the PHPix file. Moved the contents into my HTML dir. Copied a folder of pics to the albums dir. When I hit a link from the supplied index.phtml file, I get my default web server placeholder (the index.html file supplied with apache).
Any ideas why this is happening?
thanks in advance
I'm going to assume that you installed phpix directly into your documentroot? You should probably put it in your home directory, but hey, it's your machine.
Anyhow, the problem most likely is that your web server looks for index.html before index.phtml. Assuming you have php installed correctly, all you need to do is edit your http.conf (or srm.conf, or wherever it lives in Mandrake) and make the DirectoryIndex line have "index.phtml" before it has "index.html".
That was a terribly crafted sentence. Here's an example of the line in question, from my /etc/apache/srm.conf (Debian box):
DirectoryIndex index.html index.htm index.shtml index.php index.php3 index.cgi
Hope this helps!