macframe.php_Unix 系统下的安装

用户评论:

[#1]

roman4e at gmail dot com [2011-03-18 06:50:18]

Be careful when compiling on system used with apache2 worker MPM (inl. apache-itk). It will be always compiled with ZTS implicitly when you are using --with-apxs2 and no matter how --enable-maintainer-zts configure option is set

[#2]

packard_bell_nec at hotmail dot com [2007-10-27 04:06:33]

If you install PHP as an Apache module, you can consider the following. Instead of adding:

application/x-httpd-phpphp

application/x-httpd-php-sourcephps

into Apache mime.types, you can add:

AddType application/x-httpd-php.php

AddType application/x-httpd-php-source.phps

into Apache httpd.conf, OR you can add:

AddHandler application/x-httpd-php.php

AddHandler application/x-httpd-php-source.phps

into Apache httpd.conf. The last one is the preferred way of configuration, but it does not work in previous Apache versions.

[#3]

phpnet at puellae dot com [2007-10-17 10:19:00]

Further down in the links it talks about using the fPIC option in the compiler to fix the SElinux error.  I messed around with it and adding --with-pic to the configure will also allow the module to load.  I have not done more testing with it but apache at least starts.  If you have already compiled you will need to do a make clean before recompiling.

[#4]

aryeh dot friedman at gmail dot com [2007-09-13 04:05:30]

For all multi-core processors (not just Sun as noted above) you need to add --enable-shared-core to the apache config

[#5]

Alex at GrimMusic dot com [2006-11-13 00:49:36]

I am new to linux/apache/php (coming from server 2003/IIS/Asp.Net), so i was stumped as to why php/apache could only use static content. Also, it couldn't access some documents that you created somewhere else, and then dragged into the HTML directory.

After some research, i found the problem was the SELinux context of the files. It took me forever to find the Proper command to use to change that, as all the examples on the net were out dated using old commands:

# chcon "user_u:object_r:httpd_sys_content_t" /var/www/html -Rc

This will change the SELinux context of all the documents under the /var/www/html directory (which is the web directory under Fedora), to allow the httpd process to access them, and the '-Rc' flag will make the changes Recursive, and will output it's progress for each file that it sucessfully changes.

[#6]

Arjan van Bentem [2006-07-12 12:29:51]

When using Red Hat Fedora, beware of Security Enhanced Linux, SELinux.

Quoted from Red Hat: "The security goal is to make sure that Apache HTTP is only reading the static Web content, and not doing anything else such as writing to the content, connecting to database sockets, reading user home directories, etc."

These limitations include, among many other things, using mkdir to create directories, using fopen to access files, using fopen or get_headers to read URLs, or using exec to run external applications that happen to use sockets (or maybe access some files, but which will run fine when executed from the command line as Unix user apache or httpd -- such as HylaFAX "faxstat" as invoked from nweb2fax recvq.php and sendq.php).

See /var/log/messages for any denials due to the SELinux policy. To disable it:

- System, Administration, Security Level and Firewall

- open the SELinux tab

- click the Transition tree

- check Disable SELinux protection for Apache HTTP

- execute /etc/init.d/httpd restart

See also http://fedora.redhat.com/docs/selinux-faq/ and http://php.net/results.php?q=selinux&p=wholesite

[#7]

thansen at terra dot com dot br [2003-12-30 20:36:28]

The configure directives --with-apxs2 and --with-apxs2filter are not compatible one with other, even though the configure script will not complain about that. Each one affect the way Apache will call the php parser: If you choose the first one, you must use the traditional include:

AddType application/x-httpd-php php

at httpd.conf, to call the parser. If you use the --with-apxs2filter, the include will be:

SetOutputFilter PHP

SetInputFilter  PHP

, and php will be called as a filter to .php files.

If you use both together, you will get compilation errors (duplicate symbols while linking libphp4).

[#8]

doug at NOSPAM dot techie dot net [2003-02-04 05:16:03]

Users compiling under some versions of Solaris/SunOS may encounter the following error.

symbol ap_block_alarms: referenced symbol not found

To address this problem, add the following additional flag to the Apache build configure line:

--enable-rule=SHARED_CORE

So, adding this to the original instructions, you'd configure your Apache build like so:

./configure --prefix=/www --enable-module=so --enable-rule=SHARED_CORE

Doug

[#9]

marshalm at ebrd dot com [2001-05-17 10:43:54]

HP-UX 11.X PA-RISC installation with oracle (oci8). You need to install the HP-UX patch PHSS_22514 patch (updated libdld.sl), otherwise you will get errors with dlopen() and dlclose() not found during the apache integration stage.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值