apache2_php4 a libphp4.so

lucielukes lucielukes at seznam.cz
Fri Jul 21 12:34:37 CEST 2006


Dobry den panove.

Mam nasledujici problem s kterym si nevim rady. Nemuzu zprovoznit php4 na apache2 a konkretne
neumim naloudovat modul php. Nekde jsem se docetla, ze se ma pridat jeste tenhle radek do httpd.conf:
LoadModule php4_module libexec/apache2/libphp4.so
Ale zadny takovy modul se v /usr/local/libexec/apache2/ nenachazi.
A phpinfo se mi podle nasledujici konfigurace nezobrazi jenom standardni uvodni html stranka.
Kde delam chybu ?
Za odpoved predem dekuji.
Lucie

echo 'apache2_enable="YES"' >> /etc/rc.conf

chmod 644 /usr/local/etc/pkgtools.conf

 MAKE_ARGS = {
	'www/apache2' => 'APACHE_PERF_TUNING=1',
 }

chmod 444 /usr/local/etc/pkgtools.conf

cd /usr/ports/www/apache20

make APACHE_PERF_TUNING=YES all install
make clean

cd /usr/ports/lang/php4
make -DWITH_APACHE2 install clean

cd /usr/ports/lang/php4-extensions
make install clean

cp /usr/local/etc/php.ini-dist /usr/local/lib/php.ini

Konfigurace:
vi /usr/local/etc/apache2/httpd.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

DirectoryIndex index.html index.html.var index.php index.php3

ServerType standalone
ServerRoot "/usr/local"

Listen 80
User nobody
Group nobody
ServerAdmin lucielukes at seznam.cz
ServerName 10.42.9.189
DocumentRoot "/usr/local/www/data"
<Directory "/usr/local/www/data">
LanguagePriority cs cz
#Zakomentovano:
#LoadModule unique_id_module   libexec/apache/mod_unique_id.so
#AddModule mod_unique_id.c
chmod 744 /usr/local/lib/php.ini

vi /usr/local/lib/php.ini
doc_root="/usr/local/www/data"
use_dir="/usr/local/www/data"

#bezpecnost
disable_functions= exec() system()
max_execution_time= 20
display_errors= On
track_errors= Off
magic_quotes_gpc= Off
magic_quotes_runtime= Off
magic_quotes_sybase= Off
extension_dir= “./“
file_uploads= Off
upload_tmp_dir= Off
allow_url_fopen= Off

chmod 444 /usr/local/lib/php.ini

vi /usr/local/www/data/info.php

info.php
---------------
<?
phpinfo( );
?>
------------
apachectl start
---------------------------------
End




More information about the Users-l mailing list