I know segfaults are the most ambigious to deal with and I apologize for that... However this has been killing me...
I'm running Ubuntu 6,06 and have installed apache2, php5 (and all supporting packages) via apt-get. I downloaded ming-0.3.0 as well as ming-php_ext-0.3.0 from sf, compiled both and installed them in to the appropriate directories (/usr/lib, /usr/include).
I also installed the php_ming.so object and added the extension=php_ming.so at the end of my php.ini file. Any time my PHP page tries to execute any Ming functions apache reports the following error (which I'm assuming is from PHP):
[Wed Oct 11 08:55:41 2006] [notice] child pid 5118 exit signal Segmentation fault (11)
I created a simple C app that accesses a few of the libming functions and that works without any problems. So this leads me to believe that the problem really is within php_ming.so yet I cannot figure out how to debug it.
Has anyone see this before or are there any suggestions on how to resolve this? Thanks for any/all help.
Getting Ming to work with PHP5
Moderator: General Moderators
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
Looks like a known problem with PHP5:
http://www.opaque.net/wiki/index.php?Mi ... llProblems
You might try the development version:
http://prdownloads.sourceforge.net/ming/
If you get it working I sure like to know how.
http://www.opaque.net/wiki/index.php?Mi ... llProblems
You might try the development version:
http://prdownloads.sourceforge.net/ming/
If you get it working I sure like to know how.
I was able to get it to work and here's what I did. I think I went a long way to solve a simple problem (which I'll describe) but I think I needed to simply install php5-cgi (using apt-get) and then put my extension=ming.so in there. I have been putting the extension reference in /etc/php5/apache2/php.ini and that was segfaulting. See below for the "long" way to solve it.
I'm running Ubuntu 6.06 and initially installed apache2 and php5 via apt-get. I found this:
http://packages.dotdeb.org/dists/stable ... nary-i386/
which has all of the packages for php-5.1.6 (latest version) including a package for php-ming. apt-get installed php-5.1.2 so trying to dpkg php5-ming didn't work, I had to download the following:
libapache2-mod-php5
php5-cgi
php5-common
php5-dev
php5-ming
php5-pgsql (for my development)
php5_5.1.6
I installed these packages using dpkg, noticed that extension=ming.so was put into the /etc/php5/cgi/php.ini file and NOT in /etc/php5/apache2/php.ini. Poof - it worked! Now my pgsql stuff doesn't work but I'll figure that one out, I'm sure I'm missing a reference to it somewhere.
Let me know if what I wrote doesn't make sense, I can try to explain better if needed.
I'm running Ubuntu 6.06 and initially installed apache2 and php5 via apt-get. I found this:
http://packages.dotdeb.org/dists/stable ... nary-i386/
which has all of the packages for php-5.1.6 (latest version) including a package for php-ming. apt-get installed php-5.1.2 so trying to dpkg php5-ming didn't work, I had to download the following:
libapache2-mod-php5
php5-cgi
php5-common
php5-dev
php5-ming
php5-pgsql (for my development)
php5_5.1.6
I installed these packages using dpkg, noticed that extension=ming.so was put into the /etc/php5/cgi/php.ini file and NOT in /etc/php5/apache2/php.ini. Poof - it worked! Now my pgsql stuff doesn't work but I'll figure that one out, I'm sure I'm missing a reference to it somewhere.
Let me know if what I wrote doesn't make sense, I can try to explain better if needed.
- Buddha443556
- Forum Regular
- Posts: 873
- Joined: Fri Mar 19, 2004 1:51 pm
same problem...
Hi,
I am very interested in this conversation (hope I'm not too late...) because I have the same problem: I can't get ming to work with php5.
I installed the debian packages:
ii php5-ming 5.2.0-0.dotdeb Ming module for php5
ii libming 0.3-0.dotdeb.0 Library to generate SWF (Flash) Files
in my php.in I have: extension=ming.so (done at the intallation of php5_ming)
when I restart apache2 I get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/ming.so' - libming.so: cannot open shared object file:
No such file or directory in Unknown on line 0
and the libraries are here :
ls -al /usr/lib/php5/20060613/*ming.so
-rwxr-xr-x 1 root root 1003279 2006-11-06 18:11 /usr/lib/php5/20060613/libming.so
-rw-r--r-- 1 root root 99036 2006-11-04 00:06 /usr/lib/php5/20060613/ming.so
I have seen this error in a few messages on the web, but I didn't find the answer...
It is the first time that I have this kind of problem with a php5 package. I am trying to sort it out since yesterday morning but don't understand....
Thanks very much in advance for any idea ...
PLao
I am very interested in this conversation (hope I'm not too late...) because I have the same problem: I can't get ming to work with php5.
I installed the debian packages:
ii php5-ming 5.2.0-0.dotdeb Ming module for php5
ii libming 0.3-0.dotdeb.0 Library to generate SWF (Flash) Files
in my php.in I have: extension=ming.so (done at the intallation of php5_ming)
when I restart apache2 I get:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/ming.so' - libming.so: cannot open shared object file:
No such file or directory in Unknown on line 0
and the libraries are here :
ls -al /usr/lib/php5/20060613/*ming.so
-rwxr-xr-x 1 root root 1003279 2006-11-06 18:11 /usr/lib/php5/20060613/libming.so
-rw-r--r-- 1 root root 99036 2006-11-04 00:06 /usr/lib/php5/20060613/ming.so
I have seen this error in a few messages on the web, but I didn't find the answer...
It is the first time that I have this kind of problem with a php5 package. I am trying to sort it out since yesterday morning but don't understand....
Thanks very much in advance for any idea ...
PLao
solution
I am answering my own message...sorry...but this one can be VERY usefull I think, I have seen so much messages about ming not working with php5...
So if you want to use PHP5.2.0-0.dotdeb (and cie, maybe...) and Ming and you have this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/ming.so' - libming.so: cannot open shared object file: No such file or directory in Unknown on line 0
Then go to /usr/lib and look for libming.so*
you will have something like
lrwxrwxrwx 1 root root 19 2006-11-07 17:13 libming.so.0 -> libming.so.0.3beta1
-rw-r--r-- 1 root root 270224 2005-06-17 06:52 libming.so.0.3beta1
but not libming .so
so just add the link: ln -s libming.so.0.3beta1 libming.so
and it works.....
...2 days for that one....end of thread
So if you want to use PHP5.2.0-0.dotdeb (and cie, maybe...) and Ming and you have this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613/ming.so' - libming.so: cannot open shared object file: No such file or directory in Unknown on line 0
Then go to /usr/lib and look for libming.so*
you will have something like
lrwxrwxrwx 1 root root 19 2006-11-07 17:13 libming.so.0 -> libming.so.0.3beta1
-rw-r--r-- 1 root root 270224 2005-06-17 06:52 libming.so.0.3beta1
but not libming .so
so just add the link: ln -s libming.so.0.3beta1 libming.so
and it works.....
...2 days for that one....end of thread