Vorige C  u  r  s  u  s    P  H  P Volgende




§ 5  installing PHP - Apache DSO


requires RPMs :

compilation : bison , binutils , cpp , glibc-devel , gcc , kernel-headers
apache packs: apache , apache-devel (that's where the apxs script is from)
mysql packs : mysql , mysqlclient , mysql-devel , mysql-server
gd/graphics : gd , gd-devel , libjpeg ,libpng, freetype

1.
./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ --enable-track-vars --with-gd
--with-gpeg --with-png --with-ttf
2.
make
3.
make install
4.
copy php.ini-dist to /usr/local/lib/php.ini
and edit options.
5.
edit your httpd.conf - uncomment this line:(*New versions- done automatially*)
AddType application/x-httpd-php .php
6.
restart server (/etc/init.d/httpd restart)


--enable-track-vars : (php4+ enabled bt default)
enables tracking of GET/POST/Cookies variables.

--with-mysql[=DIR]
enables MySQL db functions

--with-gd[=DIR]
enable GD support.

--with-apxs[=FILE]
Build shared Apache module. (if you want to install PHP as DSO)




Vorige Naar Inhoudsopgave Volgende