Archive for September, 2011

Solution for another daemon running

Posted: September 29, 2011 in Linux Stuff

If you are encountered following error while starting your localhost. I came up with a soluton without any hassle

sandeep@rtcamp:~$ sudo /opt/lampp/lampp startStarting XAMPP for Linux 1.7.4…
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.

Solution: Stop your other services
TO DO SO
TO Stop another web server daemon
sudo /etc/init.d/apache2 stop

To Stop another MySQL daemon
sudo /etc/init.d/mysql stop

To Stop another FTP daemon
sudo /etc/init.d/ftp stop

Restart your localhost
sudo /etc/opt/lampp/lampp restart


Translates dates from mysql format to any format acceptable by the php date() function
Syntax

mysql2date($dateformatstring, $mysqlstring, $translate = true)