How to install PHP in Ubuntu – Step by Step Guide

1 min


This tutorial will teach you how to install php in Ubuntu linux system.

To install PHP 5 in Ubuntu – follow below steps:

a) Open terminal and type below commnad:

sudo apt-get install libapache2-mod-php5

b) The installer itself would create the PHP configuration file i.e. php.ini in the installation directory /etc/php5

I would recommend you to install Apache2 before installing PHP5. A step-by-step guide for installing Apache2 is available here.

To run PHP, you need to configure apache. A detailed guide available here.


We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.


Arindam

Creator of debugpoint.com. All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, or send us an email.
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x