XAMPP: Error 1! Couldn't start Apache!

Problems with the Linux version of XAMPP, questions, comments, and anything related.

XAMPP: Error 1! Couldn't start Apache!

Postby andres » 07. August 2012 04:54

Please I need your help, thanks

andres@andres-desktop:~$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: XAMPP-MySQL is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.
andres@andres-desktop:~$
andres
 
Posts: 1
Joined: 07. August 2012 04:35
XAMPP Version: 5.6.3
Operating System: UBUNTU 12.04

Re: XAMPP: Error 1! Couldn't start Apache!

Postby JonB » 08. August 2012 14:17

Two Things:

1. There are commands to start and stop Apache by itself

2. It is likely that the Apache error log can tell us what is wrong

as root or with sudo

Code: Select all
tail /opt/lampp/log/error_log


Please post that info
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP: Error 1! Couldn't start Apache!

Postby ahmershuja » 24. September 2012 15:17

Now I'm having the same problem
after run, I got this error

Code: Select all
[root@simba logs]# tail /opt/lampp/logs/error_log
sh: java: command not found
[Sat Sep 22 14:37:04.825625 2012] [mpm_prefork:notice] [pid 3031] AH00169: caught SIGTERM, shutting down
AH00548: NameVirtualHost has no effect and will be removed in the next release /opt/lampp/etc/httpd.conf:526
(99)Cannot assign requested address: AH00072: make_sock: could not bind to address 70.54.182.62:80
no listening sockets available, shutting down
AH00015: Unable to open logs
AH00548: NameVirtualHost has no effect and will be removed in the next release /opt/lampp/etc/httpd.conf:526
(99)Cannot assign requested address: AH00072: make_sock: could not bind to address 70.54.182.62:80
no listening sockets available, shutting down
AH00015: Unable to open logs
[root@simba logs]#


Please help and thanks in advance
Ahmer
User avatar
ahmershuja
 
Posts: 6
Joined: 14. April 2007 23:17
Location: CANADA

Re: XAMPP: Error 1! Couldn't start Apache!

Postby JonB » 24. September 2012 15:41

@ ahmer -

I will need to know what version of XAMPP/lampp you have installed as well as the Linux distribution you are using.

(Please add that to your profile in User Control Panel as well)

Even without that I have a couple of questions:

A. Was/is there another installation of Apache on this machine, or did you try to upgrade an existing lampp installation?

B. Has the httpd.conf been modified or was it copied from some other Apache installation?

Good luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP: Error 1! Couldn't start Apache!

Postby ACavazos » 29. September 2012 16:32

Hi I'm having the same problem.

soporte@soporte1:~/Escritorio$ sudo /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Couldn't start MySQL!
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Apache error log

soporte@soporte1:~/Escritorio$ tail /opt/lampp/log/error_log
tail: no se puede abrir «/opt/lampp/log/error_log» para lectura: No existe el archivo o el directorio

This means that it can't be opened for reading. The archive or the directory don't exist.

Inside /opt/lampp/log/error_log i have this:
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs



-I will need to know what version of XAMPP/lampp you have installed as well as the Linux distribution you are using.
XAMPP 1.8.0, Ubuntu 12.04 LTS
-A. Was/is there another installation of Apache on this machine, or did you try to upgrade an existing lampp installation?
I instaled apache before by doing sudo apt-get install apache2 I dont know if it affects.
-B. Has the httpd.conf been modified or was it copied from some other Apache installation?
I haven't modified any .conf

Thanks, ACavazos
ACavazos
 
Posts: 2
Joined: 29. September 2012 16:20
XAMPP Version: 5.6.3
Operating System: Ubuntu 12.04 LTS

Re: XAMPP: Error 1! Couldn't start Apache!

Postby ACavazos » 29. September 2012 17:18

Solved

first I stopped apache
sudo /etc/init.d/apache2 stop
then I restarted XAMPP
sudo /opt/lampp/lampp restart
(everytime I want to use XAMPP I have to do this in order to make it work.)

I got this:

soporte@soporte1:~/Escritorio$ sudo /opt/lampp/lampp restart
sudo: /var/lib/sudo escribible por no propietario (040777), debe ser modo 0700
[sudo] password for soporte:
Stopping XAMPP for Linux 1.8.0...
XAMPP: XAMPP-Apache is not running.
XAMPP: XAMPP-MySQL is not running.
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

Now I have the problem that I still can't make .php run in my localhost
ACavazos
 
Posts: 2
Joined: 29. September 2012 16:20
XAMPP Version: 5.6.3
Operating System: Ubuntu 12.04 LTS

Re: XAMPP: Error 1! Couldn't start Apache!

Postby JonB » 02. October 2012 15:38

I am guessing that you had another copy of Apache already installed before you installed XAMPP?
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: XAMPP: Error 1! Couldn't start Apache!

Postby ecube07 » 15. February 2013 19:25

same problem ... HELP?
OS : redhat 6
/opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon with SSL is already running.
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP: redhat6engui proftpd[8287]: warning: unable to determine IP address of 'redhat6engui'
redhat6engui proftpd[8287]: error: no valid servers configured
redhat6engui proftpd[8287]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'
XAMPP: Error 1! Couln't start ProFTPD!
XAMPP for Linux started.


contains of proftpd.conf

[root@redhat6engui etc]# ls | grep proftpd.conf
proftpd.conf
[root@redhat6engui etc]# cat proftpd.conf
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName "ProFTPD"
ServerType standalone
DefaultServer on

# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances 30

# Set the user and group that the server normally runs at.
User nobody
#Group nogroup

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
AllowOverwrite on
</Directory>

# only for the web servers content
DefaultRoot /opt/lampp/htdocs

# nobody gets the password "lampp"
UserPassword nobody wRPBu8u4YP0CY

# nobody is no normal user so we have to allow users with no real shell
RequireValidShell off

# nobody may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off
ecube07
 
Posts: 1
Joined: 15. February 2013 19:21
XAMPP Version: 5.6.3
Operating System: Redhat Linux Enterprise 6

Re: XAMPP: Error 1! Couldn't start Apache!

Postby JonB » 20. February 2013 15:15

doh?

Another web server daemon with SSL is already running.


It is very likely that you already have a running LAMP stack.

How to determine this (simple test) - assumes you are at the console:

restart the machine
do NOT start XAMPP

try to connect to localhost or 127.0.0.1

If you can connect to localhost or 127.0.0.1 - then you have Apache already installed and running. (and probably proftpd as well)

or use this command line test:
http://www.onaxer.com/2011/02/07/how-to ... -in-linux/

Good Luck
:)


ycf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests