Kod
./configure --prefix=/usr/apache
make
make install
make
make install
Do tego mam php5 instalowanego za pomoca
Kod
./configure --with-mysql --with-pgsql --enable-track-vars --with-dom=/usr/lib --enable-wddx --disable-short-tags --enable-bcmath --with-config-file-path=/etc --with-zlib-dir=/usr/include --enable-shmop --with-gd --enable-pcntl --with-readline --enable-overload --enable-ftp --enable-sockets --enable-openssl=/usr/include/openssl
make
make install
make
make install
php zainstalowal sie w katalogu
/usr/local/bin/
jako php
W php wszystko jest ok, bo sprawdzalem na skryptach lini polecen
Teraz dodalem do httpd.conf (w katalogu /usr/apache/conf/ -wiem, ze dziala bo pojawia sie rozne bledy) takie linijki
Kod
ScriptAlias /php/ "/usr/local/bin/php"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/usr/local/include/php"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/usr/local/include/php"
Natomiast apache wywala mi taki blad
Cytat
The requested URL /usr/local/include/php/test.php was not found on this server.
Gdzie tu jest blad, moze skompilowac od nowa? lub moze to koniguracja?[/code]