ºìÁªLinuxÃÅ»§
Linux°ïÖú

Unix ϵͳϵݲװ--php

·¢²¼Ê±¼ä:2007-08-28 12:44:49À´Ô´:ºìÁª×÷Õß:JustForLOVE
±¾½Ú½«Ö¸µ¼ÈçºÎÔÚ Unix ϵͳÏ°²×°ºÍÅäÖà PHP¡£ÔÚ¿ªÊ¼°²×°Ö®Ç°£¬ÇëÎñ±ØÑо¿×Ô¼ºÊ¹ÓõÄϵͳºÍ web ·þÎñÆ÷µÄÏà¹ØÕ½ڡ£
ÔÚ°²×°Ç°ÐèÒª¿¼ÂǵÄÊÂÏîÒ»½ÚÌáµ½£¬ÔÚ±¾½ÚÖ÷ÒªÒÔ web ΪÖÐÐĽéÉÜ PHP µÄÉèÖᣲ»¹ý±¾½ÚÒ²»á¸²¸ÇһЩ PHP ÃüÁîÐÐÓ÷¨µÄÉèÖ÷½·¨¡£
ÔÚ Unix ƽ̨Ï°²×° PHP Óм¸ÖÖ·½·¨£ºÊ¹ÓÃÅäÖúͱàÒë¹ý³Ì£¬»òÊÇʹÓø÷ÖÖÔ¤±àÒëµÄ°ü¡£±¾ÎÄÖ÷ÒªÕë¶ÔÅäÖúͱàÒë PHP µÄ¹ý³Ì¡£ºÜ¶à Unix Ààϵͳ¶¼Óаü°²×°ÏµÍ³£¬¿ÉÒÔÓÃËüÀ´ÉèÖÃÒ»¸öÓÐ×űê×¼ÅäÖÃµÄ PHP¡£µ«ÊÇÈôÐèÒªÓë±ê×¼ÅäÖò»Í¬µÄ¹¦ÄÜ£¨ÀýÈçÒ»¸ö°²È«·þÎñÆ÷£¬»òÕß²»Í¬µÄÊý¾Ý¿âÇý¶¯À©Õ¹Ä£¿é£©£¬¿ÉÄÜÐèÒª±àÒë PHP ºÍ£¯»ò web ·þÎñÆ÷¡£Èç¹û²»ÊìϤ±àÒëÈí¼þ£¬¿ÉÒÔ¿¼ÂÇËÑË÷Ò»ÏÂÊÇ·ñÓÐÈËÒѾ­±àÒëÁË°üº¬ËùÐèÒª¹¦ÄܵÄÔ¤±àÒë°ü¡£
±àÒëËùÐèµÄ֪ʶºÍÈí¼þ£º
»ù´¡µÄ Unix ¼¼ÄÜ£¨ÓÐÄÜÁ¦²Ù×÷¡°make¡±ºÍÒ»ÖÖ C ÓïÑÔ±àÒëÆ÷£©
Ò»¸ö ANSI C ÓïÑÔ±àÒëÆ÷
flex£º°æ±¾ 2.5.4
bison£º°æ±¾ 1.28£¨ÍƼö£©¡¢1.35 »ò 1.75
Ò»¸ö web ·þÎñÆ÷
Ä£¿éÌرðÐèÒªµÄ×é¼þ£¨ÀýÈç gd¡¢pdf ¿âµÈ)
PHP ³õʼµÄÅäÖúͰ²×°¹ý³Ì±» configure ½Å±¾ÖÐһϵÁÐÃüÁîÐÐÑ¡Ïî¿ØÖÆ¡£¿ÉÒÔͨ¹ý ./configure --help ÃüÁîÁ˽â PHP ËùÓпÉÓõıàÒëÑ¡Ïî¼°¼ò¶Ì½âÊÍ¡£±¾ÊÖ²áÊÇ·Ö¿ª¶ÔÕâЩѡÏî±àдÎĵµµÄ¡£¿ÉÔÚ¸½Â¼ÖÐÕÒµ½ºËÐÄÅäÖÃÑ¡Ï¶øÀ©Õ¹Ä£¿éÌض¨µÄÅäÖÃÑ¡Ïî·Ö±ðÔÚÆ亯Êý²Î¿¼Ò³ÃæÖÐÃèÊö¡£
ÅäÖúà PHP ºó£¬±ã¿ÉÒÔ¿ªÊ¼±àÒëÄ£¿éºÍ£¯»ò¿ÉÖ´ÐÐÎļþ¡£make ÃüÁîÓÃÀ´×öÕâÒ»¹¤×÷¡£Èç¹û¸ÃÃüÁîÖ´ÐÐʧ°Ü¶øÕÒ²»µ½Ô­Òò£¬Çë²Î¿¼°²×°ÎÊÌâÒ»½Ú¡£
Unix ϵͳÏ嵀 Apache 1.3.x
±¾½Ú°üÀ¨ÔÚ Unix ƽ̨µÄ Apache Ï°²×° PHP µÄ˵Ã÷ºÍÌáʾ¡£ÎÒÃÇÔÚÁíÍâµÄÒ³ÃæÒ²ÓÐ Apache 2 µÄ°²×°ºÍ˵Ã÷¡£
¿ÉÒÔ´ÓºËÐÄÅäÖÃÑ¡ÏîÁбíÒÔ¼°Î»ÓÚÊÖ²á¶ÔÓ¦²¿·ÖµÄÌض¨À©Õ¹ÅäÖÃÑ¡ÏîÖÐÑ¡Ôñ²ÎÊý²¢ÔÚ°²×°²½ÖèµÚ 10 ²½½«ËüÃÇÌí¼Óµ½ configure ÃüÁîÖС£°æ±¾ºÅÔÚÕâÀﱻʡÂÔÁËÒÔ±£Ö¤´Ë˵Ã÷µÄÕýÈ·ÐÔ¡£ÐèÒª½«ÕâÀïµÄ¡°xxx¡±Ì滻Ϊ×Ô¼ºÊ¹ÓõÄÎļþµÄÕýÈ·Öµ¡£
Àý 4.1. PHP µÄ Apache ¹²ÏíÄ£¿é°æ±¾°²×°ËµÃ÷
1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/www --enable-module=so
7. make
8. make install
9. cd ../php-xxx
10. ÏÖÔÚ£¬ÅäÖà PHP¡£ÕâÊǶ¨ÖÆ PHP µÄ²»Í¬Ñ¡ÏîµÄʱºò£¬ÀýÈçÒª¼ÓÔØÄÄЩÀ©Õ¹¿â¡£Ê¹ÓÃ
./configure --help
À´Áгö¿ÉÓõÄÑ¡Ïî¡£ÔÚÏÂÃæµÄʾÀýÖÐÖ»ÊǼòµ¥µØÅäÖà Apache 1 ºÍ MySQL Ö§³Ö¡£
Óû§µÄ apxs µÄ·¾¶¿ÉÄܺʹËʾÀýÖеIJ»Í¬¡£
./configure --with-mysql --with-apxs=/www/bin/apxs
11. make
12. make install
Èç¹ûÔÚ°²×°Ö®ºó¾ö¶¨ÐÞ¸ÄÅäÖÃÑ¡ÏÄÇôֻÐèÖظ´ÒÔÉÏ×îºóÈý²½¡£Ö»ÐëÖØÐÂÆô¶¯
Apache ¾Í¿ÉÒÔʹÐÂÄ£¿éÉúЧ¡£²»ÐèÒªÖØбàÒë Apache¡£×¢Òâ³ý·ÇÌرðÖ¸³ö£¬
¡°make install¡±×ÜÊǻᰲװ PEAR£¬¸÷ÖÖ PHP ¹¤¾ßÀýÈç phpize£¬PHP CLI ÒÔ¼°ÆäËü¡£
13. ½¨Á¢ php.ini Îļþ¡£
cp php.ini-dist /usr/local/lib/php.ini
¿ÉÒԱ༭ php.ini À´ÉèÖà PHP Ñ¡Ïî¡£Èç¹ûÏë°Ñ php.ini ·ÅÔÚÆäËüĿ¼£¬ÔÚµÚ
10 ²½¼ÓÉÏÒÔÏÂÑ¡Ï
--with-config-file-path=/path
Èç¹ûÑ¡ÔñÁË php.ini-recommended£¬È·±£ÔĶÁÒ»ÏÂÆäÖеıä¸ü˵Ã÷£¬ÒòΪÕâЩ»á
Ó°Ïìµ½ PHP µÄÐÐΪ¡£
PHP Ä£¿éËùÔڵķ¾¶¡£ÉÏÃæµÄ make install ²½Öè¿ÉÄÜÒѾ­Ìí¼ÓÁË£¬µ«»¹ÊǼì²éÈ·ÈÏһϡ£
¶Ô PHP 4£º
¶Ô PHP 5£º
¶Ô PHP 4£º
AddModule mod_php4.c
¶Ô PHP 5£º
AddModule mod_php5.c
16. ¸æËß Apache ½«ÄÄЩºó׺×÷Ϊ PHP ½âÎö¡£ÀýÈ磬Èà Apache °Ñ .php ºó׺µÄÎļþ½âÎöΪ
PHP¡£¿ÉÒÔ½«Èκκó׺µÄÎļþ½âÎöΪ PHP£¬Ö»ÒªÔÚÒÔÏÂÓï¾äÖмÓÈë²¢Óÿոñ·Ö¿ª¡£ÕâÀïÒÔ
Ìí¼ÓÒ»¸ö .phtml À´Ê¾Àý¡£
AddType application/x-httpd-php .php .phtml
ΪÁ˽« .phps ×÷Ϊ PHP µÄÔ´Îļþ½øÐÐÓï·¨¸ßÁÁÏÔʾ£¬»¹¿ÉÒÔ¼ÓÉÏ£º
AddType application/x-httpd-php-source .phps
17. ÓÃͨ³£µÄ¹ý³ÌÆô¶¯ Apache£¨±ØÐëÍêÈ«Í£Ö¹ Apache ÔÙÖØÐÂÆô¶¯£¬¶ø²»ÊÇÓà HUP »òÕß
USR1 ÐźÅʹ Apache ÖØмÓÔØ£©¡£

Ò²¿ÉÒÔ½« PHP ×÷Ϊ¾²Ì¬¶ÔÏóÀ´°²×°£º
Àý 4.2. PHP µÄ Apache ¾²Ì¬Ä£¿é°æ±¾°²×°ËµÃ÷
1. gunzip -c apache_1.3.x.tar.gz | tar xf -
2. cd apache_1.3.x
3. ./configure
4. cd ..
5. gunzip -c php-5.x.y.tar.gz | tar xf -
6. cd php-5.x.y
7. ./configure --with-mysql --with-apache=../apache_1.3.x
8. make
9. make install
10. cd ../apache_1.3.x
11. ./configure --prefix=/www --activate-module=src/modules/php5/libphp5.a
£¨ÉÏÃæÒ»ÐÐÊÇÕýÈ·µÄ£¡Êǵģ¬ÎÒÃÇÖªµÀ libphp5.a Éв»´æÔÚ£¬»¹²»µ½Ê±ºò£¬
Ëü»áÔÚÖ®ºó±»´´½¨¡££©
12. make
£¨ÏÖÔÚÓ¦¸ÃÓÐÒ»¸ö httpd ¶þ½øÖÆÎļþ£¬¿ÉÒÔ½«Ëü¸´ÖƵ½ Apache bin Ŀ¼¡£Èç¹ûÕâÊÇ
µÚÒ»´Î°²×°£¬»¹Òª¡°make install¡±¡£)
13. cd ../php-5.x.y
14. cp php.ini-dist /usr/local/lib/php.ini
AddType application/x-httpd-php .php

×¢Òâ: ¶ÔÓÚ PHP 4£¬°Ñ php-5 »»³É php-4£¬°Ñ php5 »»³É php4¡£
¸ù¾Ý Unix ϵͳºÍ Apache °²×°·½·¨µÄ²»Í¬£¬Óкܶ෽·¨Í£Ö¹ºÍÖØÆô¶¯ Apache¡£ÒÔÏÂÊÇһЩ²»Í¬µÄ Apache£¯UNIX ÏÂÖØÆô¶¯ Apache µÄµäÐÍÃüÁî¡£ÐèÒª°Ñ /path/to/ Ìæ»»³É×Ô¼ºÏµÍ³ÉϵÄÈ·Çз¾¶¡£
Àý 4.3. ÖØÆô¶¯ Apache µÄʾÀýÃüÁî
1. ÔÚһЩ Linux ºÍ SysV µÄ±äÖÖÏ£º
/etc/rc.d/init.d/httpd restart
2. ʹÓà apachectl ½Å±¾£º
/path/to/apachectl stop
/path/to/apachectl start
3. httpdctl ºÍ httpsdctl£¨Ê¹ÓÃÁË OpenSSL£©£¬ÀàËÆ apachectl£º
/path/to/httpsdctl stop
/path/to/httpsdctl start
4. ʹÓÃÁË mod_ssl£¬»òÆäËû SSL ·þÎñÆ÷£¬¿ÉÄÜÐèÒªÊÖ¹¤ÖØÆô¶¯£º
/path/to/apachectl stop
/path/to/apachectl startssl

apachectl ºÍ http(s)dctl ³ÌÐòËùÔڵķ¾¶ÔÚ²»Í¬ÏµÍ³ÖÐͨ³£²»Ò»Ñù¡£Èç¹ûϵͳÖÐÓÐ locate »òÕß whereis »òÕß which ÃüÁÄÇô¿ÉÒÔ°ïÖúÕÒµ½ÕâЩ¿ØÖƳÌÐò¡£
±àÒë PHP ºÍ Apache µÄ²»Í¬Àý×Ó»¹ÓУº
./configure --with-apxs --with-pgsql

./configure --with-apxs --with-pgsql=shared

./configure --with-apache=/path/to/apache_source --with-pgsql

´ËÅäÖý«Éú³É libmodphp5.a ¿â£¬mod_php5.c ºÍһЩÏà¹ØµÄÎļþ²¢ÇÒ¿½±´µ½ Apache Ô´³ÌÐòĿ¼ÖÐµÄ src/modules/php5 Ŀ¼Ï¡£È»ºóÓà --activate-module=src/modules/php5/libphp5.a ±àÒë Apache£¬Apache ±àÒëϵͳ»áÉú³É libphp5.a ²¢ÇÒ½«Æ侲̬µØÁ¬½Óµ½ httpd ³ÌÐòÖУ¨ÔÚ PHP 4 ÖÐ°Ñ php5 Ìæ»»³É php4£©¡£PostgreSQL Ö§³ÖÒ²Ö±½Ó°üÀ¨ÔÚÕâ¸ö httpd ³ÌÐòÖÐÁË£¬Òò´Ë×îÖÕ½á¹ûÊǵ¥Ò»µÄÒ»¸ö°üÀ¨ÁËËùÓÐ Apache ºÍ PHP Ö§³ÖµÄ httpd ¿ÉÖ´ÐÐÎļþ¡£
./configure --with-apache=/path/to/apache_source --with-pgsql=shared

µ±Ñ¡Ôñ²»Í¬µÄ·½·¨±àÒë PHP ʱ£¬ÐèÒª¿¼ÂÇÿÖÖ·½·¨µÄÓÅÊƺÍȱµã¡£Óù²Ïí¶ÔÏó·½Ê½±àÒë PHP Òâζ×Å¿ÉÒÔµ¥¶À±àÒë Apache£¬²¢ÇÒ²»ÓÃÔÚÌí¼Ó»òÐÞ¸ÄÁË PHP µÄʱºòÖØбàÒëËùÓгÌÐò¡£ÓÃÄÚÖ÷½·¨±àÒë PHP£¨¾²Ì¬·½Ê½£©Òâζ×Å PHP ¿ÉÒÔ¼ÓÔغÍÔËÐеøü¿ì¡£¸ü¶àÐÅÏ¢¼û Apache µÄ » DSO Ö§³ÖÒ³Ãæ¡£
User nobody
Group "#-1"
³ý·Ç°ÑËüÐ޸ijɡ°Group nogroup¡±»òÕßÆäËüÀàËƵģ¨¡°Group daemon¡±Ò²ºÜͨÓã©£¬PHP ½«²»ÄÜ´ò¿ªÎļþ¡£
×¢Òâ: È·ÈÏÔÚʹÓà --with-apxs=/path/to/apxs ʱָÏò Apache °²×°ºóµÄĿ¼ÖÐµÄ apxs¡£¾ø¶Ô²»ÄÜÓà Apache Ô´³ÌÐòÖÐµÄ apxs ¶øÒªÓð²×°ºóµÄ apxs¡£
Unix ϵͳÏ嵀 Apache 2.0 °²×°Ç°ÐèÒª¿¼ÂǵÄÊÂÏî
--------------------------------------------------------------------------------
Last updated: Thu, 19 Apr 2007

add a note User Contributed Notes
Unix ϵͳϵݲװ
moonlightcheese
23-Aug-2007 05:49
There is little or no documentation regarding the fact that MySQL Client Library isn't bundled with PHP anymore. The installation instructions need to be changed with, at the very least, some instructions for how to get PHP to recognize that the client library is installed. I realize that this may be a problem with licensing and as such, it's not possible to document too much regarding MySQL...
alecjw at gmail dot com
17-Aug-2007 08:09
mrstarr at nyx dot net:
This is the normal procedure, which is:
./configure
make
make install
Edit the appropriate config files.
please at nospam dot com
12-Jul-2007 01:09
I thought I should point out that when you run make it says "Build complete. Don't forget to run make test."
But the instructions on this page don't mention make test.
mrstarr at nyx dot net
10-Jun-2007 03:57
Are you serious. This install process is insane. Nobody's going to go through this complex install process just to upgrade this stuff. Its complicated enough as it is just configuring Linux to work, but having to go through this stuff over and over whenever you need to install or upgrade some dependency or component... is getting absurd.
You need a far simpler install process, preferably one that is a standard, i.e. ./configure , make, make install
davidc at php dot net
20-Mar-2007 07:35
One might want to use .phar then he'll have to compile using phar
--enable-phar --with-zlib --with-bzip2
Alex at GrimMusic dot com
13-Nov-2006 12:49
In response to the guy who posted about the SELinux:
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.
squeegee
30-Sep-2006 09:24
regarding the note by phptard at gmail dot com:
This was a good starting point to get php built against the Intel-compiled mysql, but in my case, there were still errors. It wasn't until I also added LIBS="-lirc" to the beginning of the configure line that it would configure without errors. It also compiled fine after that. So the start of my configure line looked like this:
LDFLAGS="-lirc" LIBS="-lirc" EXTRA_LIBS="-lirc" ./configure
Arjan van Bentem
12-Jul-2006 12:29
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
flconseil at yahoo dot fr
07-Mar-2006 06:15
Building Apache 2 and PHP 5.1.2 :
dpresley4 at yahoo dot com
06-Nov-2005 03:42
Hi,
PROBLEM: ./configure PHP --with-oci8
fails with unresolved references such as __rpc_thread_destroy@GLIBC_2_2_3_...
ONE SOLUTOIN
FOR SOLVING PHP ./configure RESULTING IN __rcp_thread_destroy@GLIBC_2_2_3_... AND
UNRESOLVED REFERENCES WITH ORACLE OCI8
KEYWORDS: PHP OCI OCI8 NET8 ./configure __rpc_thred_destroy UNRESOLVED REFERENCES
For building php-4.4.1 or later with oci8, make sure your LD_LIBARRY_PATH has at a minimum the following directories in its path for Oracle8i 8.1.5 or later, Oracle9i 9.0.2 or later, and Oracle9i Release 2: 9.2.0.4 or later, do the following:
Note: We are not using the Oracle Instant Client here. This assumes you have an actual Oracle Installation.
1. Set ORACLE_HOME
Example using Oracle 9i Relase 2 -- 9.2.0.5:
ORACLE_HOME=/opt/app/oracle/product/9iR2
2. Set LD_LIBRARY_PATH with:
LD_LIBRARY_PATH=$ORACLE_HOME/lib: \
$ORACLE_HOME/rdbms/lib:\
$LD_LIBRARY_PATH
3. On Unix / Linux, don't forget to export these environment variables:
export ORACLE_HOME LD_LIBRARY_PATH
4. Now, build PHP with the following:
./configure --with-apxs2= --with-oci8=$ORACLE_HOME --enable-sigchild
Also note that if your using Oracle 9iAS Release 2 v9.0.2, Oracle 10g iAS Release 1 v9.0.4.1, the above steps will work because ORACLE_HOME will containe all of the libraries necessary. Simply point ORACLE_HOME to the top level directory of these installations and set LD_LIBRARY_PATH as described above.
Hope this helps.
phptard at gmail dot com
23-Mar-2005 04:17
after a long night of wrestling with mysql4.0 under linux compiled with the intel compiler, i've gotten php5.0.3 to compile with mysql libraries for this flavor of mysql:
1: download the mysql for linux/intel compiler and install
2: download the rpm for the intel compiler libraries and install
3: configure php with LDFLAGS="-lirc -lgcc_s" and EXTRA_LIBS="-lirc -lgcc_s"
Example:
LDFLAGS="-lirc -lgcc_s" LD_LIBRARY_PATH="-L/usr/lib64" LD_PATH="-L/usr/lib64" LDPATH="-L/usr/lib64" EXTRA_LIBS="-lirc -lgcc_s" ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-ssl=/usr/local/ssl --without-sqlite --with-zlib-dir=/usr --with-mysql=/usr/local/mysql
of course this is on a xeon system that has half of its modules in the /usr/lib64 directory, so on a normal system, without the other kruft, it would look something more like this:
LDFLAGS="-lirc -lgcc_s" EXTRA_LIBS="-lirc -lgcc_s" ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
Hopefully this will save someone the 6 hour headache it caused me..
diemuzi at gmail dot com
13-Jan-2005 10:11
In reference to van [at] webfreshener [dot] com to fix the krb5 problems. An easier fix is to do the following:
ln -s /usr/kerberos/include/krb5.h /usr/include/krb5.h
ln -s /usr/kerberos/include/profile.h /usr/include/profile.h
ln -s /usr/kerberos/include/com_err.h /usr/include/com_err.h
This will help solve some deps. in the future incase a situation with another compilation occurs.
alexander justadot henry at acm dot org
22-Dec-2004 12:48
The system at my workplace has a need for apache/php with all static compilation. In order to save time adminning our systems, I decided to make my own RPM of php/apache with mod_ssl support. I had always installed by hand with the instructions on this page, but when buiding the RPM way, came upon the following error when apache was compiling:
===> src/modules/php4
make[4]: *** No rule to make target `all'. Stop.
Ordinarily this is because one did not do a 'make install' in php before the second apache configure, or somehow the make install failed. But the way rpm's work, the make install must be in the %install portion of the spec file, after all makes are completed.
make install-sapi
This line will copy relevant files to the directory specified in --with-apache
samael99 at web dot de
24-Jun-2004 06:51
Quick hint for people using RH8:
if make gives you this error
FT_ENCODING_MS_SYMBOL undeclared
change on line in this file
/usr/include/freetype2/freetype/freetype.h
Search for ft_encoding_symbol - change it to
ft_encoding_ms_symbol
Now this problem is dealt with, go ahead with make.
Good Luck !
robert_sgi at yahoo dot com
08-May-2004 11:57
If you install php 4 on SGI IRIX 6.5 (in my case it was php 4.3.6 on Silicon Graphics O2 IRIX 6.5.22 machine) and you're building it with:
--with-gettext=/usr/freeware
then you need to manually edit the file named "configure" (from the php source directory) and change the line# 36739
from:
GETTEXT_LIBDIR=$GETTEXT_DIR/lib
to:
GETTEXT_LIBDIR=$GETTEXT_DIR/lib32
If you have problems in locating the line, search the text for "bindtextdomain", and look several (4) lines above.
karthik (dot) k (at) extremix (dot) net
18-Jan-2004 08:28
This is regarding the post down below about the problem with openssl on RH9. Openssl on RH9 is built with kerberos. To get PHP to build correctly you need the output of these commands when you make.
[root@graf-spee local]# pkg-config --cflags openssl
-I/usr/kerberos/include
[root@graf-spee local]# pkg-config --libs openssl
-L/usr/kerberos/lib -lssl -lcrypto -lresolv -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -ldl -lz
These could be added to your make command thus. I have not tested it out, but should work with some tweaking
make EXTRA_LDFLAGS=`pkg-config --libs openssl` EXTRA_CFLAGS=`pkg-config --cflags openssl`
thansen at terra dot com dot br
30-Dec-2003 08:36
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

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).
aaronmorris at mindspring dot com
05-Dec-2003 12:47
26-Mar-2003 12:52
doug at NOSPAM dot techie dot net
04-Feb-2003 05:16
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
mbabcock-php at fibrespeed dot net
20-Jul-2001 09:32
The best configuration guide I've found for Apache with PHP (and PERL, mod_ssl, etc.) is Apacompile. Its home site is
dimaberastau at hotmail dot com
09-Jun-2001 09:33
marshalm at ebrd dot com
17-May-2001 10:43
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.
philip at c()rnad() dot c()m
25-Mar-2001 04:22
HOWTO: Installation on Cobalt RaQ (RaQ3 or RaQ4) :
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ