конфигурация PHP 4 + apache как делать????
Добавлено: 2007-04-24 8:43:52
Параметры конфигурации PHP в момент установки:
'./configure' '--prefix=/usr/local' '--enable-mbstring' '--enable-bcmath' '--with-mcrypt=/usr/local/lib/libmcrypt' '--with-mhash=/usr/local/lib' '--enable-safe-mode' '--with-curl' '--with-mod_charset' '--localstatedir=/var/tmp' '--with-apache=../src.apache' '--with-openssl=/usr/' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-bz2=/usr/local' '--with-jpeg-dir=/usr/local' '--enable-ftp' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-imap=../imap-2004g' '--with-imap-ssl' '--with-mysql=/usr/local' '--enable-sockets' '--with-zip=/usr/local' '--with-gettext' '--enable-versioning' '--enable-track-vars' '--enable-trans-sid' '--disable-debug' '--with-iconv=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--enable-gd-native-ttf' '--enable-dba' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-mm'
на эту тему. :
кинуть всё в /usr/src/, потом
tar -zxf apache_1.3.37.tar.gz
cd apache_1.3.37
./configure
cd ..
tar -zxf php-x.x.x.tar.gz
cd php-x.x.x
./configure --with-apache=../ПАПКА_АПАЧА --with-mysql=ПАПКА_MYSQL --enable-bcmath --enable-safe-mode --enable-ftp --enable-versioning --enable-trans-sid --disable-debug --enable-dba --with-dom --with-dom-xslt --with-dom-exslt
make
make install
cd ../apache_1.3.37
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php[НОМЕР_ВЕРСИИ]/libphp[НОМЕР_ВЕРСИИ].a
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php[НОМЕР_ВЕРСИИ]/libmodphp[НОМЕР_ВЕРСИИ].a
В httpd.conf добавить:
AddType application/x-httpd-php .php
Итого получается что : ./configure --with-apache=../ИСХОДНИКИ_АПАЧА --enable-bcmath --enable-safe-mode --enable-ftp --with-mysql=/ПУТЬ_К_МУСКУЛУ --enable-versioning --enable-trans-sid --disable-debug --enable-dba --with-dom --with-dom-xslt --with-dom-exslt - делается вот.
Но возникает ряд вопросов :
'--prefix=/usr/local'
'--enable-mbstring'
'--with-mcrypt=/usr/local/lib/libmcrypt'
'--with-mhash=/usr/local/lib'
'--with-curl'
'--with-mod_charset'
'--localstatedir=/var/tmp'
'--with-openssl=/usr/'
'--with-zlib=/usr'
'--with-zlib-dir=/usr'
'--with-bz2=/usr/local'
'--with-jpeg-dir=/usr/local'
'--with-gd=/usr/local'
'--with-png-dir=/usr/local'
'--with-imap=../imap-2004g'
'--with-imap-ssl'
'--enable-sockets'
'--with-zip=/usr/local'
'--with-gettext' '--enable-versioning'
'--enable-track-vars'
'--with-iconv=/usr/local'
'--with-ttf'
'--with-freetype-dir=/usr/local'
'--enable-gd-native-ttf'
'--with-mm'
'./configure' '--prefix=/usr/local' '--enable-mbstring' '--enable-bcmath' '--with-mcrypt=/usr/local/lib/libmcrypt' '--with-mhash=/usr/local/lib' '--enable-safe-mode' '--with-curl' '--with-mod_charset' '--localstatedir=/var/tmp' '--with-apache=../src.apache' '--with-openssl=/usr/' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-bz2=/usr/local' '--with-jpeg-dir=/usr/local' '--enable-ftp' '--with-gd=/usr/local' '--with-png-dir=/usr/local' '--with-imap=../imap-2004g' '--with-imap-ssl' '--with-mysql=/usr/local' '--enable-sockets' '--with-zip=/usr/local' '--with-gettext' '--enable-versioning' '--enable-track-vars' '--enable-trans-sid' '--disable-debug' '--with-iconv=/usr/local' '--with-ttf' '--with-freetype-dir=/usr/local' '--enable-gd-native-ttf' '--enable-dba' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-mm'
на эту тему. :
кинуть всё в /usr/src/, потом
tar -zxf apache_1.3.37.tar.gz
cd apache_1.3.37
./configure
cd ..
tar -zxf php-x.x.x.tar.gz
cd php-x.x.x
./configure --with-apache=../ПАПКА_АПАЧА --with-mysql=ПАПКА_MYSQL --enable-bcmath --enable-safe-mode --enable-ftp --enable-versioning --enable-trans-sid --disable-debug --enable-dba --with-dom --with-dom-xslt --with-dom-exslt
make
make install
cd ../apache_1.3.37
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a
make
make install
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libmodphp4.a
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php[НОМЕР_ВЕРСИИ]/libphp[НОМЕР_ВЕРСИИ].a
или
./configure --prefix=/usr/local/apache --activate-module=src/modules/php[НОМЕР_ВЕРСИИ]/libmodphp[НОМЕР_ВЕРСИИ].a
В httpd.conf добавить:
AddType application/x-httpd-php .php
Итого получается что : ./configure --with-apache=../ИСХОДНИКИ_АПАЧА --enable-bcmath --enable-safe-mode --enable-ftp --with-mysql=/ПУТЬ_К_МУСКУЛУ --enable-versioning --enable-trans-sid --disable-debug --enable-dba --with-dom --with-dom-xslt --with-dom-exslt - делается вот.
Но возникает ряд вопросов :
'--prefix=/usr/local'
'--enable-mbstring'
'--with-mcrypt=/usr/local/lib/libmcrypt'
'--with-mhash=/usr/local/lib'
'--with-curl'
'--with-mod_charset'
'--localstatedir=/var/tmp'
'--with-openssl=/usr/'
'--with-zlib=/usr'
'--with-zlib-dir=/usr'
'--with-bz2=/usr/local'
'--with-jpeg-dir=/usr/local'
'--with-gd=/usr/local'
'--with-png-dir=/usr/local'
'--with-imap=../imap-2004g'
'--with-imap-ssl'
'--enable-sockets'
'--with-zip=/usr/local'
'--with-gettext' '--enable-versioning'
'--enable-track-vars'
'--with-iconv=/usr/local'
'--with-ttf'
'--with-freetype-dir=/usr/local'
'--enable-gd-native-ttf'
'--with-mm'