install xampp di linux ubuntu

kemarin saya baru install ubuntu 10.10 tapi saya gak punya web server maka dari itu saya ingin install web server  maka saya memilih xampp pertama-tama download dulu xampp for linux setelah ekstrak dan setelah ekstrak tekan alt+f2 lalu ketik gksudo nautilus  setelah muncul jendela explorer maka kopi xampp anda lalu paste di direktori opt setelah anda paste lalu jalankan command

sudo /opt/lampp/lampp start (untuk menghidupkan webserver anda)

apabila ada masalah dengan phpmyadmin maka anda harus kasih permision read pada file config.inc.php yang berada pada direktori opt/lampp/phpmyadmin

 

dengan command

sudo chmod +r config.inc.php

dan apabila menemi permasalahan seperti ini misal sever socket not configurate maka anda harus teliti apakah permasalahan pada phpmyadminya atau mysqlnya

apabila phpmyadminnya biasanya anda harus menyeting manual di sample.config.inc.php

ni settingan manualnya

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki phpmyadmin.net>.
*
* @version $Id: config.sample.inc.php 13111 2009-11-09 15:02:21Z lem9 $
* @package phpMyAdmin
*/

/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg[‘blowfish_secret’] = ”; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;
/* Authentication type */
$cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;
/* Server parameters */
$cfg[‘Servers’][$i][‘host’] = ’127.0.0.1′;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
/* Select mysqli if your server has it */
$cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = false;

/* rajk – for blobstreaming */
$cfg[‘Servers’][$i][‘bs_garbage_threshold’] = 50;
$cfg[‘Servers’][$i][‘bs_repository_threshold’] = ’32M’;
$cfg[‘Servers’][$i][‘bs_temp_blob_timeout’] = 600;
$cfg[‘Servers’][$i][‘bs_temp_log_threshold’] = ’32M’;

/* User for advanced features */
// $cfg[‘Servers’][$i][‘controluser’] = ‘pma’;
// $cfg[‘Servers’][$i][‘controlpass’] = ‘pmapass’;
/* Advanced phpMyAdmin features */
// $cfg[‘Servers’][$i][‘pmadb’] = ‘phpmyadmin’;
// $cfg[‘Servers’][$i][‘bookmarktable’] = ‘pma_bookmark’;
// $cfg[‘Servers’][$i][‘relation’] = ‘pma_relation’;
// $cfg[‘Servers’][$i][‘table_info’] = ‘pma_table_info’;
// $cfg[‘Servers’][$i][‘table_coords’] = ‘pma_table_coords’;
// $cfg[‘Servers’][$i][‘pdf_pages’] = ‘pma_pdf_pages’;
// $cfg[‘Servers’][$i][‘column_info’] = ‘pma_column_info’;
// $cfg[‘Servers’][$i][‘history’] = ‘pma_history’;
// $cfg[‘Servers’][$i][‘designer_coords’] = ‘pma_designer_coords’;
/* Contrib / Swekey authentication */
// $cfg[‘Servers’][$i][‘auth_swekey_config’] = ‘/etc/swekey-pma.conf’;

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg[‘UploadDir’] = ”;
$cfg[‘SaveDir’] = ”;

?>

itu kalau masalahnya di phpmyadminya tapi kalau di mysqlnya seperti contoh seperti iniStarting XAMPP for Linux 1.7.1…
XAMPP: Starting Apache with SSL (and PHP5)…
XAMPP: Starting MySQL…
XAMPP: Couldn’t start MySQL!
XAMPP: Starting ProFTPD…
XAMPP for Linux started.

mysql tidak mau di start kan

maka penyelesainya adalahdi kasih permisison 777

sudo chmod -R 777 /opt/lampp/var/mysql

terus restart kembali

dengan cara sudo /opt/lampp/lampp restart

semoga bermanfaat

thanks

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s