sonoton345 0 Posted July 15, 2009 Share Posted July 15, 2009 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. Link to post Share on other sites
RichardRotterdam 1 Posted July 15, 2009 Share Posted July 15, 2009 Change the path to your app/webroot directory. try: DocumentRoot "C:\nweev\new_iweev\app\webroot" Link to post Share on other sites
sonoton345 0 Posted July 15, 2009 Author Share Posted July 15, 2009 I did that already and it displayed the homepage only. When I clicked to view other pages I got a broken link. Link to post Share on other sites
RichardRotterdam 1 Posted July 15, 2009 Share Posted July 15, 2009 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? Link to post Share on other sites
sonoton345 0 Posted July 15, 2009 Author Share Posted July 15, 2009 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. Link to post Share on other sites
jcombs_31 0 Posted July 15, 2009 Share Posted July 15, 2009 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? Link to post Share on other sites
sonoton345 0 Posted July 15, 2009 Author Share Posted July 15, 2009 This is the error.... Not Found The requested URL /pages/connect/ was not found on this server. Link to post Share on other sites
jcombs_31 0 Posted July 15, 2009 Share Posted July 15, 2009 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. Link to post Share on other sites
sonoton345 0 Posted July 15, 2009 Author Share Posted July 15, 2009 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? Link to post Share on other sites
sonoton345 0 Posted July 15, 2009 Author Share Posted July 15, 2009 I got the last part figured out..thanks..back to my original post Link to post Share on other sites
artakazezs 0 Posted July 16, 2009 Share Posted July 16, 2009 Had a similar prob but checked my naming convention for cake n that solved the problem. I will advice you revisit httP://book.cakephp.org or better still stay focused on the flexible cake naming convention. Link to post Share on other sites
sonoton345 0 Posted July 17, 2009 Author Share Posted July 17, 2009 I did follow the naming convention. It looks like it doesn't work outside the htdocs. Link to post Share on other sites
RichardRotterdam 1 Posted July 17, 2009 Share Posted July 17, 2009 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 Link to post Share on other sites
RichardRotterdam 1 Posted July 17, 2009 Share Posted July 17, 2009 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. Link to post Share on other sites
sonoton345 0 Posted July 18, 2009 Author Share Posted July 18, 2009 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 Link to post Share on other sites
Recommended Posts
Archived
This topic is now archived and is closed to further replies.