Debian 8 Jessie LAMP Server Tutorial with Apache 2, PHP 5 and MariaDB

Source: Internet
Author: User
Tags phpmyadmin

Debian 8 Jessie LAMP Server Tutorial with Apache 2, PHP 5 and MariaDB (instead of MySQL)



2 Installing MariaDB as MySQL replacement

Apt-get-y Install Mariadb-server mariadb-client

3 Installing Apache 2.4

Apt-get-y Install Apache2

Now direct your browser to http://192.168.1.100, and you should see the Apache2 placeholder page (It works!):


4 Installing PHP 5.6

Apt-get-y Install php5 libapache2-mod-php5service apache2 Restart

5 testing php/getting details about your PHP installation

Nano/var/www/html/info.php<?phpphpinfo ();? >


Now we call this file in a browser (e.g. http://192.168.1.100/info.php):




6 Getting MySQL and MariaDB support in PHP


Apt-cache Search php5apt-get-y Install php5-mysqlnd php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcry PT Php5-memcache Php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xslservice apache2 Restart



7 Install apcu PHP Cache to improve the PHP speed


Apt-get Install Php5-apcuservice apache2 restart


8 PhpMyAdmin

Apt-get-y Install phpMyAdmin

Afterwards, you can access phpMyAdmin under http://192.168.1.100/phpmyadmin/:




apache:http://httpd.apache.org/

php:http://www.php.net/

mysql:http://www.mysql.com/


This article comes from "Life is endless, tossing and turning." "Blog, be sure to keep this provenance http://990487026.blog.51cto.com/10133282/1700604

Debian 8 Jessie LAMP Server Tutorial with Apache 2, PHP 5 and MariaDB

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.