DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd June 2011
joancatala joancatala is offline
New User
 
Join Date: Jun 2011
Posts: 1
Thanked 0 Times in 0 Posts
Default Apache2 and PHP5 installation?

hi all,
I was reading and reading and I can't find the solution on the internet.

By default OpenBSD 4.9 has Apache 1.3, but I need Apache 2. I installed it by "pkg_add apache-httpd-2.2.15p0" and also I installed PHP5 by "pkg_add".

I add in /etc/apache2/httpd2.conf the line:

LoadModule php5_module /usr/local/lib/php/libphp5.so

And:

AddType application/x-httpd-php .php

I start Apache2 and I have this error:

# /usr/local/sbin/apachectl2 start
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_block_alarms'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_unblock_alarms'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_user_id'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_group_id'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_user_name'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'top_module'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_table_get'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_table_setn'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_kill_timeout'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_uudecode'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_pstrdup'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_psprintf'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_table_add'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_register_cleanup'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_signal'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_send_http_header'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_pstrndup'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_block_alarms'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_child_terminate'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_table_set'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_hard_timeout'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_reset_timeout'
/usr/local/sbin/httpd2:/usr/local/lib/php/libphp5.so: undefined symbol 'ap_unblock_alarms'
httpd2: Syntax error on line 116 of /etc/apache2/httpd2.conf: Cannot load /usr/local/lib/php/libphp5.so into server: Cannot load specified object
#


Please, does anybody here has the solution?
I didn't compiled the port, I'm using the packages and installing them with 'pkg_add'.
I need help, please. Witch Apache 1.3 is very easy, but I need to do it with Apache2.

peace and love,

joan
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm sorry ... (apache2, php5, pstgresql, openbsd 4.8) Nothing2Do OpenBSD Packages and Ports 14 7th February 2011 10:09 PM
fbsd 7.2 and php5 baraboom FreeBSD Ports and Packages 2 9th July 2009 08:33 PM
apache2.2+PHP5 edvinus OpenBSD Packages and Ports 1 29th June 2009 08:13 PM
Problem with upgrading php5-pcre and php5-mysql KernelPanic FreeBSD Ports and Packages 6 16th June 2008 10:00 PM
Apache2 and Iconv disi NetBSD Installation and Upgrading 1 13th May 2008 09:07 PM


All times are GMT. The time now is 06:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick