My server has just been updated and now on my site the file paths for css, js and everything is wrong: the path weirdly includes the document root, so the path looks like:
First thing I checked was the core table and can confirm the core table looks correct:
The secure url and unsecure url are correctly set as:
I am lost as to why this is happening. I am thinking it could be a Selinux issue:
ls -Z
: Shows, for exampleunconfined_u:object_r:httpd_sys_content_t:s0 var system_u:object_r:httpd_sys_content_t:s0 favicon.ico
UPDATE: This is a SElinux issue with permissions. I have managed to overcome this for now by setting the SElinux to permissive mode.
I guess I could run:
chcon -R -t httpd_sys_rw_content_t /var/www/html/magentofoldername/*
But, not this is the best thing. I was wondering if someone had a more educated idea of how to best approach this? like how would I correctly set the labels.