php and curl probems

robik

New member
Joined
Dec 29, 2004
Messages
3
Location
israel,beer-sheva
php and curl probems ( problem solved )

Ive just installed the DA all is more or less ok but i have some problems with php and curl. The first thing that apache refused to start till the moment i commented out this in http.conf

###<IfDefine HAVE_PHP4>
#AddModule mod_php4.c

And then apache started but no php :-( . So i went to faq and done this

#cd /usr/local/directadmin/customapache
#./build update
#./build all
and got this

#In file included from /usr/include/sys/select.h:40,
from select.c:27:
/usr/include/sys/event.h:53: syntax error before `uintptr_t'
/usr/include/sys/event.h:55: syntax error before `u_short'
In file included from select.c:27:
/usr/include/sys/select.h:47: syntax error before `pid_t'
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.12.3/lib.
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.12.3/lib.
*** Error code 1

Stop in /usr/local/directadmin/customapache/curl-7.12.3.

Could somebody help me with this issue.

My system is:

FreeBSD 4.10-RELEASE-p5
 
Last edited:
Yggdraa said:
I just countered with the same problem
I changed ./build script to compile 7.12.2 version instead of 7.12.3
(don't forget wget http://files.directadmin.com/services/customapache/curl-7.12.2.tar.gz)

and it worked
And for the n00bs (I just found out seconds ago) you have to edit build for that in /usr/local/directadmin/customapache/

I'm having the same problem, I'm checking to see if this fixes things
 
no it didn't. I get:

[root@venus customapache]# service httpd configtest
Syntax error on line 161 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_php4.c': not in list of loaded modules

any suggestions?
 
answer

Or just commen out this line at httpd.config and the same in custom per user conf and as i understand you ll have no php or comment out line number 40 in /usr/include/sys/event.h
 
Re: answer

robik said:
Or just commen out this line at httpd.config and the same in custom per user conf and as i understand you ll have no php or comment out line number 40 in /usr/include/sys/event.h

Yes, well my users would like to have php ;)

I should mention that I'm using fedora core II though, so no freebsd.
 
Last edited:
In my case the line:

<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
</IfDefine>

had to be changed to

#<IfDefine HAVE_PHP4>
LoadModule php4_module modules/libphp4.so
#</IfDefine>

in order to make things work. I presume that somehow apache didn't know php4 was installed, but it really was. Same goes for perl, I had to comment out the ifdefines as well.
 
Back
Top