<div dir="auto">What type of site. If WordPress You may need to set AllowOveride directive in the <directory> section</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2019, 1:43 PM James Dugger <<a href="mailto:james.dugger@gmail.com">james.dugger@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">What does Apache error_log and access_log say</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 30, 2019, 1:37 PM <<a href="mailto:techlists@phpcoderusa.com" target="_blank" rel="noreferrer">techlists@phpcoderusa.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p><br></p>
<p><span>chown -R www-data:www-data d</span>id not fix the problem. </p>
<div> </div>
<p><br></p>
<p>On 2019-12-30 15:50, James Dugger wrote:</p>
<blockquote type="cite" style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="auto">Try setting chown -R www-data:www-data on the document root</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Mon, Dec 30, 2019, 12:48 PM Stephen Partington <<a href="mailto:cryptworks@gmail.com" rel="noreferrer noreferrer" target="_blank">cryptworks@gmail.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">This might help.
<div dir="auto"> </div>
<div dir="auto"><a href="https://docs.microsoft.com/en-us/windows/wsl/wsl2-install" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://docs.microsoft.com/en-us/windows/wsl/wsl2-install</a></div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Mon, Dec 30, 2019, 3:41 PM <<a href="mailto:techlists@phpcoderusa.com" rel="noreferrer noreferrer" target="_blank">techlists@phpcoderusa.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p><br></p>
<p>I've been trying to locate a command that will tell me which version of the WSL I am running. The best answer I read was the WSL is tied to the Windows updates.... which I get regularly. </p>
<p>I have a vhost in /etc/apache2/sites-available/myframework.dev.conf with the following excerpt</p>
<p>...</p>
<p>DocumentRoot /var/www/html/<a href="http://myframework.dev/public_html" rel="noopener noreferrer noreferrer noreferrer" target="_blank">myframework.dev/public_html</a><br>ServerName <a href="http://www.myframework.dev" rel="noopener noreferrer noreferrer noreferrer" target="_blank">www.myframework.dev</a></p>
<p>...</p>
<p>I enabled <span>myframework.dev.conf and restarted apache...</span></p>
<p><span>I edited /etc/hosts and added the following 2 lines : </span></p>
<p>127.0.0.1 <a href="http://www.myframework.dev" rel="noopener noreferrer noreferrer noreferrer" target="_blank">www.myframework.dev</a></p>
<p><span>127.0.0.1 </span><a href="http://www.myframework.dev" rel="noopener noreferrer noreferrer noreferrer" target="_blank">myframework.dev</a></p>
<p>When I enter the url <a href="http://www.myframework.dev" rel="noopener noreferrer noreferrer noreferrer" target="_blank">www.myframework.dev</a> into my browser, I get a message:</p>
<h1><span>This site can't be reached</span></h1>
<div> </div>
<p>I set the file permissions : chmod 755 -R html/ and ownership : chown -R myuser:myuser html </p>
<p>I'm sure it much be something simple.... </p>
<p>Note : If I go to localhost in the browser I see a page located at /var/www/html/index.php</p>
<p>Any help is much appreciated.</p>
<p>Keith</p>
<p><br></p>
<p>On 2019-12-19 02:07, James Dugger wrote:</p>
<blockquote style="padding:0 0.4em;border-left:#1010ff 2px solid;margin:0">
<div dir="ltr">
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394">Are you on the latest version of Windows 10 with WSL2? If not there are huge differences. Prior to WSL2 and the latest Windows 10 developer mode, the WSL sent linux system calls to an emulator that the Windows NT kernel could understand. However with the advent of the latest Windows 10 updates and WSL2 (June 2019) Microsoft installs a full linux kernel with the WSL2 distribution you chose. I think the latest for Ubuntu now is 18.04 on the Microsoft Store. When launched for projects saved and running in the WSL Visual Studio Code now knows the project is a Linux project open with the Linux binaries enabled. You can see this when the bottom left screen lights up in the highlighted text color and indicates WSL.</div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394"> </div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394">I have not noticed a lag in VS Code in on either Windows or Linux based projects (lasts versions) . But my system is a core i7. Haven't had to reboot either. <br>I am running the latest Windows 10 Version. with Hyper V shut down and VirtualBox installed as a Hypervisor. I don't use the native WSL as a native webserver for PHP applications. I use Vagrant and VirtualBox for building guest machines to run/develop those apps.<br><br>Regarding Apache I assume you are setting up separate document root directories for each site declared in different virtual hosts files or section of code in the main apache conf file or separate conf files.<br><br></div>
<div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#0b5394">Do you have corresponding settings in the /etc/hosts file that are correctly resolving to your virtual host entries? </div>
</div>
<br>
<div class="gmail_quote">
<div class="gmail_attr" dir="ltr">On Mon, Dec 16, 2019 at 5:03 PM <<a href="mailto:techlists@phpcoderusa.com" rel="noreferrer noreferrer" target="_blank">techlists@phpcoderusa.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid #cccccc;padding-left:1ex">
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p>Hi, </p>
<p>AZ Pete mentioned the Windows Powershell and the Visual Studio Code editor. I thought I would branch off of that.</p>
<p>I'm not a <span>Python developer. I'm a PHP developer.</span></p>
<p><span>In the past I have always used an external LAMP server for development. Currently I have an old i3 laptop that was upgraded to an SSD. Does the job just fine.</span></p>
<p><span>A month or so ago I thought I would <span style="font-size:13.3333px">experiment</span> with </span>the Windows Subsystem for Linux by installing Apache, MySql, and PHP. Worked well, with two exceptions. </p>
<p>I used <span>Visual Studio Code to edit the code "remotely".</span></p>
<p><span>I had two issues which I do not recall completely. 1) When I would bring the computer out of screen saver mode it would run really slow and require a reboot. I'm guessing the subsystem went to sleep and was not able to </span><span style="font-size:13.3333px">wake up..... 2) As I recall I configured a number of vhosts off of /var/www/html/ which worked well except PHP reported the Docroot was the same as the localhost for all three vhosts, even though they were configured with different Docroots. I wonder if there might be a Apache setting that will correct this?</span></p>
<p><span style="font-size:13.3333px"><span>The subsystem reports its</span> running </span><span style="font-size:13.3333px">Ubuntu 16.04.6 LTS.</span></p>
<p><span style="font-size:13.3333px">I think it might be time to dig a little deeper. </span></p>
<p><br></p>
<p><br></p>
<p><br></p>
</div>
---------------------------------------------------<br> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote>
</div>
<br clear="all">
<div> </div>
-- <br>
<div dir="ltr">
<div dir="ltr"><span style="color:#0b5394">James</span>
<div><br><span style="color:#ffffff"><span style="background-color:#0b5394"><strong><a href="http://www.linkedin.com/pub/james-h-dugger/15/64b/74a/" rel="noopener noreferrer noreferrer noreferrer" target="_blank"><span style="background-color:#ffffff"><span></span><span style="color:#0b5394">Linkedin<span></span></span></span></a></strong></span></span></div>
</div>
</div>
<br>
<div style="margin:0;padding:0;font-family:monospace">---------------------------------------------------<br> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div>
</blockquote>
</div>
---------------------------------------------------<br> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote>
</div>
---------------------------------------------------<br> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote>
</div>
<br>
<div style="margin:0;padding:0;font-family:monospace">---------------------------------------------------<br> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" rel="noreferrer noreferrer" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br> To subscribe, unsubscribe, or to change your mail settings:<br> <a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noopener noreferrer noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></div>
</blockquote>
</div>
</blockquote></div>
</blockquote></div>