UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 5th, 2001, 10:18 PM
trops trops is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Location: Atlanta, GA
Posts: 269 trops User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 22 sec
Reputation Power: 13
setting a php file as my home page

I am not sure where to post this but..

I am trying to have my home page be a PHP file, instead of the index.html file...

Is there any way to do it...

I want the user to be able to type in www.mysite.com and it will take them to my index.php3 file.

Any help would be appreciated.
__________________
trops.
Databake Software

Reply With Quote
  #2  
Old October 5th, 2001, 10:56 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I am not sure where to post this

Apache would be best and PHP be 2nd best.

>> type in www.mysite.com and it will take them to my index.php3 file

Append index.php3 to DirectoryIndex.

Say DirectoryIndex index.html index.htm index.php index.php3, then your index.php3 has lowest priority.

Reply With Quote
  #3  
Old October 5th, 2001, 11:00 PM
trops trops is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Location: Atlanta, GA
Posts: 269 trops User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 22 sec
Reputation Power: 13
im a rookie

Ok and where would I type that?

htaccess?
telnet to my server?

It sounds like the answer but I just need some help making it happen.

Thanks again.

Reply With Quote
  #4  
Old October 5th, 2001, 11:07 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If it's your server and you have root access, don't use .htaccess. Alter your httpd.conf and find the line DirectoryIndex. Yes, you need to telnet or ssh in, if you don't have physical access to your server. When you are done, you need to restart Apache.

Reply With Quote
  #5  
Old October 5th, 2001, 11:24 PM
trops trops is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Location: Atlanta, GA
Posts: 269 trops User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 22 sec
Reputation Power: 13
cool

i did it in htaccess because I am not sure what my permissions are on the server (I better figure that out)..

It works...

Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > setting a php file as my home page

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap