moisesbr Posted August 9, 2013 Share Posted August 9, 2013 Hi Here is a very basic question, but will help me a lot: I manage to install Wampserver. How to I point in my navigator to a file that in C:/myolder/myphpfile.php I tried C:/myolder/myphpfile.php but it does not execute, shows code instead. Moises Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/ Share on other sites More sharing options...
trq Posted August 9, 2013 Share Posted August 9, 2013 You need to browse to your server with your web browser. http://localhost Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444161 Share on other sites More sharing options...
Muddy_Funster Posted August 9, 2013 Share Posted August 9, 2013 also : C:\myfolder\ must be within your webserver's served directories Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444167 Share on other sites More sharing options...
moisesbr Posted August 9, 2013 Author Share Posted August 9, 2013 You need to browse to your server with your web browser. http://localhost yes, But is local host my "c:" (root) I tried as below: localhost/myolder/myphpfile.php page not found. Moises Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444168 Share on other sites More sharing options...
Muddy_Funster Posted August 9, 2013 Share Posted August 9, 2013 ok, I think this needs moved to the relevent section - Other Webserver Software would be my pick. Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444174 Share on other sites More sharing options...
moisesbr Posted August 9, 2013 Author Share Posted August 9, 2013 also : C:\myfolder\ must be within your webserver's served directories How to I setup C:\myfolder\ as a web served directory, or how to include it in webserver's served directories ? Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444178 Share on other sites More sharing options...
Muddy_Funster Posted August 9, 2013 Share Posted August 9, 2013 In windows it's not as easy as linux - Linux supports hardlink's. It depends on the software you have installed, I have only used XAMPP on widows computers, nothing else. Check through the documentation for the software and it should explain how and where to setup the web folders Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444182 Share on other sites More sharing options...
moisesbr Posted August 9, 2013 Author Share Posted August 9, 2013 I am using Wampserver.There is a www folder there.I tried to call the file there using:http://localhost//:index.phpBut it returns:ForbiddenYou don't have permission to access /:index.php on this server. Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444185 Share on other sites More sharing options...
Muddy_Funster Posted August 9, 2013 Share Posted August 9, 2013 http://localhost/index.php the only colon ( : ) that you should have is the one after the http and before the two forward slashes ( // ) and it's all single slashes after the double one at the start. Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444191 Share on other sites More sharing options...
jazzman1 Posted August 11, 2013 Share Posted August 11, 2013 How to I setup C:\myfolder\ as a web served directory, or how to include it in webserver's served directories ? Use "Alias Directive" under Apache. It allows documents to be stored in the local filesystem other than under the DocumentRoot folder. Never tested on windows machines! To obtain more information, check at docs of apache web site. Quote Link to comment https://forums.phpfreaks.com/topic/280996-wampserver-starting-php-in-my-desktop/#findComment-1444358 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.