Wednesday, November 5, 2014

Install XAMPP di WIN 8 and Higher atau bentrok port

Install Xampp di WIN 8 memang butuh trik, kadang kalo hanya install biasa kemungkinan besar akses ke localhost akan gagal. menurut saya kalo dicermati dengan seksama di WIN 8 memang banyak aplikasi berbasis web yang sudah terinclude di dalamnya. oleh karena itu port yang biasa dipakai oleh XAMPP pun sepertinya terpakai oleh aplikasi tersebut.
untuk caranya sebagai berikut :


xampp\mysql\bin   -> my.ini -> port= 3306 -> port= 3308
xampp\apache\conf\extra  ->httpd-ssl.conf ->Listen 443 ->Listen 446
xampp\php   ->php.ini ->mysql.default_port = 3306 ->mysql.default_port = 3308
xampp\phpMyAdmin    ->config.inc.php ->tambahkan $cfg['Servers'][$i]['port'] = ′3308′;

XAMPP yang terbaru
Program Files\mysql\ ->my.ini ->port= 3306 ->port= 3308
Program Files\mysql\bin\mysql\mysqlserver5\MysqlId.exe ->port= 3306 ->port= 3308

semoga membantu

Tambahan sharing ilmu
Ketika muncul hal seperti ini tampil ketika masuk http://localhost/phpmyadmin/

Welcome to phpMyAdmin


Error

MySQL said: Documentation
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) 
Connection for controluser as defined in your configuration failed.
maka hal yang perlu diperhatikan yaitu konfigurasi file pada
xampp\phpMyAdmin    ->config.inc.php ->tambahkan
$cfg[‘Servers’][$i][‘socket’] = ‘/var/lib/mysql/mysql.sock';
$cfg[‘Servers’][$i][‘connect_type’] = ‘socket';
mudah-mudahan lancar tampilan phpmyadminnya.

semoga membantu


Tambahan sharing tips, jika ada yang bentrok port 80 dan 443 karena install aplikasi lain yang mengharuskan menggunakan port ini,

17:47:18  [Apache] Error: Apache shutdown unexpectedly.
17:47:18  [Apache] This may be due to a blocked port, missing dependencies,
17:47:18  [Apache] improper privileges, a crash, or a shutdown by another method.
17:47:18  [Apache] Press the Logs button to view error logs and check
17:47:18  [Apache] the Windows Event Viewer for more clues
17:47:18  [Apache] If you need more help, copy and post this
17:47:18  [Apache] entire log window on the forums
17:49:39  [Apache] Problem detected!
17:49:39  [Apache] Port 80 in use by "Unable to open process" with PID 4264!
17:49:39  [Apache] Apache WILL NOT start without the configured ports free!
17:49:39  [Apache] You need to uninstall/disable/reconfigure the blocking application
17:49:39  [Apache] or reconfigure Apache and the Control Panel to listen on a different port
17:49:39  [Apache] Problem detected!
17:49:39  [Apache] Port 443 in use by "Unable to open process" with PID 5152!
17:49:39  [Apache] Apache WILL NOT start without the configured ports free!
17:49:39  [Apache] You need to uninstall/disable/reconfigure the blocking application
17:49:39  [Apache] or reconfigure Apache and the Control Panel to listen on a different port

maka ubahlah XAMPP pada bagian Apache dengan cara berikut:

Langkah 1 - Dari Panel Kontrol XAMPP, di bawah Apache, klik tombol Config, dan pilih Apache (httpd.conf).

Di dalam file httpd.conf, entah bagaimana saya menemukan baris yang mengatakan:

Listen 80
Dan ubah 80 menjadi nomor / port yang Anda inginkan. Dalam skenario saya, saya menggunakan port 8060. (Biasanya 8080 sudah digunakan oleh aplikasi lain). Contohnya:

Listen 8060

Masih dari file httpd.conf, saya menemukan baris lain yang tertulis:

ServerName localhost: 80

Ubah 80 menjadi 8060.

ServerName localhost: 8060

Sama halnya dengan httpd.conf untuk port 80, maka ssl dengan port 433 pun pada httpd-ssl.conf, ubahlah dengan port 446. cukup hanya pada code Listen saja. Seperti:

Listen 446


Semoga menambah wawasan

No comments:

Post a Comment