Issue
rash@rash's lap:~$ sudo /opt/lampp/lampp start
sudo: unable to resolve host rash's lap
[sudo] password for rash:
Starting XAMPP for Linux 5.6.3-0...
XAMPP: Starting Apache...fail.
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
Last 10 lines of "/opt/lampp/logs/error_log":
tail: cannot open ‘/opt/lampp/logs/error.log’ for reading: No such file or directory
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib: line 39: test: /opt/lampp/var/mysql/rash's: binary operator expected
ok.
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":
rash_s_lap proftpd[5128]: warning: unable to determine IP address of 'rash_s_lap'
rash_s_lap proftpd[5128]: error: no valid servers configured
rash_s_lap proftpd[5128]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'
rash@rash's lap:~$
Solution
Remove all previous versions of lamp and all of its components (apache, php, mysql, smtp ...) and reinstall it one by one.
Installing apache, php and mysql for ubuntu 14.04.
Step 1:
sudo apt-get update
sudo apt-get install apache2 mysql-client mysql-server php5
You could be asked for password.
Step 2:
sudo apt-get install php5-curl php5-gd php5-intl php5-mysql
sudo service apache2 restart
Step 3:
Open http://127.0.0.1
Now you have a working apache server with php and mysql.
Answered By - Codew Answer Checked By - Clifford M. (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.