Index.php does not open on Live site

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Index.php does not open on Live site

Postby chinatrade » 14. February 2009 04:27

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).
chinatrade
 
Posts: 4
Joined: 03. February 2009 05:46

Re: Index.php does not open on Live site

Postby Nobbie » 14. February 2009 10:30

>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.
Nobbie
 
Posts: 13175
Joined: 09. March 2008 13:04

Re: Index.php does not open on Live site

Postby Izzy » 14. February 2009 10:46

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Index.php does not open on Live site

Postby chinatrade » 14. February 2009 14:37

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.
chinatrade
 
Posts: 4
Joined: 03. February 2009 05:46

Re: Index.php does not open on Live site

Postby Wiedmann » 14. February 2009 15:24

My site is hosted with ONE.com. They say it can be an XAMPP problem.

Is "one.com" using XAMPP on their servers?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Index.php does not open on Live site

Postby chinatrade » 14. February 2009 15:30

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?
chinatrade
 
Posts: 4
Joined: 03. February 2009 05:46

Re: Index.php does not open on Live site

Postby Wiedmann » 14. February 2009 15:43

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?)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Index.php does not open on Live site

Postby chinatrade » 14. February 2009 15:53

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.
chinatrade
 
Posts: 4
Joined: 03. February 2009 05:46

Re: Index.php does not open on Live site

Postby Wiedmann » 14. February 2009 16:15

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: xamchqh and 217 guests