NuSphere Forums Forum Index
NuSphere Forums
Reply to topic


Joined: 04 Aug 2006
Posts: 1
Reply with quote
ddmitrie wrote:
Compile without thread manager and it will work (with apache pre-fork of course).


Well, I downloaded the evaluation version of phpED and have the same error as mentioned above. But I don't find any valuable information about "compiling without thread manager" either. Please, could you write some details, what configure-options to use or what to do? Or perhaps you have a link to a "how-to page"?

Kind regards

Stefan
View user's profileFind all posts by sgallasSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Dear Stefan,
from what you said it's impossible to get what you did and why you have got the message.
Would you please shed more light by providing more details on the issue? In particual it's necessary to list the followings:

-server software and hardware (if server is used)
-client software and hardware (client platform)
-IDE
-php version
-php modules
-php debugger version
-php debugger filename
-php debugger distribution (source where your downloaded it)
View user's profileFind all posts by dmitriSend private messageVisit poster's website
PHP with apache 2.2.14


Joined: 22 Dec 2009
Posts: 1
Reply with quote
Today I took up the tough project of installing PHP on my machine.

After close to 7 hours of struggling I finally did it!

It feels great.

Apache

apache version I am using: 2.2.14

The source dir name reads as /usr/local/apache2/ - I downloaded httpd-2.2.14 in /home/arun/, which is my home directory. The corresponding apache directory is /usr/local/apache2/. (After running configure, make, make install.)


PHP

After that - do not install PHP 5.3. The stupid thing gave me problems with OnUpdateLong when I tried to re-start apache (with apachectl).

(I spent close to 4 hours trying to fix this. Learnt from google search that using "nm libphp5.so" you can see which symbols are actually valid. You can find libphp5.so in /home/arun/php-5.x.x/libs/ directory after running configure. I ran
"nm libphp5.so | grep OnUpdateLong"
to find to my shock that it said
"U OnUpdateLong"
which means OnUpdateLong is undefined!!!
What the heck, PHP 5.3 guys??? )


So download and configure PHP 5.2 with the following command:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-xml --with-mysql --enable-versioning

(--with-xml and --with-mysql are optional and I needed them.)

If you untarred it in /home/arun/php-5.2.12/ then run this configure there.

Then type

make
make install


To check whether you have installed PHP properly, you can check the /usr/local/apache2/modules/ directory. If you find a file named libphp5.so, then it is fine.


httpd.conf

Then you need to edit your httpd.conf file to tell apache to run PHP. (else it will display the PHP scripts as text and not interpret as PHP).

To do this you add in /usr/local/apache2/conf/httpd.conf the following two lines (where there are other similar LoadModule and AddType):

LoadModule php5_module modules/libphp5.so

AddType application/x-httpd-php .php


Restart apache


Then you re-start apache using

/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start

and apache should restart without any errors.

Then you can use php with apache and have fun!


Evil or Very Mad
View user's profileFind all posts by arunrangarajanSend private message
db.so-5.1.x: undefined symbol: OnUpdateLong
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 2 of 2  

  
  
 Reply to topic