then start httpd
#service httpd start
Starting httpd: Syntax error on line 1041 of /etc/httpd/conf/httpd.conf:
Invalid port number (p<1) No "Port" statement found
[FAILED]
if I comment line 1041 , the httpd can start normally
What does it mean?
Please Help ! Thanks
First of all, you have to compile the mod_webapp, and put mod_webapp.so into your /usr/lib/httpd/modules
##### Following is my mod_appweb.conf, should be put in /etc/http/conf.d/ folder#############
##do not forget port 80##
ServerName timeout.homeip.net:80
<IfModule !mod_webapp.c>
LoadModule webapp_module modules/mod_webapp.so
</IfModule>
WebAppConnection conn warp localhost:8008
WebAppDeploy root conn /
WebAppDeploy examples conn /examples
WebAppDeploy admin conn /admin
WebAppDeploy manager conn /manager
WebAppInfo /webapp-info
##################End of mod_webapp.conf#######################################
####################Following is my server.xml###################################
<?xml version='1.0' encoding='utf-8'?>
<Server className="org.apache.catalina.core.StandardServer" debug="0" port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" debug="0"/>
<GlobalNamingResources>
<Environment name="simpleValue" override="true" type="java.lang.Integer" value="30"/>
<Resource auth="Container" description="User database that can be updated and saved" name="UserDatabase" scope="Shareable" type="org.apac
he.catalina.UserDatabase"/>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>