BBS水木清华站∶精华区

发信人: gloria (深蓝), 信区: Linux        
标  题: Re: 在你把PHP3换成PHP4以前...[转] 
发信站: BBS 水木清华站 (Thu Jul 22 16:00:12 1999) 
 
再提醒一个问题 
如果各位用Oracle 8的话 
不要以为编译时写上--with-oracle就OK了(PHP3是这样) 
一定要加上--with-oci8 
这是我血的教训 
另外, 关於Authentication部分也好像有些变化 
最无法忍受的是没有任何PHP4的文档 
我决定还是暂时坚守PHP3了 
 
【 在 Keyboy (峰清扬) 的大作中提到: 】 
 发信人: RiCK (数学神经觉醒中), 信区: Linux                                
 标  题: 在你把PHP3换成PHP4以前...                                         
 发信站: 一网深情 (Wed Jul 21 22:11:37 1999), 转信                         
 嘿嘿, 要升的想好了先. 我今天花了点时间重作了我们服务器的Apache,           
 是 Apache 1.3.6 + PHP4 beta1 + mod_perl 1.21 + mod_ssl 2.3.6              
 (其他都还好说, mod_ssl简直搞到我吐血...)                                  
 然后, httpd从 1,889,XXX 字节长到了 3,530,XXX 字节. 我欢欣                 
 鼓舞的apachectrl stop, 替换了旧的, 再 apachectrl start...                 
 然后:                                                                     
 Syntax error on line 900 of /XXXXXX/httpd.conf:                           
 Invalid command 'php3_include_path', perhaps mis-spelled or defined by a  
 module not included in the server configuration                           
 faint, mod_php4 不认识俺原来PHP3的配置. 看PHP4源代码目录, 什么            
 CHANGES, ChangeLog等文件里压根就没有提到版本4的变化.                      
 跑到 www.php.net/version4 去看, 没找到PHP4的文档, 不过有个                
 Migrating from PHP 3.0 to PHP 4.0, 还好, 里面有说明, 比如:                
 Apache Configuration Files                                                   
 The MIME types recognized by the PHP module have changed:                    
 application/x-httpd-php3        -->    application/x-httpd-php               
 application/x-httpd-php3-source    -->    application/x-httpd-php-source     
 还有别的一些, 不过大体就是把原来所有的php3改成php就成了.                                                                             
 呵呵, 里面还说别想把php3和php4一起编作模块, 不过可以拿一个作成CGI版本, 还    
 是可以同时用的. 管他呢, 我还是吃回螃蟹, 帮php4作测试吧.                      
 最简单的转换方法应该是用它提供的script来转,  
 To convert your Apache configuration files, run the apconf-conv.sh script    
 (available in the scripts/apache/ directory).  For example:                  
 ~/php4/scripts/apache:#  ./apconf-conv.sh /usr/local/apache/conf/httpd.conf  
 Your original configuration file will be saved in httpd.conf.orig.           
 To convert your .htaccess files, run the aphtaccess-conv.sh script           
 (available in the scripts/apache/ directory as well):                        
 ~/php4/scripts/apache:# find / -name .htaccess -exec ./aphtaccess-conv.sh {} \; 
 Likewise, your old .htaccess files will be saved with an .orig prefix. 
 The conversion scripts require awk to be installed.                    
 但是我试了一下, 感觉是大有问题, 还是手工转的好.                                                                       
 好了, 祝各位都happy migrating :)                                       
 --                                                                     
      ___  _     __                                                     
     / _ \(_)___/ /__                                                   
    / , _/ / __/  '_/         My words speak only truth                 
   /_/|_/_/\__/_/\_\          My sword defends only weakness            
 ※ 来源:.一网深情 bbs.uestc.edu.cn.[FROM: 202.115.16.15]             
 
 
-- 
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 210.78.129.141] 

BBS水木清华站∶精华区