Links don't work on localhost ?

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

Links don't work on localhost ?

Postby joomlacı » 01. May 2010 16:14

I set up XAMPP 1.5.5 and coppied my joomla web side siles in htdocs folder , main page work well , but links on main page don't work .. How can I solve problem ?

WHEN I CLICK ON ANY OBJECT İN MAIN PAGE , IT GIVES OUTPUT AS BELOW:

Object not found!
Talep ettiğiniz URL, sunucu üzerinde bulunmuyor. Referans sayfa üzerindeki bağlantı güncel değil. Lütfen referans sayfa'nın yazarını konuyla ilgili bilgilendirin.

Bunun bir sunucu hatası olduğunu düşünüyorsanız, lütfen site yöneticisi ile iletişime geçin.

Error 404
localhost
05/01/10 18:01:25
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

APACHE LOG FILE OUTPUT :

[Sat May 01 17:03:47 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/xampp/htdocs/templates/your_template, referer: http://localhost/
[Sat May 01 17:03:50 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/xampp/htdocs/component, referer: http://localhost/
joomlacı
 
Posts: 3
Joined: 01. May 2010 14:30

Re: Links don't work on localhost ?

Postby Altrea » 01. May 2010 16:56

joomlacı wrote:I set up XAMPP 1.5.5 and coppied my joomla web side siles in htdocs folder , main page work well , but links on main page don't work .. How can I solve problem ?

WHEN I CLICK ON ANY OBJECT İN MAIN PAGE , IT GIVES OUTPUT AS BELOW:

Object not found!
Talep ettiğiniz URL, sunucu üzerinde bulunmuyor. Referans sayfa üzerindeki bağlantı güncel değil. Lütfen referans sayfa'nın yazarını konuyla ilgili bilgilendirin.

Bunun bir sunucu hatası olduğunu düşünüyorsanız, lütfen site yöneticisi ile iletişime geçin.

Error 404
localhost
05/01/10 18:01:25
Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.2.0

APACHE LOG FILE OUTPUT :

[Sat May 01 17:03:47 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/xampp/htdocs/templates/your_template, referer: http://localhost/
[Sat May 01 17:03:50 2010] [error] [client 127.0.0.1] File does not exist: C:/Program Files (x86)/xampp/htdocs/component, referer: http://localhost/


1. XAMPP 1.5.5 is nearly 4 years old. The newest XAMPP Version is 1.7.3. I recommend you to install a new version of XAMPP!
2. Never ever install XAMPP in a folder with spaces or Spqcial Characters like Program Files (x86)! Install xampp directly in the root of your HDD (C:\xampp)
3. i don't know anything about your OS. The folder Program Files (x86) showes, that it is a 64Bit Windows OS, maybe Windows 7 or Windows Server 2008. If your Windows has the new UAC (user access control), it is often a good advise to install and start xampp as administrator (right click -> run as administrator)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Links don't work on localhost ?

Postby joomlacı » 01. May 2010 18:01

OS is vısta 64 bit as you say.

I set up XAMPP in a folder C:\xampp and edit configuration.php again.
And run it as administrator.

But it's same again. Main page ok but other page links dont work :(
joomlacı
 
Posts: 3
Joined: 01. May 2010 14:30

Re: Links don't work on localhost ?

Postby Altrea » 01. May 2010 20:16

Okay, you should check your Joomla installation.
I don't know Joomla, so i can't assist you on this part.

Maybe there is a better chance to solve this problem in a Joomla Board, because i don't really think this problam is in any way related to xampp. Maybe i'm wrong, i don't know.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Links don't work on localhost ?

Postby joomlacı » 02. May 2010 02:27

I don't think it's joomla fault. Because I set and run joomla on localhost many times. It may be win64 bit problem. XAMPP 1.5.5 supports 32bit. I don't know it is eough to run as administrator to make compateble for win64.

I don't know if there is XAMPP version for win64 . But it must include php 5.2 , because joomla doesn't work on php 5.3.
joomlacı
 
Posts: 3
Joined: 01. May 2010 14:30

Re: Links don't work on localhost ?

Postby Altrea » 02. May 2010 10:48

joomlacı wrote:I don't think it's joomla fault. Because I set and run joomla on localhost many times. It may be win64 bit problem. XAMPP 1.5.5 supports 32bit. I don't know it is eough to run as administrator to make compateble for win64.

I don't know if there is XAMPP version for win64 . But it must include php 5.2 , because joomla doesn't work on php 5.3.


Okay, i have installed the latest XAMPP (XAMPP 1.7.3 with PHP 5.3.1) and the latest Joomla CMS (Joomla 1.5.17) on my Windows 7 64Bit OS and it worked like a charm! No errors, no wrong file destinations.
Of course i don't have build an own template but used the example template.

What could be the problem with yours:
- you copied your joomla template. Maybe you have forgotten to change a basedir in joomla or the template.
- could be a problem with mod_rewrite. check your htaccess file in your joomla folder
- could be a problem with a wrong Apache configuration. Let us take a look on your xampp/apache/conf/httpd.conf, xampp/apache/conf/extra/httpd-xampp.conf, xampp/apache/conf/extra/httpd-vhost.conf files
- could be a incompatibility of any of your components (Apache, PHP, Joomla, Joomla template)

Where to start? You don't think it's a Joomla problem. Okay, then choose your options.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Links don't work on localhost ?

Postby kaclem » 08. July 2011 08:07

the latest Joomla works perfectly on my Win86x
kaclem
 
Posts: 1
Joined: 08. July 2011 08:05
XAMPP version: 1.7.3
Operating System: Win7

Re: Links don't work on localhost ?

Postby jrtaylor » 11. July 2011 04:05

Same problem here. Joomla is installed on xampp on my E drive. I'm able to access the index page, and the administrator section of the site, so I can work on it.
However with my menu items, I get an Error 404.

Below are some details of the installation:

Location: E:xampp/htdocs/mysite.com

For xampp/apache/conf/extra/httpd-vhosts.conf I've got this:

Code: Select all
<VirtualHost 127.0.0.1:80>
  DocumentRoot E:/xampp/htdocs/
  ServerName localhost
</VirtualHost>

<VirtualHost http://localhost/mysite.com>
  ServerAdmin admin@localhost
  DocumentRoot E:/xampp/htdocs/mysite.com
  ServerName mysite.com
 
  <Directory "E:\xampp\htdocs\mysite.com">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
</VirtualHost>


for the apache/conf/httpd.conf file I made sure this was uncommented:


Code: Select all
LoadModule rewrite_module modules/mod_rewrite.so


in my windows host file I've got:


Code: Select all
127.0.0.1      localhost
127.0.0.1      mysite.com


Any advice? Thanks.
jrtaylor
 
Posts: 4
Joined: 23. May 2011 00:05

Re: Links don't work on localhost ?

Postby Sharley » 11. July 2011 04:29

jrtaylor wrote:However with my menu items, I get an Error 404.
These errors are best investigate by reading the \xampp\apache\logs\error.log file.

jrtaylor wrote:NameVirtualHost *:80

<VirtualHost *:80>
ServerName localhost
DocumentRoot "E:/xampp/htdocs"
</VirtualHost>

<VirtualHost *:80>
ServerName mysite.com
DocumentRoot "E:/xampp/htdocs/mysite.com"
ServerAdmin admin@localhost
<Directory "E:/xampp/htdocs/mysite.com" >
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
The changes I recommend are in red.
Save the file and restart Apache and if for some typo reason Apache can't start again refer to the all knowing error.log file mentioned above.

See if that works and sorts out the 404 errors.

Your HOSTS file looks fine.

The mod_rewrite setting is correct and would be used by any .htaccess files in your Joomla folders.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Links don't work on localhost ?

Postby jrtaylor » 11. July 2011 15:15

HI thanks for your help. I made the changes you suggest, but the links (specifically, the menu items) still return a 404

Here's the error log: (note that the header has a .swf file. it works on the index page)

Code: Select all
[Mon Jul 11 09:54:47 2011] [error] [client 127.0.0.1] File does not exist: E:/xampp/htdocs/mysite.com/templates/mytemplate/swfobject.js, referer: http://localhost/mysite.com/
[Mon Jul 11 09:54:47 2011] [error] [client 127.0.0.1] File does not exist: E:/xampp/htdocs/mysite.com/templates/mytemplate/swfobject.js, referer: http://localhost/mysite.com/
[Mon Jul 11 09:54:49 2011] [error] [client 127.0.0.1] File does not exist: E:/xampp/htdocs/mysite.com/mypage.html, referer: http://localhost/mysite.com/


Advice?

Thanks.
jrtaylor
 
Posts: 4
Joined: 23. May 2011 00:05

Re: Links don't work on localhost ?

Postby Nobbie » 11. July 2011 16:47

jrtaylor wrote:Advice?


If you have a VirtualHost mysite.com, you should use it!

Dont enter http://localhost/mysite.com but http://mysite.com

And urgently read some documentation and tutorials about Apache. Spend a few weeks (at least) by learning - you obviously do not have any idea about Apache and webservers. A forum cannot replace the need of reading documentation.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04

Re: Links don't work on localhost ?

Postby Sharley » 12. July 2011 03:27

Hello,

One possible solution could be to check that the addition of localhost in your URI is not being added by a setting in Joomla.

For example change the server name in Joomla from localhost to mysite.com and see if that allows you to move forward.

BTW, I am not familiar with the settings arrangement in Joomla.

Please let me know back if it was indeed Joomla.

Thanks and good luck.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Links don't work on localhost ?

Postby jrtaylor » 12. July 2011 04:31

Sharley, thanks! I'll check out the settings and let you know what I find.
jrtaylor
 
Posts: 4
Joined: 23. May 2011 00:05


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 155 guests