install WP on a PC and access it from other PCs and smartphones in a LAN
-
My goal is to have a WP site I can bring with me on a location where there is no Internet connection, and to be able to share this WP site with other people in this location.
This is for a trainer and his WP site is hosting courses and quiz and he wants the attendees to access the courses and answsers the quiz.Here is what I have done so far on my netbook running on Windows 10:
Install USBWebServer (https://www.usbwebserver.net/en/), so I have Apache, PHP, MySQL and PHPMyAdmin on a USB key connected to my netbook.
Install OStoto HotSpot (https://www.drivethelife.com/free-wifi-hotspot-creator.html), to use my netbook as a Wifi hotspot.
Modify my host file with entry: 127.0.0.1 local.cms
Setup a virtual host on USBWebServer in apache2/conf/extra/httpd-vhosts.conf, with, as my site is in root directory;
<VirtualHost *:80>
DocumentRoot “E:\USBWebserver v8.6\root”
ServerName local.cms
</VirtualHost>
Install WordPress with WordPress URL and site URL set to “https://local.cms/wptest01”Here is what I have done on my Android Phone:
Connect to the hotspot of my netbook.
Define a proxy server with IP adress set to the IP adress of my netbook Wifi network card emulated by OStoto HotSpot.With all that set:
From my netbook:
I can access PHPMyAdmin locally using https://local.cms/phpmyadmin/, and the whole site works fine.
I can access my WP site locally using https://local.cms/wptest01, and the whole site works fine, including admin.
From my Android Smartphone:
I can access static HTML pages such as https://local.cms/test.html, it works fine.
I can access PHPMyAdmin using https://local.cms/phpmyadmin, and the whole site works fine.
But unfortunately, I cannot access my WP site using https://local.cms/wptest01: I have no response from the netbook, and I have no errors in Apache error.log.So this seems specific to WP since static pages as well as PHPMyAdmin works fine.
Here is the content of the .htaccess for wptest01:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wptest01/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wptest01/index.php [L]
</IfModule># END WordPress
I’m on this for almost one week, thanks in advance for your feedback.
- The topic ‘install WP on a PC and access it from other PCs and smartphones in a LAN’ is closed to new replies.