I looked up the topic in the forum, but did not find anything, so if I missed something 'solved', please let me know.
-OC: 4.0.2.2
-wampserver 3.3.0
-Journal 3.2.0
-WIN 11 on the host, WIN10 on the client
-Firewall disabled
I have installed OC4 on my local apache server, and it works fine, doing loads of debugging, but I need someone else to have access of the version to help with configuring and debugging. The second PC is on the same home network.
If I go to the client and enter the ip address of the localhost 'host', I can access the apache localhost no problems, and if enter '\shop' also get a non rendered version of the shop, with heaps of ns_error. If I copy the path in the dev window, and change the virtualserver name to the host IP address, it works. So the errors are all relating to it not finding css, js, etc resources.
So, I have set up a virtualhost in apache, as per below
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName www.bourdon.com
DocumentRoot "${INSTALL_DIR}/www/bourdon"
<Directory "${INSTALL_DIR}/www/bourdon/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
I haver tried to change the port to 8080 to make it unique, apache said it was not a valid port. Can I define it somewhere?
I used the IP address of the host (instead of the *), but that didn't make a difference, same errors.
I have used 127.0.0.99 as the virtual host ip address (instead of the *), but when I enter it in the client, it does not recognize it - it is looking for it locally.
Basically, my client is connecting with my virtualhost!?
Has anyone got opencart working across a local network successfully? I know I am missing something pretty obvious, but 2 days in, it is doing my head in.
Thanks for any help
Martin
You need to choose a IP address on name that resolves to your local web server. If using Windows you should be able to use the computer name on the network. So if the Windows shares were accessed via \\MY-PC then use http://my-pc/ to access in a web browser. Or if not use the computer IP address.
You then need to edit the config.php files and use the computer name or computer IP address in the URLs instead of localhost. Then use that URL to access the site on both computers.
You then need to edit the config.php files and use the computer name or computer IP address in the URLs instead of localhost. Then use that URL to access the site on both computers.
Hi!
I am recommend you use "hosts" file on second computer. Other way it's a personal DNS server.
I am recommend you use "hosts" file on second computer. Other way it's a personal DNS server.
My FREE extensions in marketplace. [ security | flexibility | speedup ]
Who is online
Users browsing this forum: No registered users and 2 guests