![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
| • | 北京金库网招聘 |
| • | 我都不知道如何提出问题了. |
| • | 标准体型对照表 |
| • | 关于用正则分析关键词 |
| • | 我的iis怎么可以运行php呀? |
| • | 平痧镞 |
| • | 搞笑2兄弟 |
| • | 用php运行外部命令出现的问题? |
| • | 一般怎样防sql 注入? |
| • | 诚邀您对于OsoonCRM的测试 |
| • | 请问路径问题 |
| • | 怎样把图片上传到固定的目录呢 |
| • | action |
| • | mysql 中字段类型为float 时将该字段作为wh |
| • | 俺的爱人不是猪 |
原来是FC3,httpd-2.0.52-3,php-4.3.9-3,libxml2-2.6.14-2,postgresql-7.4.6
要升级到php5。
过程:
cd php-5.2.1
./configure --prefix=/usr/local/php5 --with-apxs2=/usr/sbin/apxs
--with-config-file-path=/usr/local/php5
--enable-ftp --with-gd --with-zlib
--with-pgsql=/usr/lib/pgsql
--with-regex=php –with-flex=/usr/bin/flex
--with-png-dir=/usr/lib/libpng
--with-jpeg-dir=/usr/lib/libjpeg
make;make install
cp php.ini-recommended /etc/php.ini
修改php.ini:
配置http.conf :
LoadModule php5_module modules/libphp5.so
phpIniDir "/usr/local/php5/etc"
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
DocumentRoot "/var/www/html"
关闭/etc/sysconfig/selinux :
SELINUX=disabled
关闭/etc/selinux :
SELINUX=disabled
修改权限:
chown –R apache.apache /var/www/html
测试文件/var/www/html/test.html:
linux FC3 hello world!
测试文件/var/www/html/php.php:
< ?php
phpinfo() ;
?>
重启linux ;重启apache ;
测试apache 页面http://localhost/test.html 成功。
测试php 页面http://localhost/php.php失败。
在启动apache后(启动时间Thu Mar 8 21:20:02 CST 2007),
error_log有内容:
[Thu Mar 08 20:18:48 2007] [notice] child pid 3487 exit signal Segmentation fault (11)
[Thu Mar 08 20:18:53 2007] [notice] child pid 3489 exit signal Segmentation fault (11)
[Thu Mar 08 20:28:56 2007] [notice] child pid 3490 exit signal Segmentation fault (11)
[Thu Mar 08 20:28:57 2007] [notice] child pid 3488 exit signal Segmentation fault (11)
[Thu Mar 08 20:28:58 2007] [notice] child pid 3483 exit signal Segmentation fault (11)
[Thu Mar 08 20:31:07 2007] [notice] child pid 3484 exit signal Segmentation fault (11)
[Thu Mar 08 20:31:08 2007] [notice] child pid 3485 exit signal Segmentation fault (11)
[Thu Mar 08 21:17:41 2007] [notice] child pid 3486 exit signal Segmentation fault (11)
[Thu Mar 08 21:19:23 2007] [notice] caught SIGTERM, shutting down
*** glibc detected *** double free or corruption: 0x000000552afe9580 ***
[Thu Mar 08 21:19:25 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 08 21:19:25 2007] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 08 21:19:25 2007] [notice] Digest: done
[Thu Mar 08 21:19:25 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK
[Thu Mar 08 21:19:25 2007] [notice] LDAP: SSL support unavailable
[Thu Mar 08 21:19:25 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processe
s and 0 max threads.
[Thu Mar 08 21:19:25 2007] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
ssl_error_log有内容:
[Thu Mar 08 21:19:25 2007] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' doe
s NOT match server name!?
[Thu Mar 08 21:19:25 2007] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' doe
s NOT match server name!?
php 页面失败后,
error_log有内容(时间是08 21:37):
[Thu Mar 08 21:19:25 2007] [notice] Apache/2.0.52 (Fedora) configured -- resuming normal operations
[Thu Mar 08 21:37:32 2007] [notice] child pid 3783 exit signal Segmentation fault (11)
改了两天了,能改的全改了,php就是出不来
还差哪儿啊???

