求助,libapache libphp5.so2 mod php5+mod

yahoon 的BLOG
用户名:yahoon
文章数:130
评论数:771
访问量:1689649
注册日期:
阅读量:5863
阅读量:12276
阅读量:396382
阅读量:1087026
51CTO推荐博文
apache2.2.4
apache2.0.54& /usr/local/apache2
mysql5.0.16& /usr/local/mysql
php 5.0.4&&& /usr/local/php5
apache2.2.4
:--prefix=/usr/local/apache22
./configure --prefix=/usr/local/apache22 --with-layout=apache --enable-module=so --enable-module=setenvif --enable-module=rewrite --with-mpm=prefork --enable-ssl
make install
apache2.2.4,,ServerName,. it works
#ServerName [url]:80[/url]
ServerName 127.0.0.1
#DocumentRoot "/usr/local/apache22/htdocs"
DocumentRoot "/var/www/html"
/var/ww/html1.html.[url]http://IP/1.html[/url].
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
#&&& Order deny,allow
#&&& Deny from all
& &Order allow,deny
&& Allow from all
&/Directory&
httpd.conf,:
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# First, we configure the "default" to be a very restrictive set of
# features.
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
&& Order deny,allow& ,
& &&Deny from all&
&/Directory&
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# This should be changed to whatever you set DocumentRoot to.
#DocumentRoot
&Directory "/usr/local/apache22/htdocs"&&
&&& # Possible values for the Options directive are "None", "All",
&&& # or any combination of:
&&& #&& Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
&&& # Note that "MultiViews" must be named *explicitly* --- "Options All"
&&& # doesn't give it to you.
&&& # The Options directive is both complicated and important.& Please see
&&& # [url]http://httpd.apache.org/docs/2.2/mod/core.html#options[/url]
&&& # for more information.
&&& Options Indexes FollowSymLinks
&&& # AllowOverride controls what directives may be placed in .htaccess files.
&&& # It can be "All", "None", or any combination of the keywords:
&&& #&& Options FileInfo AuthConfig Limit
&&& AllowOverride None
&&& # Controls who can get stuff from this server.
&&& Order allow,deny&
&&& Allow from all&
&/Directory&
/usr/local/apache22/htdocs,,.
&Directory /&
&&& Options FollowSymLinks
&&& AllowOverride None
#&&& Order deny,allow
#&&& Deny from all
&& Order allow,deny
&& Allow from all
&/Directory&
# This should be changed to whatever you set DocumentRoot to.
#DocumentRoot
&Directory "/usr/local/apache22/htdocs"&
2.2.4(conf/extra),ssl,vhost.,.
httpdconf,
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-vhosts.conf
/extra/httpd-vhosts.conf
[root@server1 extra]# vi httpd-vhosts.conf
# Virtual Hosts
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at
# &URL:[url]http://httpd.apache.org/docs/2.2/vhosts/&[/url]
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# configuration.
# Use name-based virtual hosting.
NameVirtualHost *:80
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any &VirtualHost& block.
&VirtualHost *:80&
&&& ServerAdmin
&&& DocumentRoot /www/docs/dummy-
&&& ServerName dummy-
&&& ServerAlias [url]www.dummy-[/url]
&&& ErrorLog logs/dummy--error_log
&&& CustomLog logs/dummy--access_log common
&/VirtualHost&
&VirtualHost *:80&
&&& ServerAdmin
&&& DocumentRoot /www/docs/dummy-
&&& ServerName dummy-
&&& ErrorLog logs/dummy--error_log
&&& CustomLog logs/dummy--access_log common
&/VirtualHost&
[root@server1 extra]# vi httpd-vhosts.conf
# Virtual Hosts
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
# Please see the documentation at
# &URL:[url]http://httpd.apache.org/docs/2.2/vhosts/&[/url]
# for further details before you try to setup virtual hosts.
# You may use the command line option '-S' to verify your virtual host
# configuration.
# Use name-based virtual hosting.
#NameVirtualHost *:80&
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any &VirtualHost& block.
&VirtualHost *:80&
&&& ServerAdmin
&&& DocumentRoot /var/www/html/s1
&&& ServerName dummy-
&&& ServerAlias [url]www.dummy-[/url]
&&& ErrorLog logs/dummy--error_log
&&& CustomLog logs/dummy--access_log common
&/VirtualHost&
&VirtualHost *:81&
&&& ServerAdmin
&&& DocumentRoot /var/www/html/s2
&&& ServerName dummy-
&&& ErrorLog logs/dummy--error_log
&&& CustomLog logs/dummy--access_log common
&/VirtualHost&
# Secure (SSL/TLS) connections
#Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-ssl.conf
servercopyconf(httpd-ssl.conf)
&[root@server1 conf]# ../bin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80&&&&&&&&&&&&&&&&&& dummy- (/usr/local/apache22/conf/extra/httpd-vhosts.conf:27)
*:81&&&&&&&&&&&&&&&&&& dummy- (/usr/local/apache22/conf/extra/httpd-vhosts.conf:36)
_default_:443&&&&&&&&& [url][/url] (/usr/local/apache22/conf/extra/httpd-ssl.conf:74)
php,php.so.
apachephp,copy
cp /usr/local/apache2/modules/libphp5.so /usr/local/apache2/modules/libphp5.so
httpd.confphp
# Example:
# LoadModule foo_module modules/mod_foo.so
LoadModule php5_module&&&&&&& modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
&IfModule dir_module&
&& &DirectoryIndex index.html index.php
&/IfModule&
[root@server1 conf]# ../bin/httpd -k start
httpd: Syntax error on line 54 of /usr/local/apache22/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache22/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
,.(apachecopy,)
seryapxsPHPdso.PHP..PHP.(apxsphpdsophp.)
apache2.0.x.
php:php5.04(php,),apacheapache.
./configure --prefix=/usr/local/php5.04 --with-apxs2=/usr/local/apache22/bin/apxs --enable-track-vars& --enable-url-includes --enable-sockets --enable-force-cgi-redirect --enable-calendar --with-config-file-path=/usr/local/lib --with-jpeg-dir=/usr/local/jpeg6 --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext --with-iconv --with-png-dir=/usr/local/libpng2 --with-freetype-dir=/usr/local/freetype2 --with-libxml --with-zlib --with-zlib-dir=/usr/local/zlib2 --with-gd --enable-soap --with-curl --with-curlwrappers --with-java=/usr/java/j2sdk1.4.2_14 --with-mysql=/usr/local/mysql/
--with-mysql=/usr/local/mysql/,―with-mysql,mysql,apache,mysql
make install
Installing PHP SAPI module:&&&&&& apache2handler
make: execvp: /home/yahoon/php-5.0.4/build/shtool: Permission denied
make: [install-sapi] Error 127 (ignored)
/bin/sh: line 1: /home/yahoon/php-5.0.4/build/shtool: Permission denied
make: *** [install-sapi] Error 126
[root@server1 php-5.0.4]# chmod 777 build/shtool
[root@server1 php-5.0.4]# make install
Installing PHP SAPI module:&&&&&& apache2handler
/usr/local/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/apache22/build/libtool' libphp5.la /usr/local/apache22/modules
/usr/local/apache22/build/libtool --mode=install cp libphp5.la /usr/local/apache22/modules/
cp .libs/libphp5.so /usr/local/apache22/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache22/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /home/yahoon/php-5.0.4/libs'
chmod 755 /usr/local/apache22/modules/libphp5.so
[activating module `php5' in /usr/local/apache22/conf/httpd.conf]
Installing PHP CLI binary:&&&&&&& /usr/local/php5.04/bin/
Installing PHP CLI man page:&&&&& /usr/local/php5.04/man/man1/
Installing PEAR environment:&&&&& /usr/local/php5.04/lib/php/
[PEAR] Archive_Tar&&& - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR&&&&&& &&&&- installed: 1.3.5
Wrote PEAR system config file at: /usr/local/php5.04/etc/pear.conf
You may want to add: /usr/local/php5.04/lib/php to your php.ini include_path
[PEAR] HTML_Template_IT- installed: 1.1
[PEAR] Net_UserAgent_Detect- installed: 2.0.1
[PEAR] XML_RPC&&&&&&& - installed: 1.2.2
Installing build environment:&&&& /usr/local/php5.04/lib/php/build/
Installing header files:&&&&&&&&& /usr/local/php5.04/include/php/
Installing helper programs:&&&&&& /usr/local/php5.04/bin/
& program: phpize
& program: php-config
& program: phpextdist
apache. [activating module `php5' in /usr/local/apache22/conf/httpd.conf].php.
/usr/local/apache22/conf/httpd.conf.bak,.
apachephp.
php/usr/local/php5.04.soapachemodules
&本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)
21:43:11 09:25:02 09:50:35 15:33:24 18:16:49 16:26:53 11:51:49 13:54:33 02:58:36温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
阅读(377)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
在LOFTER的更多文章
loftPermalink:'',
id:'fks_',
blogTitle:'关于Ubuntu16.04不能安装libapache2-mod-php5',
blogAbstract:'&&&&&&& ubuntu16.04已经选择PHP7.0作为新的基础包了,所以不能再Ubuntu16.04上安装PHP5,如果硬要安装,则会出现依赖问题,而且一般无法解决:&&&&&&& 比如,Ubuntu16.04上的软件需要的是一个较高版本的库,而PHP5需要的是一个较低版本的库,系统会提示:libapache2-mod-php5依赖于某某库,但该库不能被安装。因为php5基于较低版本的库文件,如果安装的话有其他正常软件可能将不能运行。&&&&&&& 故,推荐安装PHP7.0,并且用“libapache2-mod-php”代替“libapache2-mod-php5”。',
blogTag:'libapache2-mod-php5',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:1,
publishTime:6,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:2,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}apache2+PHP5+mysql安装_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
apache2+PHP5+mysql安装
上传于|0|0|文档简介
&&apache2+php5+mysql的安装,Ubuntu下经常用于搭建网站
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩11页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢

我要回帖

更多关于 apache没有libphp5.so 的文章

 

随机推荐