{"id":421,"date":"2019-07-12T17:17:10","date_gmt":"2019-07-12T15:17:10","guid":{"rendered":"http:\/\/my-opinions.uw-t.com\/?p=421"},"modified":"2019-07-12T17:50:19","modified_gmt":"2019-07-12T15:50:19","slug":"windows-10-subsystem-ubuntu-apache2-mysql","status":"publish","type":"post","link":"https:\/\/uw-t.com\/ru\/programing\/windows-10-ubuntu\/windows-10-subsystem-ubuntu-apache2-mysql","title":{"rendered":"Windows 10 subsystem ubuntu apache2 + mysql"},"content":{"rendered":"\n<p>sudo su<\/p>\n\n\n\n<p>apt update<\/p>\n\n\n\n<p>apt install apache2 mysql<\/p>\n\n\n\n<p>nano \/etc\/apache2\/sites-available\/sites.loc.conf <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n# Place any notes or comments you have here\n# It will make any customisation easier to understand in the weeks to come\n\n# domain: domain1.com\n# public: \/home\/demo\/public_html\/domain1.com\/\n\n&amp;lt;VirtualHost *:80&gt;\n\n  # Admin email, Server Name (domain name) and any aliases\n  ServerAdmin webmaster@domain1.com\n  ServerName  sites.loc\n  ServerAlias www.sites.loc\n\n\n  # Index file and Document Root (where the public files are located)\n  DirectoryIndex index.php\n  DocumentRoot \/mnt\/c\/work\/website\/sites.loc\/html\n\n\n  # Custom log file locations\n  LogLevel warn\n  ErrorLog \/var\/log\/apache2\/error-mydomainname.com.log\n  CustomLog \/var\/log\/apache2\/access-mydomainname.com.log combined\n\n&amp;lt;\/VirtualHost&gt;\n<\/pre><\/div>\n\n\n<p>add in <\/p>\n\n\n\n<p>nano \/etc\/apache2\/apache2.conf<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;Directory \/mnt\/c\/work\/website\/*&gt;                                                                                                      Options Indexes FollowSymLinks MultiViews                                                                               AllowOverride All                                                                                                       Order allow,deny                                                                                                        allow from all                                                                                                          Require all granted                                                                                              &amp;lt;\/Directory&gt;   \n<\/pre><\/div>\n\n\n<p>a2ensite sites.loc  <\/p>\n\n\n\n<p>service apache2 restart<\/p>\n\n\n\n<p>add in c:\\Windows\\System32\\drivers\\etc\\hosts<\/p>\n\n\n\n<p>127.0.0.1 cprice.loc<\/p>\n\n\n\n<p>\n\na2enmod&nbsp;<strong>rewrite<\/strong><\/p>\n\n\n\n<p> service apache2 restart <\/p>\n\n\n\n<p>Find the php.ini on your server. In wamp you click on the toolbar icon -&gt; select PHP -&gt; select php.ini<\/p>\n\n\n\n<p>Push ctrl+ f and find \"realpath_cache_size\" . Remove the semi-colon at the beginning of the line and make it =<strong>16M<\/strong>&nbsp;instead of 16k .<\/p>\n\n\n\n<p>This all <\/p>\n","protected":false},"excerpt":{"rendered":"<p>sudo su apt update apt install apache2 mysql nano \/etc\/apache2\/sites-available\/sites.loc.conf add in nano \/etc\/apache2\/apache2.conf a2ensite sites.loc service apache2 restart add in c:\\Windows\\System32\\drivers\\etc\\hosts 127.0.0.1 cprice.loc a2enmod&nbsp;rewrite service apache2 restart Find the php.ini on your server. In wamp you click on the toolbar icon -&gt; select PHP -&gt; select php.ini Push ctrl+ f and find \"realpath_cache_size\" . &hellip; <a href=\"https:\/\/uw-t.com\/ru\/programing\/windows-10-ubuntu\/windows-10-subsystem-ubuntu-apache2-mysql\" class=\"more-link\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"screen-reader-text\">Windows 10 subsystem ubuntu apache2 + mysql<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-421","post","type-post","status-publish","format-standard","hentry","category-windows-10-ubuntu"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/comments?post=421"}],"version-history":[{"count":5,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/421\/revisions"}],"predecessor-version":[{"id":427,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/posts\/421\/revisions\/427"}],"wp:attachment":[{"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/media?parent=421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/categories?post=421"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uw-t.com\/ru\/wp-json\/wp\/v2\/tags?post=421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}