Hi All,

I am facing some problem while starting apache web server


On executing command “./apachectl start” its giving me the following error:



Ouch! ap_mm_create(1048576, "/uat3/cashproplus/soft/apache3.1.19/logs/httpd.mm.1916") failed

Error: MM: mm:core: failed to open semaphore file (No such file or directory): OS: No such file or directory

./apachectl start: httpd could not be started



I searched on net where I found that

The apache binary is hardcoded with the directory in which to create an

httpd.mm semaphore file. The default path is only writable by

the root user. There is no httpd.conf configuration directive to change

the semaphore directory, because this path must be set before the apache

conf file is read.



Running ./httpd –V command resulted in following:

ca4sdcpr03:/opt/apps/vasco/apache3.1.19/bin# ./httpd -V

Server version: Apache/1.3.19 (Unix)

Server built: Jul 31 2002 10:35:27

Server's Module Magic Number: 19990320:10

Server compiled with....

-D EAPI

-D EAPI_MM

-D EAPI_MM_CORE_PATH="logs/httpd.mm"

-D HAVE_MMAP

-D USE_MMAP_SCOREBOARD

-D USE_MMAP_FILES

-D USE_FCNTL_SERIALIZED_ACCEPT

-D HTTPD_ROOT="/uat3/cashproplus/soft/apache3.1.19"

-D SUEXEC_BIN="/uat3/cashproplus/soft/apache3.1.19/bin/suexec"

-D DEFAULT_PIDLOG="logs/httpd.pid"

-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"

-D DEFAULT_LOCKFILE="logs/httpd.lock"

-D DEFAULT_XFERLOG="logs/access_log"

-D DEFAULT_ERRORLOG="logs/error_log"

-D TYPES_CONFIG_FILE="conf/mime.types"

-D SERVER_CONFIG_FILE="conf/httpd.conf"

-D ACCESS_CONFIG_FILE="conf/access.conf"

-D RESOURCE_CONFIG_FILE="conf/srm.conf"

Here, I need to change HTTPD_ROOT and SUEXEC_BIN path which are right now referring to the old path. These variable haven’t been specified in any configuration file. I tried changing it using command

./httpd -d /opt/apps/vasco/apache3.1.19 (new path) but it is not getting reflected.

Any help would be greatly appreciated.