LAMP adalah singkatan dari Linux + Apache + MySql + PHP
Berikut ini cara installasi LAMP server pada OS Linux CentOS 5
Yg diperlukan :
- ssh access (root)
- Server dgn OS CentOS dgn Ram minim 256MB
Yg akan kita install :
* Apache Web Server 2.0
* MySQL Database Server 5.0
* PHP Scripting Language 5.0
* phpMyAdmin - Web based MySQL Administration Tool
* Webmin - A free web based hosting control panel
Mari kita mulai dgn login ke server kita menggunakan [Only registered and activated users can see links. ]
Ketik text berikut di console putty
Install Apache
Code:
yum install httpd httpd-devel
 | Click this bar to view the full image. |

 | Click this bar to view the full image. |

Run Apache
Code:
/etc/init.d/httpd start

Install MySQL Database Server
Code:
yum install mysql mysql-server mysql-devel

 | Click this bar to view the full image. |

Run mysql server
Code:
/etc/init.d/mysqld start
mysql
 | Click this bar to view the full image. |

Sekarang kita set password baru utk mysql server
Code:
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('password baru') WHERE user='root';
mysql> FLUSH PRIVILEGES;
 | Click this bar to view the full image. |

 | Click this bar to view the full image. |

Install PHP5
Code:
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml php-imap php-ldap php-odbc php-pear php-xmlrpc
 | Click this bar to view the full image. |

Restart Apache
Code:
/etc/init.d/httpd restart
Untuk tes apakah server sdh terinstall kita buat file php dgn isi file berikut ini
PHP Code:
// test.php
<?php
phpinfo();
?>
file php bisa kita buat menggunakan Notepad dan di save as "all files" Kasih nama test.php
Bersambung.....
Tidak ada komentar:
Posting Komentar