Page 1 of 1

Index.php does not open on Live site

PostPosted: 14. February 2009 04:27
by chinatrade
I installed XAMPP 1.7 and my site is working good LOCAL. When i upload the site LIVE and make the changes in the config file and upload mysql,...when i type the name om my site www.mysite.com it gives an error:file not found. When i add www.mysite.com/index.php it opens. When i hit the homepage button on the site i get the same error:file not found. So my site does not see the index.php file. My site is hosted with ONE.com. They say it can be an XAMPP problem. How can i change that so it will work. I read some posts and they say if i upload the installation file of JOOMLA directly it will run smoothly, but actually i want to work on the site LOCAL since this is more convennient for me and practical. (slow internet connection from my country to One.com servers).

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 10:30
by Nobbie
>They say it can be an XAMPP problem.

They must be pretty stupid - it's of course not a Xampp problem, but a problem of the live server. It is missing "index.php" in the directive "DirectoryIndex" in httpd.conf. They (or you - I dont know if you have access to httpd.conf) should simply append "index.php" to the DirectoryIndex, example:

Code: Select all
DirectoryIndex index.htm index.html index.php


Then restart Apache and that's it.

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 10:46
by Izzy
If you don't have access to your live server's httpd.conf file then you could create a .htaccess file in your text editor and add this single line at the very top of the page:

DirectoryIndex index.php index.html index.htm

Save the file as .htaccess or htaccess.txt

Then upload it to your live server's web root folder (the folder that goes to www.mysite.com) and rename it from htaccess.txt to .htaccess

Then try and access your website again.

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 14:37
by chinatrade
I did that, in htaccess.txt (top line) and then saved it , uploaded it, renamed it to .htaccess and nothing changed,....still te same problem but this time i got an internal server error

DirectoryIndex index.php index.html index.htm
##
# @version $Id: htaccess.txt 9975 2008-01-30 17:02:11Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##


#####################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################


Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@one.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 15:24
by Wiedmann
My site is hosted with ONE.com. They say it can be an XAMPP problem.

Is "one.com" using XAMPP on their servers?

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 15:30
by chinatrade
No,...so if this is the reason for the malfunction how can i work on my JOOMLA site local here on my computer without XAMPP?

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 15:43
by Wiedmann
No,... so if this is the reason for the malfunction

No, they don't use XAMPP, thus XAMPP can't be the problem. Instead you have a problem with accessing a file on their server, thus it's a problem with their server (easy, not?).

Just read Nobbies post:
If you can access a file with "http://www.mysite.com/index.php", but not with "http://www.mysite.com/", it's a wrong "DirectoryIndex" settings on their server.

Maybe you can verify this with just a simple test "index.php" on the live server, and no other files in the DocumentRoot.

(Can you access a "http://www.mysite.com/index.html" with just ""http://www.mysite.com/" on their server?)

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 15:53
by chinatrade
I have now a "comming soon page" with index.html. The website is accessible with www.mysite.com (so without the index.html as suffix), I mean only the "comming soon page" will show up.

Re: Index.php does not open on Live site

PostPosted: 14. February 2009 16:15
by Wiedmann
I have now a "comming soon page" with index.html.

Ask your ISP. He is only one who can help you. If he can't help... change your ISP.