SHSaeed

Well-Known Member
May 9, 2002
243
0
316
Hi,

I tried earlier to install PHP with mcrypt and Curl-SSL but the install kept failing. Is there anything I need to do before choosing those features in the advanced section of easyapache?
 

jimcarter

Well-Known Member
Jun 30, 2002
152
0
166
UK
you shouldnt need to do anything before installing extra modules,
what error message do you get?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
What OS and what version are you running? And whats the error?
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
It's a RH6.2 machine. Here's the error I get...

[quote:7a6b763b53]./.libs/libphp4.a(php_imap.lo): In function `zm_startup_imap':
/home/cpapachebuild/buildapache/php-4.2.3/ext/imap/php_imap.c:444: undefined reference to `ssl_onceonlyinit'
collect2: ld returned 1 exit status
make[1]: ***
PHP:
 Error 1
make[1]: Leaving directory `/home/cpapachebuild/buildapache/php-4.2.3'
make: *** [install-recursive] Error 1


httpd has failed, please contact the sysadmin.[/quote:7a6b763b53]
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
Hmm.. I unchecked IMAP support and it installed without any problems. 2 problems now...

1. I need IMAP support
2. Curl does not work although I selected Curl with SSL support in the advanced options
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
I've got Curl working with SSL now, but IMAP support still doesn't want to work :(

I tired reinstalling using easyapache and this time I tried PHP 4.2.2 and still same problem...

[quote:5daac6f99e]Making install in .
make[1]: Entering directory `/home/cpapachebuild/buildapache/php-4.2.2'
/bin/sh /home/cpapachebuild/buildapache/php-4.2.2/libtool --silent --mode=link gcc -I. -I/home/cpapachebuild/buildapache/php-4.2.2/ -I/home/cpapachebuild/buildapache/php-4.2.2/main -I/home/cpapachebuild/buildapache/php-4.2.2 -I/home/cpapachebuild/buildapache/php-4.2.2/Zend -I/home/cpapachebuild/buildapache/gd-2.0.4 -I/usr/include/imap -I/home/cpapachebuild/buildapache/php-4.2.2/ext/mysql/libmysql -I/home/cpapachebuild/buildapache/php-4.2.2/ext/xml/expat -I/home/cpapachebuild/buildapache/php-4.2.2/TSRM -g -O2 -o php -export-dynamic stub.lo libphp4.la
./.libs/libphp4.a(php_imap.lo): In function `zm_startup_imap':
/home/cpapachebuild/buildapache/php-4.2.2/ext/imap/php_imap.c:430: undefined reference to `ssl_onceonlyinit'
collect2: ld returned 1 exit status
make[1]: ***
PHP:
 Error 1
make[1]: Leaving directory `/home/cpapachebuild/buildapache/php-4.2.2'
make: *** [install-recursive] Error 1[/quote:5daac6f99e]

I get this error at the end of the installation. It give me the warning messages...

[quote:5daac6f99e]+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You will be compiling the CGI version of PHP without any           |
| redirection checking.  By putting this cgi binary somewhere in     |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See        |
| http://www.php.net/manual/security.php for more details.           |
+--------------------------------------------------------------------+
|                        *** WARNING ***                             |
|                                                                    |
| You chose to compile PHP with the built-in MySQL support.  If you  |
| are compiling a server module, and intend to use other server      |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0,         |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and   |
| instead build it with your local MySQL support files, by adding    |
| --with-mysql=/path/to/mysql to your configure line.                |
+--------------------------------------------------------------------+[/quote:5daac6f99e]

...and then does a lot of make[X] (where X is a number) lines and that's when I get the error.

Any ideas?
 

paul-ukhost

Well-Known Member
Sep 2, 2002
49
0
156
I am having the same problem with redhat 7.2, it seems to work ok though on one of my 7.3 machines :(
 

Tim Greer

Well-Known Member
Aug 11, 2002
59
0
156
You need to remove the --with-imap-ssl option in the buildscript, or build uw-imap with SSL.
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
Here are the lines for IMAP...

[quote:97cb3dbcbb]
if [ &1& = &1& ]; then
echo -n &Untarring imap....&
/scripts/ensurerpm imap-devel
/scripts/ensurerpm imap-uw
if [ -e &/usr/local/libexec& ] ; then
cp -f /usr/local/cpanel/3rdparty/bin/imapd /usr/local/libexec
fi
if [ -e &/usr/lib/libc-client.a& ]; then
(cd /usr/lib;ln -s libc-client.a c-client.a)
fi
if [ &`grep ssl /usr/lib/libc-client.a 2&/dev/null`& = && ]; then
export WITHIMAP=&--with-imap&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
else
export WITHIMAP=&--with-imap [b:97cb3dbcbb]--with-imap-ssl[/b:97cb3dbcbb]&
if [ -e /etc/krb5.conf ]; then
WITHIMAP=&$WITHIMAP --with-kerberos&
fi
fi
[/quote:97cb3dbcbb]

What we need to do is remove the [b:97cb3dbcbb]--with-imap-ssl[/b:97cb3dbcbb] and run ./buildscript ... Am I correct?
 

Tim Greer

Well-Known Member
Aug 11, 2002
59
0
156
What we need to do is remove the [b:39a4904d3b]--with-imap-ssl[/b:39a4904d3b] and run ./buildscript ... Am I correct?[/quote]

Yes, that is correct. But be sure to remove the previous PHP source, as this autoinstall does not offer a make clean/distclean option and thus you will have the previous build (with the option you need to remove) still configured from the last build. You should then be okay. You, of course, can always still consider building wu-imap with SSL support to fix this problem as well.
 

SHSaeed

Well-Known Member
May 9, 2002
243
0
316
Thank you Tim, I removed --with-imap-ssl and it installed without any problems.
 

Tim Greer

Well-Known Member
Aug 11, 2002
59
0
156
Good deal. I believe this is fixed in the newest apachebuild script and you should be able to compile it with this option again. I know I was able to without making any modifications, but it was also a new server install I did the other day and didn't have any preexisting installations that it might be conflicting with to cause the above problem.