ssl_mod:
./configure --with-apache=../apache_1.3.34 --with-ssl=../openssl-0.9.8d --prefix=/raserver/httpd/raserver/apache
cd ../apache_1.3.34
make
make certificate
make install
собрал апач 1.3.34
./confgure --enable-module=ssl --enable-module=so --prefix=/raserver/httpd/raserver/apache
make
make install
собрал php 5.2.1
./configure --prefix=/raserver/httpd/raserver/php5 --with-mysql=/raserver/httpd/raserver/mysql/ --enable-track-vars --enable-sockets --with-config-file-path=/raserver/httpd/raserver/php5 --with-zlib --with-openssl=/usr/local/ssl --enable-exif --enable-memory-limit --disable-debug --disable-static --with-pic --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-bz2 --with-iconv --with-gettext --enable-xml --with-apxs=/raserver/httpd/raserver/apache/bin/apxs
make
make install
запускаем
/usr/bin/chroot /raserver/httpd /raserver/apache/bin/apachectl startsslвсе работает только надо добавить поддержку zend optimazer, добавил в php.ini строчки
zend_extension=/raserver/httpd/usr/local/lib/ioncube/ioncube_loader_lin_5.2.so
zend_extension=/raserver/httpd/usr/local/lib/Zend/ZendOptimizer.so
zend_optimizer.optimization_level=1перезапустил апач
# cat info.php
<?
phpinfo();
?>PHP LogoPHP Version 5.2.1
System Linux ICServer1 2.6.19 #1 SMP Thu Mar 15 12:20:47 EET 2007 i686
Build Date Mar 16 2007 18:42:52
Configure Command './configure' '--prefix=/raserver/httpd/raserver/php5' '--with-mysql=/raserver/httpd/raserver/mysql/' '--enable-track-vars' '--enable-sockets' '--with-config-file-path=/raserver/httpd/raserver/php5/php.ini' '--with-zlib' '--with-openssl=/usr/local/ssl' '--enable-exif' '--enable-memory-limit' '--disable-debug' '--disable-static' '--with-pic' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-bz2' '--with-iconv' '--with-gettext' '--enable-xml' '--with-apxs=/raserver/httpd/raserver/apache/bin/apxs'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /raserver/httpd/raserver/php5/
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologiesа теперь тот же скрипт только через консоль:
# ../../php5/bin/php info.php
phpinfo()
PHP Version => 5.2.1System => Linux ICServer1 2.6.19 #1 SMP Thu Mar 15 12:20:47 EET 2007 i686
Build Date => Mar 19 2007 10:15:04
Configure Command => './configure' '--prefix=/raserver/httpd/raserver/php5' '--with-mysql=/raserver/httpd/raserver/mysql/' '--enable-track-vars' '--enable-sockets' '--with-config-file-path=/raserver/httpd/raserver/php5' '--with-zlib' '--with-openssl=/usr/local/ssl' '--enable-exif' '--enable-memory-limit' '--disable-debug' '--disable-static' '--with-pic' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-bz2' '--with-iconv' '--with-gettext' '--enable-xml' '--with-apxs=/raserver/httpd/raserver/apache/bin/apxs'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /raserver/httpd/raserver/php5/php.ini
PHP API => 20041225
PHP Extension => 20060613
Zend Extension => 220060519
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.29, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Optimizer v3.2.4, Copyright (c) 1998-2007, by Zend TechnologiesКак видно через конcоль пхп считует нормально свой конфиг и есть строки поддержки zend optimazera и ionCube. В чем я промахнулся почему апач никак не реагирует на конфиг php?
пересобрал пхп вкомпилированый в апач, итог тот же:(
>ssl_mod:
> ./configure --with-apache=../apache_1.3.34 --with-ssl=../openssl-0.9.8d --prefix=/raserver/httpd/raserver/apache
> cd ../apache_1.3.34
> make
> make certificate
> make install
>собрал апач 1.3.34
>./confgure --enable-module=ssl --enable-module=so --prefix=/raserver/httpd/raserver/apache
>make
>make install
>собрал php 5.2.1
>./configure --prefix=/raserver/httpd/raserver/php5 --with-mysql=/raserver/httpd/raserver/mysql/ --enable-track-vars --enable-sockets --with-config-file-path=/raserver/httpd/raserver/php5 --with-zlib --with-openssl=/usr/local/ssl --enable-exif --enable-memory-limit --disable-debug --disable-static
>--with-pic --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-bz2 --with-iconv --with-gettext --enable-xml --with-apxs=/raserver/httpd/raserver/apache/bin/apxs
>make
>make install
>запускаем
>/usr/bin/chroot /raserver/httpd /raserver/apache/bin/apachectl startssl
>
>все работает только надо добавить поддержку zend optimazer, добавил в php.ini строчки
>
>zend_extension=/raserver/httpd/usr/local/lib/ioncube/ioncube_loader_lin_5.2.so
>zend_extension=/raserver/httpd/usr/local/lib/Zend/ZendOptimizer.so
>zend_optimizer.optimization_level=1
>
>перезапустил апач
># cat info.php
><?
>phpinfo();
>?>
>
>https://localhost/info.php
>
>PHP LogoPHP Version 5.2.1
>
>
> System Linux ICServer1 2.6.19 #1 SMP Thu Mar
>15 12:20:47 EET 2007 i686
> Build Date Mar 16 2007 18:42:52
>Configure Command './configure' '--prefix=/raserver/httpd/raserver/php5' '--with-mysql=/raserver/httpd/raserver/mysql/' '--enable-track-vars' '--enable-sockets' '--with-config-file-path=/raserver/httpd/raserver/php5/php.ini' '--with-zlib'
>'--with-openssl=/usr/local/ssl' '--enable-exif' '--enable-memory-limit' '--disable-debug' '--disable-static' '--with-pic' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-bz2' '--with-iconv'
>'--with-gettext' '--enable-xml' '--with-apxs=/raserver/httpd/raserver/apache/bin/apxs'
> Server API Apache
> Virtual Directory Support disabled
> Configuration File (php.ini) Path /raserver/httpd/raserver/php5/
> PHP API 20041225
> PHP Extension 20060613
> Zend Extension 220060519
> Debug Build no
> Thread Safety disabled
> Zend Memory Manager enabled
> IPv6 Support enabled
> Registered PHP Streams php, file, data, http, ftp,
>compress.bzip2, compress.zlib, https, ftps
> Registered Stream Socket Transports tcp, udp, unix, udg,
>ssl, sslv3, sslv2, tls
> Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*,
>consumed, convert.iconv.*, bzip2.*, zlib.*
>
>
>Zend logo This program makes use of the Zend Scripting Language Engine:
>
>Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
>
>а теперь тот же скрипт только через консоль:
># ../../php5/bin/php info.php
>phpinfo()
>PHP Version => 5.2.1
>
>System => Linux ICServer1 2.6.19 #1 SMP Thu Mar 15 12:20:47 EET 2007 i686
>Build Date => Mar 19 2007 10:15:04
>Configure Command => './configure' '--prefix=/raserver/httpd/raserver/php5' '--with-mysql=/raserver/httpd/raserver/mysql/' '--enable-track-vars' '--enable-sockets' '--with-config-file-path=/raserver/httpd/raserver/php5' '--with-zlib' '--with-openssl=/usr/local/ssl' '--enable-exif' '--enable-memory-limit' '--disable-debug' '--disable-static' '--with-pic' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-bz2' '--with-iconv' '--with-gettext' '--enable-xml' '--with-apxs=/raserver/httpd/raserver/apache/bin/apxs'
>Server API => Command Line Interface
>Virtual Directory Support => disabled
>Configuration File (php.ini) Path => /raserver/httpd/raserver/php5/php.ini
>PHP API => 20041225
>PHP Extension => 20060613
>Zend Extension => 220060519
>Debug Build => no
>Thread Safety => disabled
>Zend Memory Manager => enabled
>IPv6 Support => enabled
>Registered PHP Streams => php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
>Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
>Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*
>
>
>This program makes use of the Zend Scripting Language Engine:
>Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
> with the ionCube PHP Loader v3.1.29, Copyright (c)
>2002-2007, by ionCube Ltd., and
> with Zend Optimizer v3.2.4, Copyright (c) 1998-2007, by
>Zend Technologies
>
>Как видно через конcоль пхп считует нормально свой конфиг и есть строки
>поддержки zend optimazera и ionCube. В чем я промахнулся почему апач
>никак не реагирует на конфиг php?Ошибка решена, apache не смотрит на переменную "--with-config-file-path" для него файл конфигурации всегда находиться в /etc, а так как он запущен как chroot /raserver/httpd, по-этому надо было скопировать конфиг в /raserver/httpd/etc