Web Server yang digunakan disini adalah LAMP (Linux, Apache, MySQL, PHP).
Install LAMP Server
1
| $ sudo apt-get install lamp-server^ |
Menjalankan server apache
Lokasi folder web
/var/www/
.Rubah permission folder agar mudah diakses tanpa harus memakai user root.
1
| $ sudo chmod -R 777 /var/www |
Menjalankan server mysql
1
| $ sudo service mysql start |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| $ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 53 Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu) Copyright (c) 2000, 2011, Oracle and /or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and /or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> |
Buat file
phpinfo.php
di /var/www/
, isinya :
1
2
3
| <?php phpinfo(); ?> |
http://localhost/phpinfo.php
, jika muncul gambar seperti di bawah ini berarti PHP sudah berfungsiInstall PhpMyAdmin, aplikasi untuk manajemen database via web
1
| $ sudo apt-get install phpmyadmin |
http://localhost/phpmyadmin
selamat mencoba
0 komentar:
Posting Komentar