Home > artikel Ilmu > Install Apache, Mysql, PHP for Mandriva

Install Apache, Mysql, PHP for Mandriva

Delete Source media yg lama (super user “root”)

urpmi.removemedia -a

kemudian tambahkan sorce media baru dengan alamat sebagai berikut (msh dlm user root):

urpmi.addmedia main ftp://fr2.rpmfind.net/linux/Mandrakelinux/official/2008.0/i586/media/main/release with media_info/synthesis.hdlist.cz
urpmi.addmedia --update main_updates ftp://fr2.rpmfind.net/linux/Mandrakelinux/official/2008.0/i586/media/main/updates with media_info/synthesis.hdlist.cz
urpmi.addmedia contrib ftp://fr2.rpmfind.net/linux/Mandrakelinux/official/2008.0/i586/media/contrib/release with media_info/synthesis.hdlist.cz
urpmi.addmedia --update contrib_updates ftp://fr2.rpmfind.net/linux/Mandrakelinux/official/2008.0/i586/media/contrib/updates with media_info/synthesis.hdlist.cz

kemudian update sistem dahulu :

urpmi --auto-select

Installing Apache

urpmi apache-base
urpmi apache-conf
urpmi apache-modules

kemudian restart apache

/etc/init.d/httpd restart

agar bisa merubah file web yg ada folder bawaan apache :

chown user /var/www/html

silahkan edit dan coba2..

Installing mysql
langsung aja ya install mysql nya

upmi mysql

bis itu restart service

/etc/init.d/mysqld restart

hasil dari install mysql ini usernya root dan password kosong
jika ingin merubah maka :
masuk mysql

mysql -u root
mysql> DROP USER '';

kemudian menambah password root

mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password_kamu');

coba quit dan masuk dengan password dengan >mysql -u root -p

tes PHP coba buat folder dalam folder /var/www/html/folder

lalu ubah dengan chown user folder “agar bs di edit dr user biasa”
taruh aja file coba dengan coba.php
dengan source :

<%php phpinfo(); %>

php

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: