Create your own Web server
Here's how to build your own web server with php5 and mysql support.
- install apache with the command sudo aptitude install apache2
will verify that entering in the browser http://localhost is enabled.
- install php5, (programming is an interpreter which allows us to perform a dynamic program of our sites), for this enter the command sudo aptitude install php5
- install MySQL, ( is a database server widely used information platforms we b) with:
$ sudo apt-get install libapache2-mod-auth-mysql php5-mysql
$ sudo apt-get install mysql-server
When we are installing mysql package, we asked a number of aspects:
- root user password to connect to mysql.
"So you want to configure web server. We choose apache2.
Once this is done we restart apache with:
$ sudo / etc/init.d/apache2 restart
- Installing
phpmyadmin phpmyadmin is a web application that will allow us to manage the database mysql data.
phpmyadmin To install the package to make it so:
$ sudo apt-get install phpmyadmin
we will have to restart apache
$ sudo / etc/init.d/apache2 restart Once installed
if you type in the browser: http://localhost/phpmyadmin wing will access the login window.
A little test you can do to make sure the php interpreter is properly installed is to create a text file and put in é an example for this site: http://www.htmlpoint.com/php/php_04.htm
I saved with php in the following path:
/ var / www / test.php
And to display the contents posted:
http://localhost/prueba . php
* To change the domain name "localhost" edit the file found in your / etc / hosts
- Apache Documentation
0 comments:
Post a Comment