On Sun, Nov 20, 2005 at 06:22:15PM +0100, noob lenoobie wrote:
> Hello.
> 
> I installed a Fresh OpenBSD 3.8 in order to make a
> firewall/webserver.But I can't make apache interpret php.
> 
> I did run phpxs -s, I checked my httpd.conf (with Loadmodule and
> AddType), I restarted apache with apacheclt stop && sleep 1 &&
> apachectl start (apachectl restart fails).
> 
> I've read many maillinglists and newsgroups, but the answer is always
> "run phpxs -s" ou "add the required lines to httpd.conf". So I really
> don't know what to do next.
> 
> You may want to see some commands :
> 
> #phpxs -s seems ok to me
> phpxs -s
>       [activating module php5 in /var/www/conf/httpd.conf]
>       cp /usr/local/lib/php/libphp5.so /usr/lib/apache/modules/libphp5.so
>       chmod 755 /usr/lib/apache/modules/libphp5.so
>       cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak
>       cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf
>       rm /var/www/conf/httpd.conf.new
> 
>       You should copy the sample configuration files from
>       /usr/local/share/examples/php5 to /var/www/conf/php.ini
> 
> # LoadModule && AddType ok
> grep php /var/www/conf/httpd.conf
>       LoadModule php5_module        /usr/lib/apache/modules/libphp5.so
>       DirectoryIndex index.html index.php
>       AddType application/x-httpd-php .php
> 
> # apache works perfectly
> pgrep httpd
>       1545
>       24114
>       31175
>       2918
>       4374
>       8575
>       2960
>       17642
> 
> # php works fine
> cat info.php
>       <? echo "ok\n"; ?>
> php info.php
>       ok
> 
> pkg_info
>       bash-3.0.16p1-static GNU Bourne Again Shell
>       gettext-0.10.40p3   GNU gettext
>       libiconv-1.9.2p1    character set conversion library
>       libxml-2.6.16p5     XML parsing library
>       mysql-client-4.0.24 multithreaded SQL database (client)
>       mysql-server-4.0.24p1 multithreaded SQL database (server)
>       p5-DBD-mysql-3.0002 MySQL drivers for the Perl DBI
>       p5-DBI-1.45p1       unified perl interface for database access
>       p5-Net-Daemon-0.38  extension for portable daemons
>       p5-PlRPC-0.2018     module for writing rpc servers and clients
>       php5-core-5.0.4p0   server-side HTML-embedded scripting language
>       php5-mbstring-5.0.4 multibyte characters extensions for php5
>       php5-mysql-5.0.4    mysql database access extensions for php5
>       phpMyAdmin-2.6.3    tool to handle the administration of MySQL
> over the web
>       vim-6.3.85p0-no_x11 vi clone, many additional features
> 
> Kind Regards,
> Richard.
> 
Hello,

does it work without a chrooted enviroment?

Try "httpd -u".

Greetings
Jonathan

-- 
 | /"\   ASCII Ribbon   | Jonathan Glaschke - Lorenz-Goertz-Stra_e 71,
 | \ / Campaign Against | 41238 Moenchengladbach, Germany;
 |  X    HTML In Mail   | jabber: [EMAIL PROTECTED]
 | / \     And News     | http://jonathan-glaschke.de/

Reply via email to