apach+https安装过程出现的问题

1、Apache SSL异常AH00526
当启动apache时,终端控制台出现下列异常时:
AH00526: Syntax error on line 51 of /usr/local/apache2/conf/extra/httpd-ssl.conf:
Invalid command 'SSLCipherSuite', perhaps misspelled or defined by a module not included in the server configuration

解决办法:

vi /usr/local/apache2/conf/httpd.conf

找到下端代码,并取消注释

LoadModule ssl_module modules/mod_ssl.so

 


2、如apache启动异常AH01177
如apache启动不了,查看log目录下error_log出现下面异常。
AH01177: Failed to lookup provider 'shm' for 'slotmem': is mod_slotmem_shm loaded??

解决办法:

vi /usr/local/apache2/conf/httpd.conf

打开下段注释代码,可搜索mod_slotmem_shm

LoadModule slotmem_shm_module modules/mod_slotmem_shm.so

 
 
3、如apache启动异常AH00526
如apache启动不了,终端控制台出现下列异常时:
AH00526: Syntax error on line 76 of /usr/local/apache2/conf/extra/httpd-ssl.conf:
SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socache module (mod_socache_shmcb?).

解决办法:

vi /usr/local/apache2/conf/httpd.conf

找到下段代码,并去掉注释

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

 


4、安装php异常
安装php出现下列异常及解决办法.
如果异常:
configure: error: xml2-config not found. Please check your libxml2 installation

解决办法:

yum install libxml2-devel

  

如果异常:
configure: error: --with-jpeg-dir=DIR  --with-png-dir=DIR

解决办法:

yum install libjpeg libjpeg-devel libpng libpng-devel

 


5、(Svnadmin)Exception list XML parse error…..
web(IE)网页使用svnadmin管理工具时,浏览【代码仓库】出现异常:
Exception list 
XML parse error: (code=5) Invalid document end 
<a href="repositoryview.php?pi= 
Fatal error: Call to a member function getEncodedParentIdentifier() on a non-object in /usr/local/apache2/htdocs/iF.SVNAdmin-stable-1.6.2/pages/repository/repositoryview.html.php on line 5

 

解决办法:

cd /usr/local/apache2/htdocs/iF.SVNAdmin-stable-1.6.2/include/ 
vi config.inc.php

找到下面注释代码,并在其下面增加部分代码.

//define("IF_SVNBaseC_ConfigDir", "E:/Development/Test/temp svnadmin/svn-config-dir"); 
define("IF_SVNBaseC_ConfigDir", "/blubb/edi/blubb");

 
 
6、useradd: user 'apache' already exists
创建apache用户,如遇到useradd: user 'apache' already exists提示

执行命令 
usermod -s /bin/bash apache 
测试 
su - apache

 

你可能感兴趣的:(apach+https安装过程出现的问题)