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



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 ::

Support Me

:: Tutorial Series ::
WordPress 101 – Create a theme from scratch: http://bit.ly/1RVHRLj
WordPress Premium Theme Development: http://bit.ly/1UM80mR
Learn SASS from Scratch: http://bit.ly/220yzmZ
Design Factory: http://bit.ly/1X7Csaz
Affinity Designer: http://bit.ly/1X7CrDA

:: My Website ::

Alecaddd

:: Follow me on ::
Twitter: https://twitter.com/alecaddd
Google+: http://bit.ly/1Y7sunz
Facebook: https://www.facebook.com/alecadddpage

source
ubuntu

Devin BARTON

Devin BARTON

I am an avid Linux lover and open source enthusiast. I use Ubuntu and believe in sharing knowledge. Apart from Linux, I love classic detective mysteries.

28 thoughts on “How to setup Apache, MySql, and PHP on Ubuntu Linux

  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    I do not usually comment… but this is a VERY good video… VERY WELL DONE!… I highly recommend it to people trying to figure it out for the first time. My only request would be if you had any solution for linking EDIs to the stack… I wanted to try and use eclipse seem to have issues with the host server and Xdebug. But that was before I watched this vid, anyway that would be the only thing I would add.

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    Redirecting to https is an issue for making the test.dev work. It doesn't look into the local machine. It searches the internet. Any workaround?

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    Hi Alessandro – excellent – thanks very much. Can you perhaps take this one step further by: showing how another PC on a LAN accesses the website through a browser. I can currently access the webserver (Linux – Mint) through the web browser. But, it defaults to the "Apache – It Works" default website, but not the new virtual website created as per your tutorial. If you could explain this and what additional settings are required in the Apache Server – would be highly appreciated.

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    For those asking why test.dev doesn't load. It's because .dev is now a generic Top Level Domain (gTLD).

    There are 6 Special-Use domains that ICANN owns.
    .example
    .invalid
    .local
    .localhost
    .onion
    .test

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    Great Tutorial man!!!!!!! Everything works!!!!! You made my day…..seriously

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    sir,this is the error showing when i make duplicate 000-default.conf.
    cp: cannot create regular file 'etc/apache2/sites-available/practice.conf': No such file or directory

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    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
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

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

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    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
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

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

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

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

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

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

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

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

    Reply
  • Avatar
    October 23, 2020 at 9:38 am
    Permalink

    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

Leave a Reply