local host access
Posted by: ameliabob (---.mnisoftware.com)
Date: August 06, 2018 05:21PM

what is the syntax to access my project using localhost

i.e localhost/project1???

Options: ReplyQuote
Re: local host access
Posted by: RiggsFolly (Moderator)
Date: August 06, 2018 06:05PM

Hi

Thats really depends on where you put your project files!

If you put them in c:\wamp64\www\project1 then yes, but you alow need an index.php
If you have no index.php and lets say you have a file1.php then you would use `localhost/project1/file1.php`

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: local host access
Posted by: ameliabob (---.mnisoftware.com)
Date: August 06, 2018 06:28PM

I tried the second option and got the response

Forbidden

You don't have permission to access /earnings/startup.html on this server.
Apache/2.4.33 (Win64) PHP/5.6.35 Server at localhost Port 80

The earnings folder is a subdirectory of wamp64/www/ and startup.html is the first program.

Options: ReplyQuote
Re: local host access
Posted by: RiggsFolly (Moderator)
Date: August 07, 2018 12:31AM

Then use

localhost/project1/startup.html

OR

Change startup.html to index.html (Apache automatically looks for an index.html or index.html and runs it if there is one)

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.