Problems setting a network LAN Wamp Server
Posted by: kouen (---.bvconline.com.ar)
Date: August 08, 2013 11:06PM

Hello i have 3 computers and want to one of them setted as a server with wamp.
i configured it properly but in the instance in which the machine should access a database it give me an error unable to connect i opened ports on firewall.
computer 1: server ip 192.168.1.155
computer 2: ip 192.168.1.154
computer 2: ip 192.168.1.153
i set listen 8080
but i dont know what does it means the settings near the main wamp directory (www) changed to dropbox
i have ServerName localhost:8080
why it doesnt work any installations of wordpress??
when i get into databases using phpmyadmin it works well
but when i want to enter wordpress sites says unable to connect
i have this settings:
listen 8080

ServerName localhost:8080

# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.1.154 192.168.1.153

thats the only config i changed

i dont use vhosts but i think i will on the near future.
it might be some problem with bind adress 127.0.0.1 in my.ini???? i followed a tutorial to secure wamp installs
Thanks in advance for any help provided.

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: RiggsFolly (---.as13285.net)
Date: August 12, 2013 10:52AM

It is so much easier to use port 80.

Did you install wordpress properly or copy an installation from another server?

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: kouen (---.bvconline.com.ar)
Date: August 12, 2013 07:39PM

i had to specify the ip on hosts files.....
in hosts:
127.0.0.1 192.168.1.155
Thanks

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: ClearModule.com (---.mysmart.ie)
Date: August 13, 2013 09:12PM

ServerName localhost:8080 is not correct. It should be 192.168.1.155:8080. Also change your host file back to default.

127.0.0.1 localhost loopback
::1 localhost


Also try allow from all to test for Apache permissions issues.

ClearModule - Free PHP Training - [clearmodule.com]

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: kouen (---.bvconline.com.ar)
Date: August 16, 2013 02:21AM

it worked i also started using vhosts....
Thanks a lot for the help.
ClearModule another question.... i touched hosts for computers on network recognize the server
is it any other way to do that... or just using hosts on server.
example:
Vhosts file

NameVirtualHost *:8080


<VirtualHost *:8080>
ServerName localhost
ServerAlias localhost
DocumentRoot "c:/Users/Hubble/Dropbox/Project"
ErrorLog "c:/Users/Hubble/Dropbox/Project/Logs/project-error.log"
CustomLog "c:/Users/Hubble/Dropbox/Project/Logs/project-access.log" common
</VirtualHost>

<VirtualHost *:8080>
ServerName project.des
ServerAlias project
DocumentRoot "c:/Users/Hubble/Dropbox/Project/project1"
ErrorLog "c:/Users/Hubble/Dropbox/Project/project1/Logs/project-error.log"
CustomLog "c:/Users/Hubble/Dropbox/Project/project1/Logs/project-access.log" common
</VirtualHost>


<VirtualHost *:8080>
ServerName static.project.des
ServerAlias static
DocumentRoot "c:/Users/Hubble/Dropbox/Project/static"
ErrorLog "c:/Users/Hubble/Dropbox/Project/static/Logs/project-error.log"
CustomLog "c:/Users/Hubble/Dropbox/Project/static/Logs/project-access.log" common
</VirtualHost>


and in hosts file
hosts server (no dns server)
127.0.0.1 project.des
127.0.0.1 static.project.des

remote hosts (192.168.1.153)
192.168.1.155 project.des
192.168.1.155 static.project.des

is it safe to establish this parameters in hosts (remote - Local)

i followed a tutorial online and said that it was right that way but i ask just in case isnt so safe.
Thanks a lot ClearModule°!!!!! and Thanks RiggsFolly
Salutations!!!



Edited 1 time(s). Last edit at 08/16/2013 02:29AM by kouen.

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: kouen (---.bvconline.com.ar)
Date: August 16, 2013 02:27AM

Yes i Installed everything right it seems it was a problem with dns resolution.
solved using hosts files and the proper settings on httpd.conf..... ahhh i forgot i too shared the folder with the wamp server account on the server

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: ClearModule.com (---.revenue.ie)
Date: August 16, 2013 09:55AM

You should not the hosts file for DNS resoultion. Use the name of the computer. To find your computer name

Open System by clicking the Start button , right-clicking Computer, and then clicking Properties.

ClearModule - Free PHP Training - [clearmodule.com]

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: August 16, 2013 12:46PM

Using the HOSTS file on the client PC in a local networked senario is a perfectly good idea.

It allows the client users to enter a sensible domain name, and allows Apache to direct the client to the correct vhosted site.

Options: ReplyQuote
Re: Problems setting a network LAN Wamp Server
Posted by: kouen (---.bvconline.com.ar)
Date: August 18, 2013 03:03AM

Thanks a lot for the help people. Salutations!!!

Options: ReplyQuote


Sorry, only registered users may post in this forum.