xmark02 Posted January 20, 2016 Share Posted January 20, 2016 Hi Guys, I am newbie in PHP. I'm trying to fix the issue on WAMP application via web. The environment goes wrong when using hostname but working via IP address, the IP address for example http://192.168.1.194/Asset/Index.php has a good environment (I don't know what is good term for this). but when trying to run http://assetsvr/Asset/Index.php it's different from local IP address. Please see attached file. Hope you can help on this. Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/ Share on other sites More sharing options...
QuickOldCar Posted January 20, 2016 Share Posted January 20, 2016 (edited) If using a local environment can use http://localhost Can edit your hosts file located in C:\Windows\System32\drivers\etc , show all hidden files 192.168.1.194 assetsvr Edited January 20, 2016 by QuickOldCar Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530100 Share on other sites More sharing options...
xmark02 Posted January 20, 2016 Author Share Posted January 20, 2016 I'll be editing this to all machine? Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530103 Share on other sites More sharing options...
xmark02 Posted January 20, 2016 Author Share Posted January 20, 2016 still not working, I already added the address to drivers/etc Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530104 Share on other sites More sharing options...
benanamen Posted January 20, 2016 Share Posted January 20, 2016 (edited) You also have to setup a virtual host in Apache. Edited January 20, 2016 by benanamen Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530106 Share on other sites More sharing options...
xmark02 Posted January 20, 2016 Author Share Posted January 20, 2016 How to create virtual host? Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530108 Share on other sites More sharing options...
QuickOldCar Posted January 20, 2016 Share Posted January 20, 2016 How to create virtual host? https://john-dugan.com/wamp-vhost-setup/ Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530123 Share on other sites More sharing options...
benanamen Posted January 20, 2016 Share Posted January 20, 2016 How to create virtual host? Darn it! Is google down again? 1 Quote Link to comment https://forums.phpfreaks.com/topic/300568-web-page/#findComment-1530136 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.