LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: padmahas (---.168.72.182.airtel.in)
Date: October 19, 2016 09:55AM

Hello all,

I can access my WAMP server from another computer from LAN using my system's IP with default port 80.
However I couldn't access the projects (which I can access in local system without any problem) and phpmyadmin. I've placed my projects under traditional "C:\wamp64\www" folder. I've configured virtual hosts file too. Please find below details.

I'm using,

Windows 7, 64 bit OS
WAMP 3.0.4 64 bit
Apache 2.4.18 - PHP 5.6.19 - MySQL 5.7.11
PHP 5.6.19 for CLI (Command-Line Interface)

And the configuration files are,

windows hosts file
C:\Windows\System32\drivers\etc\hosts

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 moodle
127.0.0.1 osticket
127.0.0.1 moodle_original

http-vhosts.conf file: C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf
#
# Virtual Hosts
#

<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp64/www
<Directory "c:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

The below virtualhost entry has been deleted as per the suggestion of RiggsFolly in this post (http://forum.wampserver.com/read.php?2,143196). Previously I had the below virtual host entry for moodle project.

<VirtualHost *:80>
ServerName moodle
DocumentRoot c:/wamp64/www/moodle
<Directory "c:/wamp64/www/moodle">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

phpmyadmin configuration file: C:\wamp64\alias\phpmyadmin.conf

Alias /phpmyadmin "c:/wamp64/apps/phpmyadmin4.5.5.1/"

<Directory "c:/wamp64/apps/phpmyadmin4.5.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<ifDefine APACHE24>
Require local
</ifDefine>
<ifDefine !APACHE24>
Allow from all
# Deny from all
# Allow from localhost ::1 127.0.0.1
</ifDefine>

# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>

How shall I proceed further.

Thank you.

Options: ReplyQuote
Re: LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: RiggsFolly (Moderator)
Date: October 19, 2016 10:53AM

Hi padmahas

Can you tell us what you are trying to achieve please

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: padmahas (---.168.72.182.airtel.in)
Date: October 20, 2016 06:09AM

Sure RiggsFolly.

I'm just trying to access my php projects, which appears in WAMP's default homepage (localhost), from another computer over LAN.

I can access the WAMP server running in my system from another system using the IP. eg: 172.19.65.185 (only after I edited configuration files as shown above). But I couldn't access either phpmyadmin or the projects that appears in WAMP page using IP/proj_name, eg: 172.19.65.185/moodle. Tell me if you need more information.

Thank you.



Edited 1 time(s). Last edit at 10/20/2016 09:18AM by padmahas.

Options: ReplyQuote
Re: LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: RiggsFolly (Moderator)
Date: October 20, 2016 05:04PM

Have a look at this

[stackoverflow.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: padmahas (---.168.72.182.airtel.in)
Date: October 24, 2016 02:41PM

For WAMP 3 and above you have suggested to modify httpd-vhosts.conf file, which I have done as I've posted my configured file above.

About phpmyadmin, my bad, I hadn't noticed and now I've edited to "Require all granted".

But my projects still aren't accessible from LAN.

Thank you.

Options: ReplyQuote
Re: LAN-WAMP is accessible, but not the projects as well as phpmyadmin
Posted by: RiggsFolly (Moderator)
Date: October 24, 2016 04:15PM

If you have done this

<VirtualHost *:80>
    ServerName moodle
    DocumentRoot c:/wamp64/www/moodle
    <Directory "c:/wamp64/www/moodle">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Then now you must amend the HOSTS file on each PC that wishes to access this domain like this

192.168.1.x  moodle
Where 192.168.1.x should be replaced by the real ip address of the PC running WAMPServer(Apache)

You can then use 'http://moodle' in the browser of these other PC's



Please remember that WAMPServer was and is designed as a One PC developer tool. As soon as you attempt anything else you should start by reading the relevant documentation for the software you want to amend.

Remember also Virtual Hosts is not a WAMPServer feature it is a standard Apache feature and therefore can be researched in the Apache manuals.

This is what WAMPServer was designed for, to allow people to learn how to use Apache/MySQL/PHP in a safe secure ring fenced environment where they could not get hacked in the process.

While we are always willing to help, you should also backup any sugestions we may make with knowledge gained from the relevant manuals and any good books/tutorials you may find.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

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 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.