Debian 8 Jessie LAMP server tutorial with Apache 2, PHP 5 and MariaDB

來源:互聯網
上載者:User

標籤:debian 8 jessie lamp server tutorial with apache 2   php 5 and mariadb   

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 that 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-mcrypt 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/


本文出自 “生命不息,折騰不止。” 部落格,請務必保留此出處http://990487026.blog.51cto.com/10133282/1700604

Debian 8 Jessie LAMP server tutorial with Apache 2, PHP 5 and MariaDB

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.