Detri Amelia Chandra
  • HOME
  • PHP Tutorial
  • GIS
  • HTML
  • Bootstrap
  • CSS
  • Javascript
  • Ubuntu
  • Useful Tools
    • URL Redirect Tool
    • URL Download Encryptor
No Result
View All Result
  • HOME
  • PHP Tutorial
  • GIS
  • HTML
  • Bootstrap
  • CSS
  • Javascript
  • Ubuntu
  • Useful Tools
    • URL Redirect Tool
    • URL Download Encryptor
Detri Amelia Chandra
No Result
View All Result

3. How to Install Apache, MySQL and PHP in Ubuntu 18.04 LTS Part 2

Detri Amelia Chandra by Detri Amelia Chandra
11/11/2019
in PHP, Ubuntu
1
install-apache-mysql-and-php-in-ubuntu-18-04-lts-part-2

How to Install Apache, MySQL and PHP in Ubuntu 18.04 LTS Part 1

0
SHARES
47
VIEWS
Share on FacebookShare on Twitter

This article is a continuation of the previous article about How to Install Apache, MySQL and PHP in Ubuntu 18.04 LTS Part 1. For those who have not read the article, you must first read the previous article. Because for the smooth running of this tutorial, a lot has to do with the article.

Recommended Post

14. PHP Forms – Validation With Required Fields

14. PHP Forms – Validation With Required Fields

13. New Performing PHP Form Handling

Let’s just go straight to the tutorial continued.

3. Install PHP

To install PHP on Ubuntu 18.04, please open a terminal and run the following syntax:

1
sudo apt install php libapache2-mod-php php-mysql

After installing PHP, create the info.php file in the Apache root document folder. Typically, the apache root document folder is /var/www/html/ or /var/www/ on most Debian-based Linux distributions. On Ubuntu 18.04 LTS, it is /var/www/html/.

Let’s create the info.php file by running the following syntax in the terminal:

1
sudo vi /var/www/html/info.php

Add the following syntax in it:

1
2
3
<?php
phpinfo();
?>

Press the ESC key and type :wq to save and exit the file. Restart the apache service to apply the changes.

1
sudo systemctl restart apache2

Now try accessing the info.php file by typing the url http://localhost/info.php in your browser. Then it will appear as shown below:

PHP-Demo
If successful it will appear as shown above

Congratulations, your installation is complete. If you still don’t understand, or have questions that you want to ask, please leave your comments below. May be useful… 🙂

Tags: ApacheMySQLPHPUbuntu
Previous Post

2. How to Install Apache, MySQL and PHP in Ubuntu 18.04 LTS Part 1

Next Post

4. PHP Syntax and PHP Variables

Related Posts

PHP Forms - Validation With Required Fields

14. PHP Forms – Validation With Required Fields

15/02/2020
PHP Forms - Validation With Required Fields

14. PHP Forms – Validation With Required Fields

15/02/2020
PHP Form Handling

13. New Performing PHP Form Handling

13/02/2020
Learn PHP Global Variables - Superglobals With Example

12. Learn PHP Global Variables – Superglobals With Example

20/01/2020
PHP Array Example, Complete Editions

11. PHP Array Example, Complete Editions

17/01/2020
PHP Function Definition and Example

10. PHP Function Definition and Example

15/01/2020
Next Post
PHP Syntax, Variables and PHP Echo/Print

4. PHP Syntax and PHP Variables

Comments 1

  1. Ping-balik: Cara Install Apache, MySQL dan PHP di Ubuntu 18.04 LTS - Detri Amelia Chandra

Tinggalkan Balasan Batalkan balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

Top Stories

Relasi Tabel Database Menggunakan Operasi Join dan Model Klasik

Relasi Tabel Database Menggunakan Operasi Join dan Model Klasik

30/04/2020
PEMROGRAMAN WEB DAN PERANGKAT BERGERAK – PERPUSTAKAAN PART-1

Pemrograman Web dan Perangkat Bergerak – Perpustakaan Part-1

16/04/2020
PEMROGRAMAN WEB DAN PERANGKAT BERGERAK – PERPUSTAKAAN PART-1

Pemrograman Web dan Perangkat Bergerak – Perpustakaan Part-1

16/04/2020

News & More

Categories

  • Counseling
  • Consultations
  • Relationship
  • Friendship
  • Singlehood

About Us

We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.

Connect on Social

© 2019 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • HOME
  • PHP Tutorial
  • GIS
  • HTML
  • Bootstrap
  • CSS
  • Javascript
  • Ubuntu
  • Useful Tools
    • URL Redirect Tool
    • URL Download Encryptor

© 2021 Detri Amelia Chandra - IT Tips and Programming Tutorial.