Linux Server Configuration

Source: Internet
Author: User
Linux server configuration-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Use the simplest and quickest way to build an Apache/PHP/MySQL environment in Ubuntu 7.04, and add Zend Engine, PHP Data Objects, GD, phpMyAdmin, and so on. It is mainly used for local testing. The server optimization and security are not considered for the moment, so the installation steps are the simplest.

[Ubuntu 7.04 + Apache 2.2.3 + PHP 5.2.1 + MySQL 5.0.38]

1. Install Apache2 + PHP5 + MySQL

Sudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd mysql-server php5-mysql phpmyadmin

In this step, you can use the new version to install it.

Open new, edit?> Mark a software package using a task group?> Select LAMP Server

Then install phpmyadmin separately.

Sudo apt-get install phpmyadmin

2. Enable mod_rewrite module

Sudo a2enmod rewrite

Enable mod_deflate module

Sudo a2enmod deflate

3. Configure apache2.conf

Sudo gedit/etc/apache2/apache2.conf

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

5. add such a paragraph in any place: (The following is the installation of virtual machine)

Here are my methods

DocumentRoot/var/www/

Options FollowSymLinks
AllowOverride all


Options ExecCGI



6. Restart the server

Sudo/etc/init. d/apache2 restart

7. Configure php. ini

Sudo gedit/etc/php5/apache2/php. ini

8. Remove the Semicolon ";"

Extension = msql. so

I thought I was looking for mysql. so, but I did not find it for half a day. I only saw this.
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.