Site Admin
|
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) |
||||||||||||
|
PHP with apache 2.2.14 |
|
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! |
||||||||||||
|
db.so-5.1.x: undefined symbol: OnUpdateLong |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by