- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Apache 2.0.43 + PHP 4.2.3
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:33 PM
01-30-2003 04:33 PM
Has anyone successfully compiled apache and php as DSO. I have tried a lot with different version of php,apache,gcc,bison but keep getting "unresolved symbol __uumodi3..
I have gone through a lot of forum links but one really give the exact solution, i have seen for some it works and for some it doesn't. Also i want to add ldap function in php if possible.
Here are the versions of softwares i am using.
gcc 3.2
bison 1.35
binutils 2.11.2
flex 2.5.4
I also tried gnu make (gmake) but no luck.
Lets see what people have got..
Thanks
Rajeev
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:38 PM
01-30-2003 04:38 PM
Re: Apache 2.0.43 + PHP 4.2.3
You have not listed your OS version yet,so recommending things is hard. In general most 11.00 stuff will swinstall in 11.11. But not all.
PHP is integrated into Apache I think. When you search for PHP at software.hp.com, you get apache links back.
Try this apache link, I think it will really help.
apache
https://payment.ecommerce.hp.com/cgi-bin/swdepot_parser.cgi/cgi/try.pl?productNumber=B9416AAPA2043&date=
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:45 PM
01-30-2003 04:45 PM
Re: Apache 2.0.43 + PHP 4.2.3
Thanks for reminding my OS is HP-UX 11.0 32 bit.
Also the problem with the HP's bundled Apache is if you want to make any changes to PHP its of no good. I know it doesn't support Informix i have strugled a lot with HP raised call with them but no good. Also i can't make any changes to the PHP what they are bundling. Thats the reason why i need to compile my own with source code ready so that i can upload any changes i want later on.
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 04:47 PM
01-30-2003 04:47 PM
Re: Apache 2.0.43 + PHP 4.2.3
Thats a real bummer. At least Oracle provides a customized version of Apache with its database and app server.
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 05:06 PM
01-30-2003 05:06 PM
Re: Apache 2.0.43 + PHP 4.2.3
I tried loading the apache depot from HP site(latest) and then downloaded the PHP source code of the same version which is bundled in HP apache and tried to compile as DSO but no luck. If you could give me the link from apache.org about linking i'll try that, it might be of a great help.
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 05:58 PM
01-30-2003 05:58 PM
Re: Apache 2.0.43 + PHP 4.2.3
Here we go....
http://httpd.apache.org/docs/misc/descriptors.html
http://perl.apache.org/embperl.old/Faq.pod.1.html
http://xml.apache.org/cocoon/userdocs/generators/php-generator.html
http://perl.apache.org/docs/1.0/guide/install.html
http://httpd.apache.org/info/css-security/encoding_examples.html
One of these guys might help.
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 06:00 PM
01-30-2003 06:00 PM
Re: Apache 2.0.43 + PHP 4.2.3
http://perl.apache.org/docs/1.0/guide/install.html
P
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 06:40 PM
01-30-2003 06:40 PM
Re: Apache 2.0.43 + PHP 4.2.3
Like..
What i want is to add informix, ldap, ftp, GD etc..functions to PHP which is already loaded as dynamic module. For your information it works as static module which i have tested with apache 1.3.6
I'll award points soon i come closer to some conclusions. but thanks steven for your precsious time.
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 06:44 PM
01-30-2003 06:44 PM
Re: Apache 2.0.43 + PHP 4.2.3
I think this is a support call, if you have a contract. I do think I get what you're trying to do, but its going to be tough.
Don't need any points, sounds like I might have been wasting your time. It was kinda cool to have this conversation almost real time.
It sounds like you need a source code distrubution of apache that you can custom compile your modifications.
The good news is I'd be weilling to bet someone at HP has good source code for HP-UX that you can customize with confidence.
A good example is when I tried to get crack to work on HP-UX. The binaries would not work. The stuff sitting ont he Utah site wouldn't work. I got hold of the copy they actually modified for HP-UX for the Security Class.
Hello HP. Someone help this guy, he's a fellow wizard!!!
P-man
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 07:28 PM
01-30-2003 07:28 PM
Re: Apache 2.0.43 + PHP 4.2.3
I had contacted local HP but they dont have the source code at their hand which i had been after. Then the surprising thing is HP Should not bundle PHP with Apache when they can't support.
Any way i still welcome suggestions from our fellows.
Thanks
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2003 11:20 PM
01-30-2003 11:20 PM
Re: Apache 2.0.43 + PHP 4.2.3
Can I get a copy of the modified crack software for HP-UX 11.00.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 01:27 AM
01-31-2003 01:27 AM
Re: Apache 2.0.43 + PHP 4.2.3
I succeeded to compile PHP as DSO module, but I had to make changes in sources to make it work !!
In this link some explanations :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x531c36e69499d611abdb0090277a778c,00.html
I don't know if the bug is solved now in 4.2.3. (I steal use for production Apache 1.. + 4.2.2), but I posted to php dev team this solution described in the link !!!
Is it possible to get the exact configure line (all the options), by this way I can try to do it on my side to see if I have the same trouble !
The error you get is during make ??
hth
Benoit
______________
"Pour celui qui est heureux de vivre, l'essentiel, s'il est content de l'existence qu'il m??ne, est d'??tre satisfait de son sort."
Pierre Dac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 02:22 AM
01-31-2003 02:22 AM
Re: Apache 2.0.43 + PHP 4.2.3
Before i posted the question i tried your suggestion and was waiting for your reply.
But i am sorry to say after folowing the same steps and modifications, i am not getting any error in configure/make/make install
everything goes fine, just when i start the apachectl i get that unresolved symbol __umodi3 error.
I am following
./configure --prefix=/opt/apache --with-apxs=/opt/apache/bin --enable-track-vars
I dont know where am i going wrong.
Thanks for your help.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:01 AM
01-31-2003 03:01 AM
Re: Apache 2.0.43 + PHP 4.2.3
is it not umoddi3 instead of _uumodi3 ?
If compile+link is OK then your trouble is probably just a library not loaded
From info I found about umoddi3 it's a question of libgcc, try to PRELOAD your libgcc with the proper version before starting Apachectl ??
LD_PRELOAD=
export LD_PRELOAD ?
Tell me if it works ?
I continue to try to find where is used uumodi3 !
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:21 AM
01-31-2003 03:21 AM
Re: Apache 2.0.43 + PHP 4.2.3
but still the same problem. You are right its umoddi3.
I'll try again tomorrow and let you know.
Thanks for your support.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 03:39 AM
01-31-2003 03:39 AM
Re: Apache 2.0.43 + PHP 4.2.3
http://www.phpbuilder.com/mail/php-install/2002121/0029.php
Second what version of gcc do you use ?? from the subject, i can read 3.2, from the lib in your last post is 2.95.2 !
I'm sure that solution is with gcc (from the link above) ...
May be a meijrin (procura) could help you ?? It's more a question about gcc.
For me APache 2.0.39 + PHP 4.2.2 worked !!
I don't remeber gcc version, but it should have been 2.95.2 (I did it on July when gcc 3.1 wasn't stable .
So there's is a solution, the trouble is to find how !!!
The config line you gave is very simple, so the trouble isn't with other software (openldap lib, informix lib...).
If you could give the lines before the error in order to know the exact module involved ... ?? It would be helpfull...
I won't be able to help you tomorrow, because it's W.E. but I'll be back on Monday ! evening for you (I'm in Europe )!!
regards
Benoit
__________
"Pour celui qui est heureux de vivre, l'essentiel, s'il est content de l'existence qu'il m??ne, est d'??tre satisfait de son sort."
Pierre Dac
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 07:22 AM
01-31-2003 07:22 AM
Re: Apache 2.0.43 + PHP 4.2.3
http://bugs.php.net/bug.php?id=16808
hth
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2003 07:40 PM
01-31-2003 07:40 PM
Re: Apache 2.0.43 + PHP 4.2.3
You are right i tried with both the versions of gcc and got the same error.
Today again as you said i tried with gcc 2.95.2
my configure/make/make install went through without any error and my LD_PRELOAD has been set to
LD_PRELOAD=/opt/gcc/lib/gcc-lib/hppa2.0n-hp-hpux11.00/2.95.2
and rest everything was as per steps you gave in that link but when i start the httpd server i.e.
apachectl start i get the following error
# ./apachectl start
Syntax error on line 230 of /opt/apache2/conf/httpd.conf:
Cannot load /opt/apache2/modules/libphp4.so into server: Unresolved symbol: __umoddi3 (code) from /opt/apache
2/modules/libphp4.so I still could not find out where i am going wrong.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 05:54 AM
02-03-2003 05:54 AM
Re: Apache 2.0.43 + PHP 4.2.3
I'm back from W.E. !
I'll try to compile apache+php on my dev server (HP-UX11.00, 32 bits) with gcc2.95.2,
I'll use latest version (Apache2.0.44 + php 4.3.0. I'm not sure that 4.2.3. exists ??
And of course all from sources...
I'll try step by step to see any trouble..
I'll give you the configure command I used to be sure that it's correct.
because the conf line you gave earlier (with-apxs cannot work with Apache2, you have to use with-apxs2 !!), You have also to compile Apache with DSO support !)
hear you later ..
Benoit
_________
"La soci??t?? est divis??e en deux classes : ceux qui ont plus de d??ners que d'app??tit et ceux qui ont plus d'app??tit que de d??ners." Chamfort
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2003 06:23 PM
02-03-2003 06:23 PM
Re: Apache 2.0.43 + PHP 4.2.3
I'll wait for you.
Thanks again
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 10:05 AM
02-04-2003 10:05 AM
Re: Apache 2.0.43 + PHP 4.2.3
I'm not dead , but I didn't find currently the trouble. I made few tests on my dev server, and I have also a trouble (not the same) with the share lib. I think that the trouble is linked with the crypt library needed to compile . I'm trying to find a share version of this lib, or the way to disable it. Same trouble seems to happen with lgcc.
DUring the make step, did you had a warning about share library ??
Other question :
Did you try the make test before the make install (mine was quite good..) ?
Other remark : dso should be enable from the APache sources..(if you httpd -l did you have it installed (mod_so.c))...
I continue test and debug on my side...
I also check and compile is now without error on HP-UX with PHP 4.3.0. (you don't have to patch like described in my first thread).
We will find a solution ... Hope you are not in hurry to solve it !!!
regards
Benoit
__________
"Ah les femmes! Ces animaux sans queue ni tete." Guitry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 05:53 PM
02-04-2003 05:53 PM
Re: Apache 2.0.43 + PHP 4.2.3
Ok I too got warnings during make which are as follows
*** Warning: linker path does not have real file for library -lcrypt.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libcrypt and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/libcrypt.a
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp4. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
And yes i even tried the make test and got the errors which are attached.
Thanks again for your support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 12:44 AM
02-05-2003 12:44 AM
Re: Apache 2.0.43 + PHP 4.2.3
On meeting all the day today ! I won't have a any time to make tests !
About the report, I have the same errors, then it's good !!
About the message, I think that the key is there, I'm searching a way to solve it (remove the crypt or find a way to include dlopen in Apache2)...
I continue ....
regards
Benoit
___________
"Quand mon verre est vide, je me plains. Quand mon verre est plein, je le vide."
Raoul Ponchon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 01:15 AM
02-05-2003 01:15 AM
SolutionI have just made the test before the meeting !
In fact here is the way to proceed :
1 - Apache 2.0.44 ,
./configure --prefix=
--disable-all (doesn't seem to work)
--enable-so
make
make install
edit httpd.conf, change user & group,
apachectl start should be ok !
2 - PHP 4.3.0,
rm config.cache
./configure --with-apxs2=
--without-mysql (to not have any trouble with mysqllibs...if you don't need it of course)
--without-mcrypt
--enable-track-vars
edit the Makefile, and change EXTRA_LIBS, remove -lcrypt (should be 2 times in the scrypt)(and remove also -lgcc if you have it)
make
make install
you should have a libphp4.so in
Change httpd.conf to load libphp4.so at startup (httpd should be stopped before you edit the file if you don't want to be blocked....)
Add also the add type in this file..
in fact the 2 lines are :
LoadModule php4_module modules/libphp4.so
and
AddType application/x-httpd-php .php
create a test file in
content of test.php
try from a browser http://your_apache_server/test.php,
You should have the phpinfo page !!!
The most important is to remove thje warning during the make process.
(to clean all the objects, make distclean is good, or remove all the sources and untar again !!)
I don't know what the crypt lib is used for ??? Hope it's not needed by most of the php functions, I will ask to the php team about it....
Tell me if it works or not....
If all is OK, you can add the ldap and informix (don't forget to edit again the Makefile which is created during the configure script !)
regards
Benoit
____________
"Quand mon verre est vide, je me plains. Quand mon verre est plein, je le vide."
Raoul Ponchon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2003 05:26 PM
02-05-2003 05:26 PM
Re: Apache 2.0.43 + PHP 4.2.3
You know you are champion!!!
I downloaded exactly the same versions you did and followed the steps and it worked.
Thank you very much for your time abd help.
Regards
Rajeev