Cakephp Does Not Load Css, Javascript, and Images

Asked

Viewed 491 times

1

I have Cakephp in version 1.3.15 installed on a Centos server and the same project that works on the Internet, the local server only loads text and nothing else.
As I enable developer mode, if there was an error, it would load. I believe the error must be in the css path.

httpd.conf

  • Checks whether the .htaccess this in root folder

  • @Jefersonassis, you say the . htaccess of cake, correct?

  • <IfModule mod_rewrite.c>&#xA; RewriteEngine on&#xA; RewriteRule ^$ app/webroot/ [L]&#xA; RewriteRule (.*) app/webroot/$1 [L]&#xA;</IfModule>

  • It may be that your apache is not configured to read the .htaccess or the way rewrite is disabled. If you are using wamp it is very common to happen ¡

  • @Wallacemaxters. I am using Centos 6.7 text mode. From what I saw apache is correct. You would have something to check in apache?

  • @Wallacemaxters. From what I’ve seen, I don’t have . htacess on Centos other than cakephp.

  • @fabricio_wm makes a test. Strip the IfModule. If it sucks, then mod_rewrite is not enabled :)

  • @Wallacemaxters I used vi to check the httpd.conf file that is inside the directory /etc/httpd/conf/ When checking was Allowoverride All I could not check the . htacess pq is as if it has been inaccessible.

  • @put the image at the end of the question. See if this helps.

  • what do you mean by "htaccess inaccessible"?

  • I am using Centos via virtualbox as I said earlier. When sending via ssh, ask if I want to replace. when giving an ls in the folder that the file is in, it does not appear as if it is hidden. When using Vi to edit, it happens as if I were creating a new file, @Danielomine

Show 6 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.