| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Jan 2003
Posts: 3
![]() | 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! |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Aug 2002
Posts: 76
![]() | 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. |
| |
| | #3 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | 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. |
| |
| | THREAD STARTER #4 (permalink) |
| New Member Join Date: Jan 2003
Posts: 3
![]() | 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. |
| |
| | #8 (permalink) |
| New Member Join Date: Dec 2002
Posts: 16
![]() | 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 |
| |