Any ideas why Magento sets the beginning of the media, skin and js url's like this /var/www/domain.com/html/ instead of normal http://www.domain.com like it has been set in unsecure_base_url and secure_base_url?

I have set up full url for each (js, media and skin) in database so I'm not sure where does that server folder come from.

1 Answer 1


I found a solution:

sudo chown -R www-data:www-data media/ var/

More details here: https://stackoverflow.com/questions/15336647/styles-not-loading-in-magento-due-to-wrong-url-path-how-to-solve-this

So this was a permission problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.