Hi RiggsFolly,
I am newbie to setting up server,etc. Actually, I am looking forward to upload a file in my WAMP server (in my PC) from my mobile and display it in MySQL database through internet.
First of all, I want my Wamp server to be online (internet) and I read many posts and blogs about it but I am facing trouble with it.
I am using wamp v2.5, Apache : 2.4.9, MySQL : 5.6.17, PHP : 5.5.12, PHPMyAdmin : 4.1.14.
Other things I did:
1) I planned to use port 50150. So, I enabled Inbound/Outbound rules in Firewall.
2) Next, in my httpd.conf file, I changed as below
Listen 0.0.0.0:50150
Listen [::0]:50150
3) Also, in httpd.conf file, I changed "ServerName 192.xxx.yyy.zzz:50150"
where 192.xxx.yyy.zzz is the IPv4 address I got from ipconfig in command line window.
4) Also, I changed (#onlineoffline tag - don't remove) in httpd.conf file from
'Require local' to 'Require all granted'
5) Also, I made 192.xxx.yyy.zzz as static IP of my PC with the help of Port Forward software.
But I am not able to port forward using the above Port Forward software. My PC is connected to Linksys Router (through WIFI) which is further connected to the building Router 192.xxx.yyy.1.
When I type '192.xxx.yyy.z' in browser, it goes to the building router in which I have no access.
I am not sure whether the problem is because of this.
Actually, when I entered 192.xxx.yyy.zzz: 50150 in my mobile's browser, it did not connect (Both were connected to same router).
It worked well when I connected locally with browser but suddenly the icon is orange and does not
turn green after restarting it many times.
I think there is some issue with httpd.conf file. Please check and let me know.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:50150
Listen [::0]:50150
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g.
admin@your-domain.com#
ServerAdmin
admin@example.com#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 192.xxx.yyy.zzz:50150
HostnameLookups Off
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "G:/wamp/www/"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
AllowOverride none
Require all denied
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
<Directory "G:/wamp/www/">
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require all granted
</Directory>
Also please let me whether I need to do any changes other wamp server files ?
Also, I am not sure whether I need to use virtual hosts for my work because of Wamp v2.5.
Thank you Riggs!