Ubuntu8.01 install Apache + MySQL + PhP5

Source: Internet
Author: User


Install
SSH client and server (for my remote access)
Sudo
Apt-Get Install SSH

Install
Database Server
Sudo
Apt-Get install mysql-server-5.0

Install
Apache HTTP Server
Sudo
Apt-Get install apache2

Install
PhP5 and Apache PhP5 Module
Sudo
Apt-Get install PhP5 libapache2-mod-php5

Restart
Apache
Sudo
/Etc/init. d/apache2 restart

Optionally,
Install phpMyAdmin
Sudo
Apt-Get install phpMyAdmin

Sudo
CP/etc/apache2/apache2.conf/etc/apache2/apache2.conf. Backup

Sudo
Gedit/etc/apache2/apache2.conf

Copy the following to the end of the file:

 

#
PhpMyAdmin default Apache configuration

Alias/phpMyAdmin
/Usr/share/phpMyAdmin

<Directory/usr/share/phpMyAdmin>

Options indexes followsymlinks
Directoryindex
Index. php

# Authorize for setup

<Files setup. php>


# For Apache 2.2.

<Ifmodule mod_authn_file.c>

Authtype basic
Authname
"PhpMyAdmin setup"

Authuserfile/etc/PHPmyAdmin/htpasswd. Setup

</Ifmodule>
Require
Valid-user
</Files>


<Ifmodule mod_php5.c>

Addtype application/X-httpd-PHP. php


Php_flag magic_quotes_gpc off

Php_flag track_vars on

Php_flag register_globals off

Php_value include_path.

</Ifmodule>
</Directory>

 

Sudo
/Etc/init. d/apache2 restart

 

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.