PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 2, 2022

[FIXED] What is this error in XAMPP starting? How can i fix this?

 July 02, 2022     apache, linux, mysql, php, xampp     No comments   

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)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing