PHP - Adding more than buildapache offers?

JustinK

Well-Known Member
Sep 4, 2001
251
0
316
Can anyone share how one might enable additional modules/program for use with php manually using buildapache.sea? I was reading through an old post on how to do it, but I believe the file structure of the build has been changed slightly and I don't want to mess up the build at all by editing the wrong file.
 

JustinK

Well-Known Member
Sep 4, 2001
251
0
316
Anyone? I don't like bumping threads, but I need to know how to do this without killing something in the process. Just have to add in an extra --with-something to the php compile. Looked through the previous instructions, but with the current file structure for the buildapache directory, the file said to be edited doesn't seem to be the one to edit anymore.
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
What we do is build whatever it is we're adding (pdflib, for instance), then drill down into the php-4.x.x folder:

rm config.cache -f
make clean

Then

./configure (--with-options)
make
make install

Restart apache.
Done.
 

JustinK

Well-Known Member
Sep 4, 2001
251
0
316
ooh... that's much simpler than going through the whole build. :) Thank you for your time Annette. I know you're busy there.
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
Sure - always happy to help.
 

gmarton

Member
Jan 26, 2003
22
0
151
Hi,
When I try to do the above i get an error:
php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

I looked into that problem, changed the --with-mysql to --with-mysql=/usr and it creates apache problems.

I'm back to square one. Luckily I backed up libphp4.so and also /scripts/easyapache has no problem recompilionh php. Btw easyapache does configure php with only --with-mysql

All I want to do is add pdflib.
Anyone has the same issue?

TIA
 

sexy_guy

Well-Known Member
Mar 19, 2003
847
0
166
Originally posted by JustinK
ooh... that's much simpler than going through the whole build. :) Thank you for your time Annette. I know you're busy there.
Busy? What is she/he busy with?
 

thomas

Well-Known Member
Mar 31, 2002
70
0
306
Originally posted by gmarton
Hi,
When I try to do the above i get an error:
php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dangerous, better use `mkstemp'

I looked into that problem, changed the --with-mysql to --with-mysql=/usr and it creates apache problems.

I'm back to square one. Luckily I backed up libphp4.so and also /scripts/easyapache has no problem recompilionh php. Btw easyapache does configure php with only --with-mysql

All I want to do is add pdflib.
Anyone has the same issue?

TIA

Had the same problem, Annette helped me with that.


Originally posted by Annette
You received that at the very end of the make? Ignore it. It's a warning only and does not affect make install.
So, stick to --with-mysql and just run 'make install' after that warning.
 

gmarton

Member
Jan 26, 2003
22
0
151
Done that, It crashed apache causing cpanel sending me emails until i ran /scripts/easyapache.

I tried the php source in buildapache and also downloaded it to a different locationsso I could always resort to easyapache.

The odd thing is that easyapache has no problem compiling it, it only has this problem doing it manually.

PHP folks know about this:
http://www.php.net/manual/en/faq.build.php#faq.build.mysql.tempnam

They say its a warning and everything should work fine. It does not work for me.

All I want to do is have pdflib.
Thanks
 

Hoster2k

Well-Known Member
Jun 17, 2002
131
0
166
UK
Originally posted by sexy_guy
Busy? What is she/he busy with?
You seem to have a problem sexy_guy. Why do you make un-called for remarks?

cPanel.net Support Ticket Number: