Главная страница


ru.unix.bsd

 
 - RU.UNIX.BSD ------------------------------------------------------------------
 From : Michael Afanasiev                    2:5020/400     04 Apr 2002  16:35:47
 To : Andrey Ivanov
 Subject : Re: php module for apache?
 -------------------------------------------------------------------------------- 
 
 Andrey Ivanov wrote:
 
 > Доброго времени суток!
 > Как всем нам известно, поддержку php в апач можно осуществить двумя
 > способами: повесить  модуль к апачу или вкомпиллировать в апач.
 >  Последнее осуществляется с легкостью, а вот навесить модуль php к апачу
 > не удается:
 > 
 > 1.  cd apache_xxx
 > 2.  ./configure --prefix=/www --enable-module=so
 > 3.  make
 > 4.  make install
 > 5.  cd ../php-xxx
 > 6. ./configure --with-mysql --with-apxs=/www/bin/apxs
 > 7. make
 > 8. make install
 > 9. cp php.ini-dist /usr/local/lib/php.ini
 > 10. httpd.conf:
 > AddType application/x-httpd-php .php
 > LoadModule php4_module        libexec/libphp4.so
 > 
 > последний модуль не присутствует на винчестQUICK INSTALL (Static)ере, на 
 
 что и ругается апач.
 
 > И как бы так это вылечить?
 > $ gunzip -c apache_1.3.x.tar.gz | tar xf -
 
 надо внимательнее читать доки типа Инсталл и Реадми незабудь маке клеан в 
 апаче и пхп и рм -рф все апачевские бинарники из того места куда апач ставил
 ========== кут /usr/install/php/INSTALL ================
 QUICK INSTALL (Static)
 
 $ cd apache_1.3.x
 $ ./configure
 $ cd ..
 $ gunzip -c php-4.0.x.tar.gz | tar xf -
 $ cd php-4.0.x
 $ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
 $ make
 $ make install
 $ cd ../apache_1.3.x
 $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a
  (The above line is correct!  Yes, we know libphp4.a does not exist at this
   stage.  It isn't supposed to.  It will be created.)
 $ make
  (you should now have an httpd binary which you can copy to your Apache bin 
 dir if
   is is your first install then you need to "make install" as well)
 $ cd ../php-4.0.x
 $ cp php.ini-dist /usr/local/lib/php.ini
 You can edit /usr/local/lib/php.ini file to set PHP options.
 Edit your httpd.conf or srm.conf file and add:
   AddType application/x-httpd-php .php 
 
 ========= енд кут =================
 --- ifmail v.2.15dev5
  * Origin: ava (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 php module for apache?   Andrey Ivanov   04 Apr 2002 14:33:33 
 Re: php module for apache?   Vitaly Markitantov   04 Apr 2002 16:14:57 
 Re: php module for apache?   Rodionov Alexandre   04 Apr 2002 21:09:30 
 Re^2: php module for apache?   Igor Goncharenko   05 Apr 2002 09:45:36 
 Re: php module for apache?   Vitaly Markitantov   05 Apr 2002 12:06:17 
 не спи за рулем   Andrey Ivanov   04 Apr 2002 16:19:12 
 Re: php module for apache?   Michael Afanasiev   04 Apr 2002 16:35:47 
 php module for apache?   Andrey Ostanovsky   08 Apr 2002 22:58:19 
 php module for apache?   Max Khon   04 Apr 2002 22:04:38 
 Re: php module for apache?   Valentin A. Alekseev   05 Apr 2002 01:36:24 
Архивное /ru.unix.bsd/4421810a2e3f.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional