NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP on a UNIX Server...

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 01-22-2003, 09:22 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Jan 2003
Posts: 3
AtomicZandy is an unknown quantity at this point
 



PHP on a UNIX Server...


Hey guys... I'm new to this board, but have been going absolutely crazy trying to get my web site to work on a UNIX server. The problem is... I have an index.php page... This page is located within in a folder on my University web space account. I played around with permissions of both the folder, and file, but am not able to see it come up. Just typing the address in brings up a 403 forbidden error, however if you type the file name at the end of the address it does work... Just to test it out, I made a blank page in htm (index.htm vs index.php) format and uploaded that. That one is found and automatically loaded. I made the permissions identical on the php file as the htm file and it still did not work. Is there something to be done so that it automatically loads?
????: NamePros.com http://www.namepros.com/programming/14455-php-on-a-unix-server.html

Many thanks for any help you can offer!
AtomicZandy is offline  
Old 01-22-2003, 09:43 PM   #2 (permalink)
NamePros Member
Join Date: Aug 2002
Posts: 76
daisha is an unknown quantity at this point
 



First make sure that you actually have capabilities to use PHP on your particular server. There are some that doesn't allow you access to view. Another thing you might want to let me know so I can know whats going on fully is what do you have the permission of your directory set at. Please let me know and I will definately see how I can help.
__________________
only you run your life...live it up and enjoy it. don't let your fears hold you back from getting what you want the most.
daisha is offline  
Old 01-22-2003, 10:04 PM   #3 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



You probably need to set it in your DirectoryIndex in your apache httpd.conf file if you're using apache.

Search for a line that looks similar to this:
DirectoryIndex index.html index.htm

And add what ever file types you want to be accessed as index files (ex: index.php index.php3 index.php4)

You can find it in the /usr/local/apache/conf/ directory or something similar to that.
deadserious is offline  
Old 01-23-2003, 10:08 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Jan 2003
Posts: 3
AtomicZandy is an unknown quantity at this point
 



that definitely sounds like it is it... thanks much... I'll talk to my Admin about it. I know that PHP support is enabled as a bulk of the pages for the curriculum here are indeed in php format... Thanks for the help.
AtomicZandy is offline  
Old 01-24-2003, 09:31 AM   #5 (permalink)
New Member
Join Date: Dec 2002
Posts: 16
bchsys2 is an unknown quantity at this point
 



You can also specify a DirectoryIndex in a .htaccess file at the root of the referenced directory
bchsys2 is offline  
Old 01-24-2003, 05:19 PM THREAD STARTER               #6 (permalink)
New Member
Join Date: Jan 2003
Posts: 3
AtomicZandy is an unknown quantity at this point
 



Not to sound too dumb... but how would I go about making .htaccess files?

Thanks!
AtomicZandy is offline  
Old 01-24-2003, 07:21 PM   #7 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



It's just a text file. You just open up a text file or create one and add the information in it and save it as .htaccess probably in your root directory.
deadserious is offline  
Old 01-28-2003, 06:55 AM   #8 (permalink)
New Member
Join Date: Dec 2002
Posts: 16
bchsys2 is an unknown quantity at this point
 



Since your taking about UNIX, I'm assuming you have shell access.

Just shell in and vi .htaccess (which will create the file). To do what you want, you only need one line in there which is:

Code:
DirectoryIndex index.php
If you don't have ssh/telnet access, then you can create this file with notepad on your workstation and ftp it to the directory where your index.php resides.
bchsys2 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:04 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger