Jump to content

Archived

This topic is now archived and is closed to further replies.

sonoton345

cakephp page not displaying

Recommended Posts

I created a virtual host and moved my entire cake folder to this directory but it looks like the page is not seeing my css file. All images are broken and the layout gone. Any help.

 

here is my virtualhost line in apache

<Directory "C:/nweev">
  Order Deny,Allow
  Allow from all
</Directory>

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
  DocumentRoot "C:/nweev/new_iweev/"
  ServerName new_iweev
</virtualHost>

 

I moved the entire cake files into new_iweev.

Share this post


Link to post
Share on other sites

I did that already and it displayed the homepage only. When I clicked to view other pages I got a broken link.

Share this post


Link to post
Share on other sites

I did that already and it displayed the homepage only. When I clicked to view other pages I got a broken link.

Define what you mean by "homepage only". And what other pages are you refering to with:

When I clicked to view other pages I got a broken link

 

Do the images on your "homepage" display correctly though?

Share this post


Link to post
Share on other sites

it's displaying home.ctp which is inside my pages folder. All images displays well.

When I click on my navigation (e.g contact) pointing to other views in the pages folder and other folders, it's showing a broken link page.

Share this post


Link to post
Share on other sites

What is a broken link page?  Can you post the error.  Make sure your .htaccess file is working. Did you ever change any paths in index.php?

Share this post


Link to post
Share on other sites

This is the error....

Not Found

The requested URL /pages/connect/ was not found on this server.

Share this post


Link to post
Share on other sites

Is your debug currently set to 0?  You should set it to at least 1 or 2 for development.  You will get a better error message. 

Share this post


Link to post
Share on other sites

ok I did it a different way...left the folder in my htdocs, created a virtualhost like this

 

<VirtualHost 127.0.0.1>
  DocumentRoot C:/webserver/htdocs/mytestsite/app/webroot
  ServerName mytestsite
</virtualHost>

 

when i type in http://mytestsite, everything works fine. This may probably be a question for the apache server forum, but I want everyone on my network to be able to view http://mytestsite. Instead of seeing my page, they are getting "It Works" which is apache's default page for successful installation. What do I need to do to point to my cakephp website?

Share this post


Link to post
Share on other sites

I did follow the naming convention. It looks like it doesn't work outside the htdocs.

Maybe a long shot but did you setup a dns with the windows host file?

usually it's located in C:\Windows\system32\drivers\etc\host

Share this post


Link to post
Share on other sites

nvm that last comment you're using 127.0.0.1 so it wouldn't matter. But in case you were unaware of it, then it could come in handy.

Share this post


Link to post
Share on other sites

I did follow the naming convention. It looks like it doesn't work outside the htdocs.

Maybe a long shot but did you setup a dns with the windows host file?

usually it's located in C:\Windows\system32\drivers\etc\host

 

Yes I did

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.