How to setup Apache, MySql, and PHP on Ubuntu Linux

0:20 Lamp Stack Intro
3:00 Apache Setup
5:23 Hosts File
9:35 Server Folder
14:40 Create a Vhost
22:33 Install PHP
25:40 Vhost Automation
31:51 Install MySql

:: Support Me ::

:: Tutorial Series ::
WordPress 101 – Create a theme from scratch:
WordPress Premium Theme Development:
Learn SASS from Scratch:
Design Factory:
Affinity Designer:

:: My Website ::

:: Follow me on ::
Twitter:
Google+:
Facebook:

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

22 Comments

Nikola

May 6, 2020

37 minutes? really?

Reply

Imad Alnajjar

May 6, 2020

Hi Alessandro, first I would like to thank you so much regarding this content, I follow all your steps and the local host is working fine on the same computer, but when am I calling the IP address for that PC locally still it shows the Apache page, could you please tell me how to fix this issue, and how to point my home IP address to that WordPress folder? I already added the port 80 and 443 in the port forwarding sitting in the router.

Reply

Adrian Barczewski

May 6, 2020

Stupid, this installation not from make!

Reply

braiNN

May 6, 2020

the automatic virtual host thing is great. Wish there was a way to automate the ownership of the folder it creates.

Reply

Illya Chaltin

May 6, 2020

Thx for the video mate!

I myself made a mistake and took me an hour to solve it. 4 ppl in the future:

My mistake:
I couldn't reach test.dev because I enabled test.dev.conf restarted and figured out the first time I enabled test.dev.conf as a result test.dev never worked anymore.
Started over with test.local did sudo a2ensite test.local and this worked. Never got test.dev working again =s even if I did sudo a2ensite test.dev

Command:
sudo a2ensite test.dev

I did:
sudo a2ensite test.dev.conf (WRONG!!! )

Reply

Pankaj Vig

May 6, 2020

I did not understand the use of symlink? Why do we need it? Can you please explain?

Reply

Muhammad Muzammil

May 6, 2020

Dear video owner can I setup web server using this tutorial on any version of ubuntu?

Reply

Jose Reduarrdo

May 6, 2020

bookmark:19:41

Reply

r damien

May 6, 2020

do the services start on bootup or do i have to start them manually?

Reply

Victor Sokoluik

May 6, 2020

Man you are magician! Thanks a lot it's greate tutorial.

Reply

מחשבים

May 6, 2020

it's very good tutorial

Reply

מחשבים

May 6, 2020

what is your icons theme?

Reply

Andrew Stimson

May 6, 2020

This was perfect, thanks!

Reply

Martin Vermeulen

May 6, 2020

Hi .. good video very good explained .. helps a lot thanks …

Reply

Morgan Sippel

May 6, 2020

such a thoughtful and useful tutorial. Good job!

Reply

SGA Hobbyists

May 6, 2020

my computer uses ARM cpu architecture. will this github download work?

Reply

vamsi srinivas

May 6, 2020

I'm using vs code for writing the php program and need to the run it in apache2 sever

Reply

TJ Khara

May 6, 2020

Quick question – I ran the script to create the site and the folder, but the folder in my www folder has the lock on it. It is owned by root. Is that okay? Is that the way the script is supposed to work because I don't see that lock when you show the site folders in your www folder.

Reply

TJ Khara

May 6, 2020

Awesome video! The one issue I ran into was creating a .dev test domain and this just would not show up in my browser. Works fine if I user something like test.com. Again, thank you so much. Leanred a lot from this.

Reply

Kartikey Srivastava

May 6, 2020

I recently moved from windows to linux. The websites i created on windows and used to test using xampp are no longer working on the virtualhost i created. Specifically there is a problem connecting to the database. When i submit the data in the form I get HTTP ERROR 500 (myregistrationform.local is currently unable to handle this request).

Reply

Muhammed sufiyan PK

May 6, 2020

plz give git gub link i cant find

Reply

Verneri Heikkilä

May 6, 2020

the script creates all the necessary files and i cant seem nothing wrong with the structure or syntax of the files but its still not showing up on my browser. using ubuntu 18.04, apache2 2.4 and php 7.2
Wondering what could be the issue here. Cuz when i manually configure the site its working completely fine, so it must have something to do with the script.

Reply

Leave a Reply