websites not reachable after trying to install ImageMagick

testracer

New member
Joined
Nov 23, 2004
Messages
2
Good day,

I am using DA since one week for freeBSD 5.3. I tried to install ImageMagick, so I tried it to install it for FreeBSD 5.2 by article

http://www.directadmin.com/forum/showthread.php?s=&threadid=5406&highlight=ImageMagick

For that I installed the ports package and did a couple of actions to install the package. When I was finished with that and did a restart of the system, I noticed that the admin panel was running, but that httpd fr the websites wasn't any starting any more.

After analysing I found out that it wasn't starting because a module was not found:
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

After searching over the net a complete rebuild was adviced

http://www.directadmin.com/forum/showthread.php?s=&threadid=4141

and after doing:

./build clean
./build all

That build ended in the following error.

-DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c dns_resolv.c
dns_resolv.c: In function `resolve_dns':
dns_resolv.c:162: warning: long int format, time_t arg (arg 4)
gcc -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_DBOPEN=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c parser.c
gcc -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_DBOPEN=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -c output.c
gcc -I/usr/local/include -Wall -O2 -DETCDIR=\"/etc\" -DHAVE_DBOPEN=1 -DHAVE_ERRNO_H=1 -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHAVE_MATH_H=1 -DUSE_DNS -I/usr/local/include -c graphs.c
gcc -L/usr/local/lib -L/usr/local/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
/usr/local/lib/libgd.so: undefined reference to `libiconv'
*** Error code 1

Stop in /usr/local/directadmin/customapache/webalizer-2.01-10.
-e \n*** The make has failed, do you want to try to make again? (y,n): ^C
wes#


In first look It was maybe not smart to install ImageMagik by installing by tports, but I hould like to get some information to get it running again,

regards,

Mike
a DA/freeBSD newby
 
Last edited:
I could get it working again by changing:

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

to:

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

No I still can't do the full build and I don't know or problems can be expected by the code change as described above.
 
testracer said:
I could get it working again by changing:

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

to:

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

No I still can't do the full build and I don't know or problems can be expected by the code change as described above.

Yes by changed that, it will first check if the module exists, if not it continues (without PHP and parsing sources right out!)


I would recommend checking you're GD version. As it looks like the one it's trying to compile doesn't work. As it stops on Webalizer, don't compile it ;)
 
Back
Top