sonoton345 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/ Share on other sites More sharing options...
RichardRotterdam 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" Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875612 Share on other sites More sharing options...
sonoton345 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875688 Share on other sites More sharing options...
RichardRotterdam 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? Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875693 Share on other sites More sharing options...
sonoton345 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875798 Share on other sites More sharing options...
jcombs_31 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? Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875856 Share on other sites More sharing options...
sonoton345 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875861 Share on other sites More sharing options...
jcombs_31 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875953 Share on other sites More sharing options...
sonoton345 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? Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-875962 Share on other sites More sharing options...
sonoton345 Posted July 15, 2009 Author Share Posted July 15, 2009 I got the last part figured out..thanks..back to my original post Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-876079 Share on other sites More sharing options...
artakazezs 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-876587 Share on other sites More sharing options...
sonoton345 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-877112 Share on other sites More sharing options...
RichardRotterdam 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 Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-877176 Share on other sites More sharing options...
RichardRotterdam 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. Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-877200 Share on other sites More sharing options...
sonoton345 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 Quote Link to comment https://forums.phpfreaks.com/topic/165995-cakephp-page-not-displaying/#findComment-877563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.