Binus Hacker - Independent Hacking Community   Subscribe to BINUS HACKER Subscribe to BINUS HACKERSubscribe to BINUS HACKER FacebookSubscribe to BINUS HACKER Twitter

Install Apache, PHP, MySQL, phpMyAdm Ubuntu

18 July 2010
Penulis:   · Kategori Artikel: Tutorial

BINUS HACKER Binus Hacker Is Not Criminal Banner





[o] Installing Apache

open console and execute this command

$ sudo apt-get install apache2

when its complete you can check if the Apache is working properly by open this address in your browser to “http://localhost”.
if you see the text “It works!”, it means your Apache is working good.
in the end of the installation if you see a message like this
“Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName“.
you can fix that by executing the following command.

$ gksu gedit /etc/apache2/conf.d/fqdn

when Gedit opens, type “ServerName localhost” inside the file and click Save then close it.
or your can create fqdn file, edit and copy it into /etc/apache2/conf.d/

[o] Installing php5

execute the following command on your console

$ sudo apt-get install php5 libapache2-mod-php5

after it complete, you have to restart Apache so that php5 will work on Apache.
run this following command in console to restart Apache

$ sudo /etc/init.d/apache2 restart

now you can test to see if php5 works with Apache. To do this you can create a new php file inside your /var/www/ folder.

$ sudo gedit /var/www/phpinfo.php

the command above will open Gedit. Just type in the following php code, save and close the file:

open this in your browser “http://localhost/phpinfo.php”
and if you can see the phpinfo() and information about your php5 installation it means your have successfully installed php5.

[o] Installing MySQL

execute the following command in console

$ sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

at the end of the installation you will be prompted to set your root or admin password

set and confirm your root password for mysql

[o] Installing phpMyAdmin

execute the following command in your console

$ sudo apt-get install phpmyadmin

during the installation you will be asked to select the webserver that would be used to run phpMyAdmin. Select Apache2

after the installation is over execute the following command to copy the phpmyadmin folder into the /var/www/ directory.
by default it is installed in /usr/share/phpmyadmin/ directory.

$ sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

now go to the phpMyAdmin login page by open this in your browser “http://localhost/phpmyadmin/index.php”
the username for MySQL and phpMyAdmin is “root”. the password will be what you set in Installing MySQL.

Tutorial From: NoGe / Evilc0de

BINUS HACKER Binus Hacker Chat and Forum

Komentar

9 Komentar Untuk “Install Apache, PHP, MySQL, phpMyAdm Ubuntu
Silahkan Berikan Tanggapan Anda Untuk Artikel Ini...

  1. R3M0V3D pada 4 August 2010 8:28 pm

    @ Hurraaaa….@Pertamanx ..Gan…!!

  2. rohim pada 17 August 2010 2:39 am

    masss q dah ta coba langkah di atas tp ko web ama database nya ga bisa konek malah keluarnya ky gni

    Not Found

    The requested URL /raport/admin/media.php was not found on this server.
    Apache/2.2.12 (Ubuntu) Server at localhost Port 80

    Kurang konfigurasi apa ya!!!!!!

  3. rohim pada 17 August 2010 2:40 am

    tolong di bantu masss dah browsing sana sini lom ketemu juga

  4. aroelza pada 20 October 2010 3:51 pm

    Mas bisa liat mudulnya gak….

  5. Megi Tristisan pada 12 January 2011 9:31 pm

    mencerahkan !!!

  6. brandalterminal pada 15 March 2011 9:29 am

    kebetulan gan ne jg lg pengen belajar

  7. dama pada 14 April 2011 8:58 am

    makasih banyak.. akhirnya masalah phpmyadmin gak mau nongol selesai juga..

  8. odeng pada 29 May 2011 7:22 pm

    salam kenal mas. :)
    saya sudah mencoba tutorial di atas sampai ketika install php, tapi ketika file php.info saya letakkan di /var/www/info.php
    kok malah keluar seperti ini yach?
    “not found
    The requested URL /info.php was not found on this server.”
    kira2 yang masih kurang apa?
    terima kasih sebeblumnya

  9. c0d3HitLER pada 30 May 2011 10:47 pm

    apachenya dah direstart lom?

Silahkan Berikan Tanggapan Anda...