Apache2.4.7 + php5 + mysql thinkphp

Source: Internet
Author: User
Tags install php

1. Installation of LAMP
sudo apt-get install apache2 

2. Install php

sudo apt-get install  libapache2-mod-php5 php5 PHP5-GD&NBSP

3 install MySQL

sudo apt-get install  mysql-server mysql-client php5-mysql

sudo Apt-get install libapache2-mod-auth-mysql

sudo a2enmod rewrite//This step can not be less, less problems, anyway, I'm a big head.

4 installing PDO

Apt-get Install php-pear

Apt-get install Php5-dev
Apt-get install Libmysqlclient15-dev       & nbsp       #选择安装

Pecl search PDO
pecl install PDO
pecl install pdo_mysql

5 thinkphp in var/www/ Issues that are noted in the directory

    Runtime,upload must be  777

    root directory. htaccess files must not be small, or rewrite have problems

 

Apache2.4.7 + php5 + mysql thinkphp

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.