Install Apache PHP MySQL on Ubuntu 7.04

Source: Internet
Author: User
Tags apache php movable type

This article mainly describes how to install Apache PHP MySQL on Ubuntu 7.04. If you are interested in the actual operation process, you can click the following article, hoping to help you in this aspect.

To install Apache PHP MySQL on Ubuntu 7.04, follow these steps:

1. install apache (the most popular WEB server platform on the Unix platform) 2 + PHP5 + MySQL (the best combination with PHP)

Sudo apt-get install apache (the most popular WEB server platform on Unix) 2 libapache (the most popular WEB server platform on Unix) 2-mod-php5 php5 php5-gd MySQL (the best combination with PHP) -server php5-MySQL (best combination with PHP) phpmyadmin

Joelhy reminds us that this step can be installed with the new version, with the same effect.

Open new, edit, and use the task group to mark the software package. Select LAMP Server.

Then install phpmyadmin separately.

Sudo apt-get install phpmyadmin

2. Enable mod_rewrite module

Sudo a2enmod rewrite

3. Configure apache (the most popular WEB server platform on the Unix platform) 2. conf

Sudo gedit/etc/apache (the most popular WEB server platform on the Unix platform) 2/apache (the most popular WEB server platform on the Unix platform) 2. conf

Remove the comment "#" before AddHandler cgi-script. cgi.

Install Apache PHP MySQL on Ubuntu 7.04 and add the following section in any place:

 
 
  1. &<60;&<60; &<60;DocumentRoot /var/www/  
  2. &<60;&<60; &<60;  
  3. &<60;&<60; &<60; &<60; &<60;Options FollowSymLinks  
  4. &<60;&<60; &<60; &<60; &<60;AllowOverride all  
  5. &<60;&<60; &<60;  
  6. &<60;&<60; &<60;  
  7. &<60;&<60; &<60; &<60; &<60;Options ExecCGI  
  8. &<60;&<60; &<60;  

Restart the server

Sudo/etc/init. d/apache (the most popular WEB server platform on Unix) 2 restart

Done.

Note: PHP programs can be stored in/var/www/, and CGI programs can be stored in/var/www/cgi-bin.

Isn't it too simple? It takes less than one minute to complete the configuration except for the download time. Do I still need an APM package on Ubuntu? Remember the following commands and positions.

Sudo/etc/init. d/apache (the most popular WEB server platform on the Unix platform) 2 restart and restart apache (the most popular WEB server platform on the Unix platform ))

Sudo gedit/etc/php5/apache (the most popular WEB server platform on Unix) 2/php. ini configure php. ini)

Sudo gedit/etc/apache (the most popular WEB server platform on the Unix platform) 2/apache (the most popular WEB server platform on the Unix platform) 2. conf configuration apache (the most popular WEB server platform on Unix) 2. conf)

/Var/www/home directory location)

The above server configuration can be tested to run WordPress, Habari, and Movable Type normally.

The above content is an introduction to installing Apache PHP MySQL on Ubuntu 7.04. I hope you will have some gains.

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.