I'm not sure if "make phpmod-install" will work. I think you need to do the "make phpmod", and then copy the file to the "ESL.so" file to the php modules folder for you OS.<div><br></div>
<div>On my RHEL 5.5 i386, it is /usr/lib/php/modules/ESL.so</div><div><br></div><div>Can you confirm if you see the error with just "make phpmod" as on the wiki?</div><div><br></div><div>Regards</div><div>HASSAN</div>
<div><br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 12:39, jesse <span dir="ltr"><<a href="mailto:chat2jesse@gmail.com">chat2jesse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
HASSAN:<br>
<br>
my pasted error message in the previous e-mail was generated from<br>
: make phpmod-install.<br>
<font color="#888888"><br>
-jesse<br>
</font><div><div></div><div class="h5"><br>
On Tue, Aug 24, 2010 at 6:12 PM, Nyamul Hassan <<a href="mailto:mnhassan@usa.net">mnhassan@usa.net</a>> wrote:<br>
> * enter the <fs src>/libs/esl directory<br>
> * run "make"<br>
> * run "make phpmod"<br>
> If you face error in any step above, then please output the "full output"<br>
> into<br>
> <a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a><br>
> and let us know the pastebin link.<br>
> Regards<br>
> HASSAN<br>
><br>
> On Wed, Aug 25, 2010 at 06:07, jesse <<a href="mailto:chat2jesse@gmail.com">chat2jesse@gmail.com</a>> wrote:<br>
>><br>
>> during installation:<br>
>><br>
>> make[1]: Entering directory `/tmp/freeswitch/libs/esl/php'<br>
>> make[1]: Nothing to be done for `all'.<br>
>> make[1]: Leaving directory `/tmp/freeswitch/libs/esl/php'<br>
>> make -C php install<br>
>> PHP Warning: PHP Startup: ESL: Unable to initialize module<br>
>> Module compiled with module API=20090626, debug=0, thread-safety=0<br>
>> PHP compiled with module API=20060613, debug=0, thread-safety=0<br>
>> These options need to match<br>
>> in Unknown on line 0<br>
>> make[1]: Entering directory `/tmp/freeswitch/libs/esl/php'<br>
>> cp ESL.so /usr/lib/php5/20060613<br>
>> cp ESL.php /usr/share/php<br>
>><br>
>> Then when I open the PHP script from browser, I always get<br>
>><br>
>> Unable to initialize module Module compiled with module API=20090626,<br>
>> debug=0, thread-safety=0 PHP compiled with module API=20060613,<br>
>> debug=0, thread-safety=0 These options need to match in<br>
>> /usr/share/php/ESL.php on line 23<br>
>><br>
>> any one is good at PHP can fix this issue? I guess the root cause is<br>
>> that I have two PHP installed and my system is totally messed. I<br>
>> tried to remove the new php installation, but still the same result.<br>
>><br>
>><br>
>><br>
>> On Tue, Aug 24, 2010 at 4:56 PM, Nyamul Hassan <<a href="mailto:mnhassan@usa.net">mnhassan@usa.net</a>> wrote:<br>
>> > I got my phpmod installed and working great! Did you follow:<br>
>> > <a href="http://wiki.freeswitch.org/wiki/Esl#Installation" target="_blank">http://wiki.freeswitch.org/wiki/Esl#Installation</a>?<br>
>> > Please mention at which steps you're seeing an error.<br>
>> > Regards<br>
>> > HASSAN<br>
>> ><br>
>> ><br>
>> > On Wed, Aug 25, 2010 at 05:42, jesse <<a href="mailto:chat2jesse@gmail.com">chat2jesse@gmail.com</a>> wrote:<br>
>> >><br>
>> >> the wiki page <a href="http://wiki.freeswitch.org/wiki/Mod_php" target="_blank">http://wiki.freeswitch.org/wiki/Mod_php</a> says :<br>
>> >><br>
>> >> At some point before July 8, 2009, mod_php was removed from the trunk.<br>
>> >> There don't appear to be any concrete plans to reintroduce mod_php, so<br>
>> >> if you'd like to use PHP with FreeSWITCH, use the PHP Event Socket or<br>
>> >> the PHP ESL library.<br>
>> >><br>
>> >><br>
>> >> On Mon, Aug 23, 2010 at 4:41 PM, Anthony Minessale<br>
>> >> <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>
>> >> > We never have had PHP in our code distribution.<br>
>> >> ><br>
>> >> ><br>
>> >> > On Mon, Aug 23, 2010 at 4:39 PM, jesse <<a href="mailto:chat2jesse@gmail.com">chat2jesse@gmail.com</a>> wrote:<br>
>> >> >> The current FS version doesn't include source code for PHP.<br>
>> >> >> What are the steps to install it on top of my current version?<br>
>> >> >> where<br>
>> >> >> to get the source? how to build and install?<br>
>> >> >><br>
>> >> >> Iif you guys want to keep the new system slim by get rid of PHP,<br>
>> >> >> please at least keep a doc about how to add it in case of need.<br>
>> >> >><br>
>> >> >> thanks!<br>
>> >> >><br>
>> >> >> -jesse<br>
>> >> >><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>