Create the Basic Environment of Apache + PHP + MySQL in Ubuntu8.04

Source: Internet
Author: User
In the past few days, I started a PHP project and installed Ubuntu8.04. It took me some time to build a basic support environment. Zend optimization is not applied yet, so the installation of zendoptimizer is not involved here. In fact, the installation in Ubuntu8.04 is far easier than setting in Windows, and setting in a terminal is easier. 1. Install the Apache service sudoapt-getinstallapache2 and follow the prompts to complete apah

In the past few days, I started a PHP project and installed Ubuntu8.04. It took me some time to build a basic support environment. Zend optimization is not applied yet, so zend optimizer installation is not involved here. In fact, the installation in Ubuntu8.04 is far easier than setting in Windows, and setting in a terminal is easier.

1. Install the Apache service
Sudo apt-get install apache2

Then, follow the prompts to install apahce. You can enable http: // 127.0.0.1 to view It works

2. Install php5
Sudo apt-get install php5
Sudo apt-get install libapache2-mod-php5
Sudo/etc/init. d/apache2 restart

After OK, let's see if it takes effect.
Gksudo gedit/var/www/testphp. php

Inbound Probe


Save run
Http: // 127.0.0.1/testphp. php

3. Install mysql
Sudo apt-get install mysql-server

After installation is complete, follow the prompts to set the root password

4. Make apache and php support mysql
Sudo apt-get install libapache2-mod-auth-mysql
Sudo apt-get install php5-mysqlsudo/etc/init. d/apache2 restart

Now The apache2 + php 5.2.4.2 + mysql5.0.51 environment is complete.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.