You are not logged in.

#1 2013-02-15 19:52:37

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

XAMPP and segmentation fault

Hello smile

I installed XAMP from AUR but when I try to lunch it I get this error.

Starting XAMPP for Linux 1.8.1...
XAMPP: Starting Apache with SSL (and PHP5)...
/opt/lampp/bin/apachectl: line 79:   703 Segmentation fault      (core dumped) $HTTPD "$@"
XAMPP: Error 139! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://www.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP: egidio-arch proftpd[1121]: warning: unable to determine IP address of 'egidio-arch'
egidio-arch proftpd[1121]: error: no valid servers configured
egidio-arch proftpd[1121]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'
XAMPP: Error 1! Couln't start ProFTPD!
XAMPP for Linux started.

This is the /opt/lampp/bin/apachectl file.

#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
# Apache control script designed to allow an easy command line interface
# to controlling Apache.  Written by Marc Slemko, 1997/08/23
# 
# The exit codes returned are:
#   XXX this doc is no longer correct now that the interesting
#   XXX functions are handled by httpd
#	0 - operation completed successfully
#	1 - 
#	2 - usage error
#	3 - httpd could not be started
#	4 - httpd could not be stopped
#	5 - httpd could not be started during a restart
#	6 - httpd could not be restarted during a restart
#	7 - httpd could not be restarted during a graceful restart
#	8 - configuration syntax error
#
# When multiple arguments are given, only the error from the _last_
# one is reported.  Run "apachectl help" for usage info
#
ACMD="$1"
ARGV="$@"
#
# |||||||||||||||||||| START CONFIGURATION SECTION  ||||||||||||||||||||
# --------------------                              --------------------
# 
# the path to your httpd binary, including options if necessary
HTTPD='/opt/lampp/bin/httpd'
#
# pick up any necessary environment variables
if test -f /opt/lampp/bin/envvars; then
  . /opt/lampp/bin/envvars
fi
#
# a command that outputs a formatted text version of the HTML at the
# url given on the command line.  Designed for lynx, however other
# programs may work.  
LYNX="lynx -dump"
#
# the URL to your server's mod_status status page.  If you do not
# have one, then status and fullstatus will not work.
STATUSURL="http://localhost:80/server-status"
#
# Set this variable to a command that increases the maximum
# number of file descriptors allowed per child process. This is
# critical for configurations that use many file descriptors,
# such as mass vhosting, or a multithreaded server.
ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
# --------------------                              --------------------
# ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||

# Set the maximum number of file descriptors allowed per child process.
if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
    $ULIMIT_MAX_FILES
fi

ERROR=0
if [ "x$ARGV" = "x" ] ; then 
    ARGV="-h"
fi

case $ACMD in
start|stop|restart|graceful|graceful-stop)
    $HTTPD -k $ARGV
    ERROR=$?
    ;;
startssl|sslstart|start-SSL)
    echo The startssl option is no longer supported.
    echo Please edit httpd.conf to include the SSL configuration settings
    echo and then use "apachectl start".
    ERROR=2
    ;;
configtest)
    $HTTPD -t
    ERROR=$?
    ;;
status)
    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
    ;;
fullstatus)
    $LYNX $STATUSURL
    ;;
*)
    $HTTPD "$@"
    ERROR=$?
esac

exit $ERROR

How can I solve this problem?

Offline

#2 2013-02-18 18:15:15

henchdiesel
Member
Registered: 2012-02-29
Posts: 1

Re: XAMPP and segmentation fault

It is probably failing to look up your hostname.

Just add 127.0.0.1 myhostname to the bottom of your hosts file located at /etc/hosts.

You can use the hostname command to look up your hostname.

Offline

#3 2013-03-02 10:22:45

Edward.H
Member
Registered: 2009-10-26
Posts: 69
Website

Re: XAMPP and segmentation fault

Same here

I opened "at /etc/hosts." and found there is already have line 127.0.0.1 myhostname on it

sad

Offline

#4 2013-03-03 09:32:44

Aegidius
Member
From: Italy
Registered: 2011-06-29
Posts: 288
Website

Re: XAMPP and segmentation fault

I moved to a standard Apache installation.

Offline

#5 2013-03-06 10:09:18

Edward.H
Member
Registered: 2009-10-26
Posts: 69
Website

Re: XAMPP and segmentation fault

Aegidius wrote:

I moved to a standard Apache installation.

I also have to move a standard lamp

I think mybe it is due to x86_64 ,XAMPP dosen't support 64 bit well.

Offline

Board footer

Powered by FluxBB