我已经安装好了apache+php+mysql,如何让apache能够支持OpenSSL
2013-07-29
展开全部
linux下apache+PHP+Mysql简易配置 OS:RedHat AS4 (1). apache安装 下载 wget -2.0.55.tar.gz 解压 tar zxvf httpd-2.0.55.tar.gz 配置 cd httpd-2.0.55 ./configure --prefix=/usr/local/apache-2.0.55 \ --with-mpm=prefork \ --enable-vhost-alias \ --enable-rewrite \ --enable-expires \ --enable-so 编译并安装 make && make install (2).修改配置文件 cd /usr/local/apache-2.0.55/conf vi httpd.conf KeepAlive Off #把on改成off,关闭持久连接 StartServers 5 MinSpareServers 5 MaxSpareServers 10 ServerLimit 4000 #添加这一行,一定要大于MaxClients,但要小于20000 MaxClients 2000 #根据内存大小,一般情况下是1G内存2000 MaxRequestsPerChild 0 注: ServerName 可修改为域名或本机ip cd /usr/loca/apache-2.0.55/bin 启动:./apachectl start 关闭:./ apachectl stop (3).添加PHP模块,并支持Mysql 1.mysql的安装 cd /soft/ 下载 wget -4.0/mysql-4.0.26.tar.gz/from// 解压 tar zxvf mysql-4.0.26.tar.gz 配置 cd mysql-4.0.26 ./configure -prefix=/usr/local/mysql-4.0.26 编译并安装 make make install 启动mysql: cd /soft/mysql-4.0.26 cp support-files/my-medium.cnf /etc/my.cnf groupadd mysql #添加mysql用户和组 useradd -g mysql mysql /usr/local/mysql-4.0.26/bin/mysql_install_db #初始化权限表 &n
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询