How to Install PHP and MySQL on the Linux Operating System


For beginners who start growing internet packages on PHP, it is a not unusual component to find them in trouble while putting in PHP and MySQL on the Linux running system. However, there are some simple steps which need to be accompanied which will install PHP and MySQL on the Linux device. The first step is to ensure that the Linux operating gadget has been established well on the device. There are some precise distributions that are extraordinarily developer-pleasant like CentOS, Ubuntu and Suse Linux.Image result for How to Install PHP and MySQL on the Linux Operating System

The first element that needs to be set up in the device is the server. Generally, the Apache web server is preferred on a Linux gadget with PHP and MySQL completing the popular LAMP structure (L – Linux, A – Apache, M – MySQL, and P – PHP). On a CentOS Linux gadget, the network server can be installed through commencing the terminal and typing “yum install httpd”. Then the set of instructions needs to be followed for a successful installation of the Apache internet server.

After the server is mounted, you may begin with the installation of the PHP module at the server. Again, on a CentOS system, you have to type in “yum set up php” and the equal technique of following the on-display screen commands is to be observed. Once PHP is established, the final thing left to do is to put in MySQL.

Similarly, typing “yum set up MySQL-server MySQL” and following the following instructions could lead to the installation of the MySQL server. After the database server is installed, one wishes to begin the Apache server via the command “carrier httpd begin”.

A notification might be sent on the display if the internet server service has efficaciously started out. The subsequent project is to begin the MySQL server and this may be finished by typing “service mysql start” within the terminal window. When each the servers had been started, you may visit the “localhost” web page and verify if the welcome page of CentOS is shown on the browser. This page confirms that the set up is correctly performed.

The fame of the PHP module can be checked via growing a same PHP web page which prints the phpinfo() approach. A pink PHP facts page indicates that the PHP is working well and is actively walking on the server proper now. Now, PHP and MySQL can be used to create new programs. The steps are clean to execute whilst followed in the order stated and when all of the dependencies are the gift in the device.

Previous Linux - The Trap and How to Escape
Next How to Install Applications on Linux Operating Systems

No Comment

Leave a reply

Your email address will not be published. Required fields are marked *