Web-server on Ubuntu (PHP + MySQL + Apache) in 2 commands

Fast and easy install (PHP + MySQL + Apache) LAMP on Ubuntu

Step 1: install tasksel

sudo apt-get install tasksel

Step 2: Run install PHP, MySQL & Apache as LAMP server

sudo tasksel install lamp-server

Completed! Now you have installed PHP, MySQL, and Apache on your Ubuntu

Additional: Create site area
Continue reading Web-server on Ubuntu (PHP + MySQL + Apache) in 2 commands

XAMPP: Change localhost to custom domain name

For windows developers [default disk: C]:
Example: www.mysite.tst instead of localhost/mysite.
Step 1: Go to C:\Windows\System32\drivers\etc and edit “as Administrator” => hosts file.
Add in end of file:

127.0.0.1	mysite.tst

Save and close.

Step 2: Go to C:\xampp\apache\conf\extra and edit httpd-vhosts.conf file.
Add in end of file:

<VirtualHost *:80>
    ServerName www.mysite.tst
    ServerAlias mysite.tst
    DocumentRoot c:/xampp/htdocs/mysite
</VirtualHost>

Save and close.

Final step…
Continue reading XAMPP: Change localhost to custom domain name