Lame php emergency

Goosemaster

Lifer
Apr 10, 2001
48,777
3
81
Hello.

How can I make index.php the page that automatically loads at a subdomain rather that index.html?
 

Gnurb

Golden Member
Mar 6, 2001
1,042
0
0
You have to make some edits to the apache config file I think; I don't know offhand the exact lines to edit though. Google probably knows.
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
First of all, wrong FRICKIN FORUM.

Second, find httpd.conf (you're running apache I assume, aren't you?) and add index.php to "DirectoryIndex" line. Remember, order is important.
 

Goosemaster

Lifer
Apr 10, 2001
48,777
3
81
the server is running apache, but I am accessing it through direct admin....that is why I am at a loss:(
 

ragazzo

Golden Member
Jan 9, 2002
1,759
0
0
in iplanet's document preferences, you can add index.html, index.htm, index.php, etc.
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
Originally posted by: Goosemaster
The old index.html file was hiding in there..thanks:embarrassed;

If you put index.php before index.html or other file extensions in the list order, the server will serve the .php before anything else. Eliminates having to delete files or archive them somewhere else.
 

Goosemaster

Lifer
Apr 10, 2001
48,777
3
81
Originally posted by: Nik
Originally posted by: Goosemaster
The old index.html file was hiding in there..thanks:embarrassed;

If you put index.php before index.html or other file extensions in the list order, the server will serve the .php before anything else. Eliminates having to delete files or archive them somewhere else.

Aye. But how do you do this on the DIrectAdmin server control Panel is the question. oInce I didn;t know how, I jsut renamed the index.html file so it would grab the php one.
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
I'm not familiar with Direct Admin at all. cPanel has a file browser that lets you look through the directory structure like you're FTP'd into the server. It also allows you to upload, rename, copy, move, and edit files. If there's anything like that in DirectAdmin, use it. :)
 

Pepsi90919

Lifer
Oct 9, 1999
25,162
1
81
you can put a .httpd or .apache (whatever it's called) into the root directory to set up additional apache directives, this is a perfect candidate.
 

kt

Diamond Member
Apr 1, 2000
6,004
1,321
136
Is the Apache webserver you're on allow the use of .htaccess file? If so, just use .htaccess to overwrite the default Apache settings.
 

ASK THE COMMUNITY