I’ve developed a website using CakePHP and I am now trying to host it on the live server. I couln’t get much help from the hosting service, but I think they do not allow mod_rewrite (I get 500 server error whenever I try to turn it on).
So, I looked into using CakePHP without mod_rewrite. Now I can at least see the website, but I’m getting tons of errors, in particular:
- The css and js files are not found.
- There seems to be problems with the database, although it might be related to the problem above, I can’t tell for sure.
The live website can be seen at new.enviro.lu.
The working website can be seen at enviro.webforall.be
Can anybody point me into the right direction to solve these problems?
I’m using CakePHP 1.3.4.
The problem with the CSS and JavaScript pages not showing is that you have Apache’s DocumentRoot point to the wrong directory. The DocumentRoot should be /app/webroot, but you have it set to Cake’s root directory. You can see that the paths work if you access http://new.enviro.lu/app/webroot/.
The database error on the page is:
This suggests that either the
content_pagestable has not been created as the error message says or the database configuration points at a wrong database.