LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1757|回复: 17

如何让PHP2.2.8支持PHP5.2.6RC1

[复制链接]
发表于 2008-4-1 15:13:55 | 显示全部楼层 |阅读模式
按网上说的USE="apache mysql" emerge php_mod
根本就不行,PHP5应该怎么装呀。好像是不能编译成模块了吧
发表于 2008-4-1 16:08:30 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-1 16:23:39 | 显示全部楼层
=dev-lang/php-4* cgi force-cgi-redirect
=dev-lang/php-5* apache2

将以上两行信息原样写入package.use文件
注释掉/usr/portage/profiles/package.mask中的
=dev-lang/php-4*

然后
USE="cgi cli apache2" emerge '=dev-lang/php-4*' '=dev-lang/php-5*'

我正在按版主所贴地址的方法进行安装
未完,待续,现在正在emerge
回复 支持 反对

使用道具 举报

发表于 2008-4-1 19:15:29 | 显示全部楼层
呵呵,慢慢看吧,慢慢折磨吧

我部署 LAMP 要用三天时间,编译十次左右

记住,文档有的是,慢慢看啊,一个一个看啊,仔细看哇~~~
回复 支持 反对

使用道具 举报

发表于 2008-4-1 19:18:09 | 显示全部楼层
gentoo-wiki的apache页面里整合了所有相关的安装教程
不过LS的说的太过了,我看那些教程,用一遍就过了,没有那么难的……
回复 支持 反对

使用道具 举报

发表于 2008-4-1 19:19:52 | 显示全部楼层
Alice ~ # cat /etc/make.conf
####################################################
## ATTENTION: THIS IS THE MAKE.CONF ON THE LIVECD ##
## PLEASE EDIT /mnt/gentoo/etc/make.conf INSTEAD  ##
####################################################
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
#CFLAGS="-O2 -march=i686 -pipe"

CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

# This should not be changed unless you know exactly what you are doing.  You
# should probably be using a different stage, instead.

CHOST="i686-pc-linux-gnu"
LDFLAGS="-Wl,-O1"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j2"
USE="-* 4mb-mod 7zip X avi aac aalib acct ace acl acpi admin \
     administrator ads aften agg alsa amarok amazon amd amr amrnb ao apache2 \
     apm applet archive arts artworkextra authz_host  aspell asterisk async \
     asyncns atm audiofile auth authdaemond authfile auto-completion \
     autoipd automount background bacula-console bash-completion \
     beagle blas berkdb bittorrent bl brltty browser builder \
     bwscheduler boundschecking bzip2 c++ cairo calendar cardbus ccache \
     cdaudio cdda cdinstall cdio cdparanoia cdr cdrom cdsound cgi \
     charconv chardet checkpath chm chroot cisco cjk classic \
     clearpasswd cli clock-screen cluster clvm cman cmdctrl caps \
     color-console colordiff command-args compress contentcache \
     cpudetection cracklib crypt cscope ctype curl curlwrappers \
     custom-cflags cutterqueue cuttime cvs cvsgraph cxx daemon dhcp divx dmx \
     dosformat deprecated dri dv dvb dir dvbplayer dvbsetup dvd \
     dvdarchive dvdchapjump dvdread emacs embedded emboss enchant \
     encode escreen esd espeak etwin event-callback examples excel exif \
     expat extraengine extras faillog fam fame -fastbuild fastcgi \
     fasttrack fat fbsplash fdftk festival ffmpeg firefox flac \
     flash flite fontconfig fortran -frontbase ftp ftpd fuse games \
     gamess gconf gdbm gedit gd-external gif git glade glgd glib \
     gnome gpm grub gstreamer gtk guidexml gzip hacking hal \
     highlight html http httpd iconv icp icu ipv6 irc immqt  immqt-bc innodb \
     ithreads isdnlog j2me jad java java-external java-internal java5 \
     java6 javacomm javascript jpeg jpeg2k kde kerberos laptop lcd \
     ldap linguas_en linguas_us linguas_zh libcaca libnotify libsexy libtommath libwww lyrics mad \
     magic midi mikmod mouse mozdevelop mime mozdom mozembed mozilla \
     mp3 mp4 mp4live mpeg mplayer mudflap multiprocess multiuser \
     mysql mysqli nautilus ncurses network network-cron networking \
     networkmanager nls nptl nptlonly nsplugin ntfs office ogg \
     ogg123 opengl openmp openssh openssl opensslcrypt oss pam pango \
     pcmcia pcre pdf perl php pidgin png posix pppd python qq qt3 \
     qt3support qt4 query-browser quicktime rmvb rar rdesktop \
     readline real realmedia realms reflection remote samba sample scim \
     screen sdl sdl-image sdl-sound sdlaudio search session snmp \
     soap sockets socks5 songs source speech spell spl sql sqlite \
     sqlite3 -selinux sse ssl ssse3 stream svg sysfs tcp tcpd tcpmd5 \
     tcpwrapper themes threads tiff tracker truetype usb unicode utils \
     videos vim vim-pager vim-syntax vim-with-x vorbis web webdav \
     webinstall win32codecs xml xml2 xmlrpc xmlreader xorg \
     xscreensaver xsettings xv zip zlib portaudio pulseaudio"
FEATURES="parallel-fetch"


FETCHCOMMAND="/usr/bin/axel -a -n30 \${URI} -o \${DISTDIR}"
RESUMECOMMAND="/usr/bin/axel -a -n30 \${URI} -o \${DISTDIR}"
GENTOO_MIRRORS="http://gentoo.cs.nctu.edu.tw/gentoo/ http://gentoo.tiscali.nl/ http://files.gentoo.org http://fido.online.kz/gentoo http://de-mirror.org/distro/gentoo/"


APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default
authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir
  disk_cache env expires ext_filter file_cache filter headers ident imagemap
   include info log_config logio mem_cache mime mime_magic negotiation proxy
    proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling
     status unique_id userdir usertrack vhost_alias"
Alice ~ #                                             

很笨的写法,但是能让我做开发
回复 支持 反对

使用道具 举报

发表于 2008-4-1 19:20:10 | 显示全部楼层
对了,把地址给你:
http://gentoo-wiki.com/Index:Apache2      (内含php的教程)
http://gentoo-wiki.com/MySQL/Install          (mysql)
建议先装apache,然后mysql,最后php
还有我的USE设置也给你(不过有些你可能不要):
www-servers/apache ldap
dev-libs/apr-util ldap
dev-lang/php apache2 cgi ctype filter hash ldap mssql mysql mysqli xmlreader xmlwriter xpm zip ftp posix doc exif gmp sockets sqlite
#snmp---> php????
dev-db/mysql innodb berkdb cluster max-idx-128 big-tables extraengine
回复 支持 反对

使用道具 举报

发表于 2008-4-2 00:54:07 | 显示全部楼层
Post by flyinflash;1833623
呵呵,慢慢看吧,慢慢折磨吧

我部署 LAMP 要用三天时间,编译十次左右

记住,文档有的是,慢慢看啊,一个一个看啊,仔细看哇~~~


不是吧..你编译那么多次干什么,测试不同参数下的性能? - -#
回复 支持 反对

使用道具 举报

发表于 2008-4-2 01:02:13 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-4-2 11:13:39 | 显示全部楼层
我在浏览器咑开http://127.0.0.1/phpinfo.php
结果提示:
Forbidden

You don't have permission to access /php4-cgi/phpinfo.php on this server.
我的phpinfo.php内容为:<?php  phpinfo();  ?>
用的是root用户登录的,为什么提示没有权限呀
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表