sudo su
apt update
apt install apache2 mysql
nano /etc/apache2/sites-available/sites.loc.conf
# Place any notes or comments you have here
# It will make any customisation easier to understand in the weeks to come
# domain: domain1.com
# public: /home/demo/public_html/domain1.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name) and any aliases
ServerAdmin webmaster@domain1.com
ServerName sites.loc
ServerAlias www.sites.loc
# Index file and Document Root (where the public files are located)
DirectoryIndex index.php
DocumentRoot /mnt/c/work/website/sites.loc/html
# Custom log file locations
LogLevel warn
ErrorLog /var/log/apache2/error-mydomainname.com.log
CustomLog /var/log/apache2/access-mydomainname.com.log combined
</VirtualHost>
add in
nano /etc/apache2/apache2.conf
<Directory /mnt/c/work/website/*> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory>
a2ensite sites.loc
service apache2 restart
add in c:\Windows\System32\drivers\etc\hosts
127.0.0.1 cprice.loc
a2enmod rewrite
service apache2 restart
Find the php.ini on your server. In wamp you click on the toolbar icon -> select PHP -> select php.ini
Push ctrl+ f and find "realpath_cache_size" . Remove the semi-colon at the beginning of the line and make it =16M instead of 16k .
This all