Installing PHP and MySQL Database in Ubuntu

Installing PHP and MySQL Database in Ubuntu

PHP (the acronym for PHP Hypertext Preprocessor) is a net-based Programming language which has the potential to process data dynamically. PHP is mentioned to be a server-side embedded scripting language for the reason that its syntax and commands that we deliver in HTML pages or PHP pages will be completely executed by the server. Programs that are built applying PHP in common will present outcomes on the internet browser whilst the general process executed on the server.

In principle, the server will function if there is a request from a client. In this case the client use URL to send a request to the server. While employing PHP as a server-side embedded scripting language, the server will do the Just after issues:
Read requests from the client / browser
Discovering pages / page on the server
Work the directions supplied by PHP to make modifications to the page / page.
Sending reload the page to the client through the web or intranet.

Why PHP?
PHP can run on various platforms (Windows, Linux, Unix, and so on.)
PHP is an open source internet scripting
PHP straightforward to study

MySQL is a Database processing program which is very well-known amongst net developer due to numerous things or benefits:

Free of charge license (open source), so as net developer does not want to be concerned about licensing factors.

Comparatively modest size of its data files.

Very good Efficiency.

Simple operation with the many quantity of GUI (graphical user interface) based client applications make the user far more very easily in processing the data in mysql Database systems.

The quantity of net hosting server help on the Net that makes use of mysql as its DBMS.

Concurrent multi user, hot backups and cold backups/recovery.

To install PHP and MySQL on Ubuntu Desktop 11.ten is Somewhat quick. Initially we ought to open the Synaptic Package Manager program through the menu button on the Ubuntu Unity. Then sort in Synaptic and pick or click on the program. Then you’ll be brought to the Synaptic program. If your Synaptic has not been synchronized with the Ubuntu repositories, then you have to press the ‘Reload’ and wait a handful of minutes for the process of updating from the repository. Just after all the update process is complete, sort ‘php5′ in the search box and then you will be presented with a list of applications linked with php5. Appear for a program named ‘php5′, ‘php5-cli’, ‘php5-cgi’ and ‘php5-mysql’ then ideal click on your alternative and pick ‘Mark for Installation’. Repeat these actions to install the program MySQL Server: ‘mysql-server’. One much more thing you require to do is pick the program ‘phpmyadmin’. This program is utilized to process batabase content material to be utilised in a PHP program. Soon after all essential applications have been chosen, click the ‘Apply’ button and the installation process will begin soon. At the time of this installation process you’ll be asked to use the root password of the administrator of the MySQL Database server.

For the installation php and mysql on Ubuntu Server that does not give the program Synaptic GUI, then you can use the command line. All of the above applications can be installed applying One particular line of command line as follows:

prompt $ sudo apt-get install php5 php5-cli php5-cgi php5-mysql mysql-server phpmyadmin [enter]

To confirm, kind Y and press enter. Then the installation process begins right away and you’ll be asked what the password you will use for the MySQL Database server administrators.

Soon after all the installation process is complete, you can attempt to access a MySQL Database applying PHPMyAdmin program. For those of you who use Ubuntu 11.ten Desktop, open the Mozilla Firefox program and access URL of localhost with subdirectory phpmyadmin address and then you’ll be taken to the login page MySQL Database. Use the login data you developed in the course of the installation process.

For those of you who use Ubuntu 11.ten server, the easiest way to check if every little thing is going nicely is a way to access your server from one more Computer.Suppose your server’s IP is 192.168.ten.1 then use yet another Computer, open Firefox and open URL IP Address of server with subdirectory phpmyadmin. Subsequent you’ll be taken to the login page of MySQL.

That is how to install PHP and MySQL program as nicely as supporting programs that phpMyAdmin in Ubuntu operating system which is fairly quick.

Tri Asih is a PHP Programmer at Tablet Computers 101

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Partly powered by CleverPlugins.com