tpow
tpow

Reputation: 7884

Joomla looking in wrong directory for localhost

This is the first time I've tried to setup Joomla in a localhost dev environment. I have everything setup with Xampp, and when I browse to localhost/mysite, I sort of see my site, but without any styles, images, etc..

In Firebug, I can see that the initial request goes to localhost/mysite, but all the subsequent requests go to just 'localhost'- so I'm getting a bunch of 404's on my CSS, images, etc.

I've tried tinkering around in .htaccess and the root index.php file, but I can't seem to figure out how to tell Joomla to look at localhost/mysite instead of just localhost...?

Thanks!

Upvotes: 0

Views: 615

Answers (2)

tpow
tpow

Reputation: 7884

The answer was to change the configuration:

var $live_site = '';

That initially had the actual URL. I changed it to "localhost/mysite" (several variations.) - but because I didn't have http://localhost, it was appending it, instead of replacing it. The request in the NET tab of Firebug indicated the calls were going to "localhost", but in the HTML panel, I could see the inproper URL, and it looked like this..

localhost/mysite\localhost\mysite/myfile.css

Upvotes: 1

Luixv
Luixv

Reputation: 8710

Joomla instalation is pretty straightforward. You don't have to set any .htaccess or whatsoever. I would advice to test (using phpMyAdmin for example) if you can access the joomla DB. Did you install the dummy data? If not I would advice to do it. The better way is to reinstall Joomla. For doing that just delete de joomla directory and remove the DB created (actually this is not necessary). If you have the dummy data check the permissions of the files, but I don't hink this is your problem.

Upvotes: 2

Related Questions