Saturday, March 21, 2015

[RPI] Instalasi Apache, PHP, MySql, PHPmyAdmin, PHP Curl dalam Raspberry (updated)

20 Maret 2015
Raspberry PHP

Intro::

Raspberry Pi instalasi Apache, PHP5, MYSQL, PHPMYADMIN

Steps::

Instalasi Apache

sudo apt-get install apache2 -y *installasi apache
untuk test di browser ketik IP Rpi.
sudo nano /var/www/index.html *optional untuk edit index.html

Instalasi PHP5
sudo apt-get install php5 libapache2-mod-php5 -y *instalasi PHP5
cd /var/www/ *change directory
sudo cp index.html index_old.html *rename index.html -> index_old.html
sudo nano index.php *buat file index.php
untuk test masukan script dibawah ini
<?php phpinfo(); ?> 
open browser untuk melihat berhasil/tidak

Instalasi Mysql
sudo apt-get install mysql-server php5-mysql -y *instalasi mysql server
akan diminta password mysql

Instalasi PHPmyAdmin
sudo apt-get install phpmyadmin -y *instalasi phpmyadmin
   >pilih apache2
   >masukan password mysql 
   >OK
- sudo nano /etc/apache2/apache2.conf *update konfigurasi apache
tambahkan
Include /etc/phpmyadmin/apache.conf
sudo /etc/init.d/apache2 restart *restart apache
- phpmyadmin terinstall di "yourpiaddress"/phpmyadmin


Instalasi Curl-PHP

sudo apt-get install php5-curl -y 


Finish move
cd /var/www
sudo chown pi: .
rm *


If use no password on phpmyadmin:
- sudo nano /etc/phpmyadmin/config.inc.php
- uncomment $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

Documentation::

- http://www.raspberrypi.org/documentation/remote-access/web-server/apache.md
- http://www.raspberrypi.org/documentation/usage/wordpress/README.md
- http://www.raspipress.com/2012/09/tutorial-install-phpmyadmin-on-your-raspberry-pi/
- http://serverfault.com/questions/144095/phpmyadmin-on-ubuntu-lamp-login-without-a-password-is-forbidden-by-configurat

No comments:

Post a Comment