ApacheMySQLPHP

Differences between revisions 4 and 5
Revision 4 as of 2005-07-23 14:03:27
Size: 875
Editor: gw
Comment:
Revision 5 as of 2005-07-24 19:15:36
Size: 1110
Editor: timhunt
Comment:
Deletions are marked like this. Additions are marked like this.
Line 40: Line 40:
After installing MySQL, you really ought to read [http://dev.mysql.com/doc/mysql/en/default-privileges.html 2.9.3. Securing the Initial MySQL Accounts] from the [http://dev.mysql.com/doc/mysql/en/index.html MySQL Reference Manual].

Install Apache HTTP Server

Install the apache2 package:

sudo apt-get install apache2

Install PHP for Apache HTTP Server

Install the PHP4 package:

sudo apt-get install php4

Now restart the webserver:

sudo /etc/init.d/apache2 restart

Test the PHP module in Apache

Create a test .php file in your webserver directory

sudo gedit /var/www/testphp.php

insert the following line and save it:

<?php phpinfo(); ?>

attachment:IconsPage/IconTip.png You can also use another text editor!

Install MYSQL for Apache HTTP Server

Install the MySQL packages for Apache:

sudo apt-get install libapache2-mod-auth-mysql php4-mysql

Restart the webserver:

sudo /etc/init.d/apache2 restart

After installing MySQL, you really ought to read [http://dev.mysql.com/doc/mysql/en/default-privileges.html 2.9.3. Securing the Initial MySQL Accounts] from the [http://dev.mysql.com/doc/mysql/en/index.html MySQL Reference Manual].

Credits: [http://www.ubuntuguide.org/ Unofficial Ubuntuguide]


CategoryDocumentation

ApacheMySQLPHP (last edited 2008-08-06 16:21:08 by localhost)