Friday, May 16, 2014

Install XAMPP using command line on Linux

Install XAMPP using command line on Ubuntu, CentOS, Fedora, Debian, RHEL

If you are installing xampp first time on your linux system then it is fine but if you have installed it before and there is directory lampp in your /opt. You should rename it first.
# mv /opt/lampp /opt/lampp_old
Now download xampp installer from here.
A file xampp-linux-version-number-installer.run will be downloaded.
Suppose it is in directory Downloads.
Make the file executable.
# chmod a+x ~/Downloads/xampp-linux-version-number-installer.run
Now run the file.
# cd ~/Downloads
# ./xampp-linux-version-number-installer.run
It will open the wizard, now complete it to install xampp.


 





Now when you click on finish button, XAMPP's GUI interface will be appeared.


Now you can start/stop Apache & mysql using UI interface. Click on 'Manage servers' and you will be able to start/stop servers using buttons.

Open xampp in Browser
http://localhost/xampp

Open XAMPP control panel / GUI interface
Run following command in terminal
# cd /opt/lampp && sudo ./manager-linux.run




X11 connection rejected because of wrong authentication

If you are not able to log into Linux user account using ssh and you are getting this error, here is the solution.

Open the file etc/ssh/ssh_config on your system , client side (NOT on the server where you want to connect)

Check this parameter in the file
ForwardX11 yes
It should be uncommented as well as set as yes.

Restart ssh on your system. Try to connect again.

If you are still getting this error, open the file /etc/ssh/sshd_config server side where you want to connect.

Check this parameter in the file
X11Forwarding yes
It should be uncommented as well as set as yes.

Saturday, April 26, 2014

Fatal error: ini_set(): To prevent data corruption, you are not allowed to turn on the mongo.native_long setting on 32-bit platforms in Unknown on line 0

It is a mongo client - RockMongo error.

To remove the error, open file index.php in the directory rockmongo and comment the line
ini_set("mongo.native_long", 1);
Make it two forward slashes at the starting of the line to comment it out.
// ini_set("mongo.native_long", 1);
Now try again.

The default username and password is admin

You may find some deprecated error here but you can use the RockMongo without fatal error.