php-install Digest 20 Mar 2001 13:00:43 -0000 Issue 226 Topics (messages 2512 through 2522): Re: I'm really a principiant in PHP 2512 by: Kris Deugau Configuring Sessions In PHP 2513 by: Eric Pankoke 2516 by: Jason Bell 2517 by: Eric Pankoke Re: Fixed : [PHP-INST] ldap - php 2514 by: DT Re: Got FAQ 6.8 problem 2515 by: Barry Sardis Error while installing php with ldap 2518 by: kate 2519 by: DT 2520 by: Jani Taskinen Not able to install PHP with LDAP 2521 by: Bernd Muent 2522 by: Jani Taskinen Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Marco Sarti wrote: > I would like to know if it's necessary to have Microsoft personal web server > installed on my computer to test my PHP pages before sending them to my > server. No, if you're willing to play with the CGI version of PHP for Win32. Yes, if you want (somewhat) easier site design. I'd recommend Apache for Win32 over PWS though. > Where I can find Microsoft Perosnal web server to download? Start with http://www.microsoft.com. Have fun finding it- Microsoft has changed the layout of their website several times since I last went looking for PWS. (IIRC, Win98 comes with PWS. NT does for certain- except it's sort of a stripped-down IIS instead.) -kgd -- Money is overrated.
I apologize if this already made it to the list, but as far as I can tell it did not. I am trying to use PHP 4.0.4pl1 with Windows 98 SE and Personal Web Server 4.x (not sure exactly which version). So far everything seems good, except when I try to add the line session_start() to a PHP page I get an error. Are there some settings I need to add to php.ini to get this to work? I am using php.exe. Any help that could be offered would be much appreciated. Thank you. Eric
I'm fairly new to this, so I may be wrong, but I believe that you must send the session start before sending any other data to the browser. -- Jason Bell -----Original Message----- From: Eric Pankoke [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 5:21 PM To: [EMAIL PROTECTED] Subject: [PHP-INST] Configuring Sessions In PHP I apologize if this already made it to the list, but as far as I can tell it did not. I am trying to use PHP 4.0.4pl1 with Windows 98 SE and Personal Web Server 4.x (not sure exactly which version). So far everything seems good, except when I try to add the line session_start() to a PHP page I get an error. Are there some settings I need to add to php.ini to get this to work? I am using php.exe. Any help that could be offered would be much appreciated. Thank you. Eric -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
I believe you are right, and near as I can tell the session_start command is the first thing that's getting generated. I must admit I'm fairly new to PHP myself, and from what I've seen in the book I am referencing there is some setup that needs to be done to allow sessions. Unfortunately, the book doesn't go into details about what I need to set up. At 08:00 PM 3/19/01 -0800, Jason Bell wrote: >I'm fairly new to this, so I may be wrong, but I believe that you must send >the session start before sending any other data to the browser. > >-- >Jason Bell > >-----Original Message----- >From: Eric Pankoke [mailto:[EMAIL PROTECTED]] >Sent: Monday, March 19, 2001 5:21 PM >To: [EMAIL PROTECTED] >Subject: [PHP-INST] Configuring Sessions In PHP > > >I apologize if this already made it to the list, but as far as I can tell >it did not. I am trying to use PHP 4.0.4pl1 with Windows 98 SE and >Personal Web Server 4.x (not sure exactly which version). So far >everything seems good, except when I try to add the line session_start() to >a PHP page I get an error. Are there some settings I need to add to >php.ini to get this to work? I am using php.exe. Any help that could be >offered would be much appreciated. Thank you. > >Eric > > >-- >PHP Install Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > >-- >PHP Install Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED]
I updated the etc/ld.so.conf and add the entry /usr/ldap/lib and then ldconfig the system. it works now! thanks! dennis tong wrote: > When installing php with LDAP, i've got this error when restarting > Apache: > > Cannot load /apache/libexec/libphp4.so into server: /apache/li > bexec/libphp4.so: undefined symbol: ldap_value_free > > I'm using OpenLDAP. Can anyone help please? Thanks. > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Not sure if I did it right. gdb output is attached. I rebuilt Apache with a make clean before the make. I added --enable-debug to the PHP ./configure. The httpd.conf only has the PHP module. The seg fault is a result of running apachectl configtest. If I include all modules except PHP and run apachectl configtest I get Syntax okay. "Jani Taskinen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sun, 18 Mar 2001, Barry Sardis wrote: > > >Yes. As noted further into the original message, the httpd.conf works > >(recognizes the extension and processes phpinfo) when I configure it as a > >dynamic module, but then I'm getting core dumps if php is built with either > >pgsql or oci8. > > Could you try creating a gdb backtrace of the crash? > > --Jani > > > > >"Jani Taskinen" <[EMAIL PROTECTED]> wrote in message > >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >> On Fri, 16 Mar 2001, Barry Sardis wrote: > >> > >> >Compiled-in modules: > >> > http_core.c > >> > mod_so.c > >> > mod_php4.c > >> >suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec > >> > > >> >PHP was: > >> >./configure --with-apache=../apache_1.3.19 --with-oci8 --with-pgsql > >> > > >> >I redid it with only --with-apache=../apache_1.3.19 and still httpd is > >not > >> >recognizing the .php extension. The httpd.conf has all LoadModule and > >> >AddModule except dbm_auth and perl. > >> > >> Do you have this: > >> > >> AddType application/x-httpd-php .php > >> > >> > >> ?? > >> > >> --Jani > >> > >> > >> -- > >> PHP Install Mailing List (http://www.php.net/) > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> To contact the list administrators, e-mail: [EMAIL PROTECTED] > >> > > > > > > > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > begin 666 gdb.out M(R!G9&(@+W5S<B]L;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y;6)O;',@9G)O;2 O=7-R+VQI8B]L:6)C+G-O+C$N+BYD;VYE M+@I,;V%D960@<WEM8F]L<R!F;W(@+W5S<B]L:6(O;&EB8RYS;RXQ"E)E861I M;F<@<WEM8F]L<R!F<F]M("]U<W(O;&EB+VQI8FUP+G-O+C(N+BYD;VYE+@I, M;V%D960@<WEM8F]L<R!F;W(@+W5S<B]L:6(O;&EB;7 N<V\N,@I296%D:6YG M('-Y;6)O;',@9G)O;2 O=7-R+VQI8B]L:6)T:')E860N<V\N,2XN+F1O;F4N M"DQO861E9"!S>6UB;VQS(&9O<B O=7-R+VQI8B]L:6)T:')E860N<V\N,0HC M," @,'AD9C@S.#9A."!I;B!?:6YI=" H*2!F<F]M("]U<W(O;&EB+VQI8G1H M<F5A9"YS;RXQ"BAG9&(I(&)T"B,P(" P>&1F.#,X-F$X(&EN(%]I;FET("@I M(&9R;VT@+W5S<B]L:6(O;&EB=&AR96%D+G-O+C$*(S$@(#!X9&9B9F(P,# @ M:6X@/S\@*"D*(S(@(#!X9&9B9&8Q834@:6X@/S\@*"D*(S,@(#!X9&9B9#,Q M83D@:6X@/S\@*"D*(S0@(#!X.# U96(Y."!I;B!A<%]R96%D7V-O;F9I9R H M*0HC-2 @,'@X,#8Y,SDY(&EN(&UA:6X@*"D*(S8@(#!X.# U-S Y9B!I;B!? 1<W1A<G0@*"D**&=D8BD@"@H` ` end
Hi all, I install php with ldap enable as follow, but got some erros.. please help !!!! thanks Kate #./configure --with-ldap # make gcc -I. -I/export/home/kate/source/php-4.0.4pl1/ext/ldap -I/export/home/kate/source/php-4.0.4pl1/main -I/export/home/kate/source/php-4.0.4pl1 -I/export/home/kate/source/php-4.0.4pl1/Zend -I/export/home/kate/source/php-4.0.4pl1/ext/mysql/libmysql -I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmltok -I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmlparse -I/export/home/kate/source/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=12 -g -O2 -c ldap.c && touch ldap.lo ldap.c: In function `_get_lderrno': ldap.c:477: dereferencing pointer to incomplete type ldap.c: In function `php_ldap_do_search': ldap.c:657: dereferencing pointer to incomplete type ldap.c:666: dereferencing pointer to incomplete type ldap.c:675: dereferencing pointer to incomplete type *** Error code 1 make: Fatal error: Command failed for target `ldap.lo' Current working directory /export/home/kate/source/php-4.0.4pl1/ext/ldap *** Error code 1 make: Fatal error: Command failed for target `all-recursive'
Dear Kate, what platform are u using? the default directory is /usr/local/ldap, did u installed ldap to another directory? cheers, dennis kate wrote: > Hi all, > I install php with ldap enable as follow, but got some erros.. please > help !!!! > > thanks > > Kate > > #./configure --with-ldap > > # make > gcc -I. -I/export/home/kate/source/php-4.0.4pl1/ext/ldap > -I/export/home/kate/source/php-4.0.4pl1/main > -I/export/home/kate/source/php-4.0.4pl1 > -I/export/home/kate/source/php-4.0.4pl1/Zend > -I/export/home/kate/source/php-4.0.4pl1/ext/mysql/libmysql > -I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmltok > -I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmlparse > -I/export/home/kate/source/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS > -DXML_BYTE_ORDER=12 -g -O2 -c ldap.c && touch ldap.lo > ldap.c: In function `_get_lderrno': > ldap.c:477: dereferencing pointer to incomplete type > ldap.c: In function `php_ldap_do_search': > ldap.c:657: dereferencing pointer to incomplete type > ldap.c:666: dereferencing pointer to incomplete type > ldap.c:675: dereferencing pointer to incomplete type > *** Error code 1 > make: Fatal error: Command failed for target `ldap.lo' > Current working directory /export/home/kate/source/php-4.0.4pl1/ext/ldap > > *** Error code 1 > make: Fatal error: Command failed for target `all-recursive' > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
You're not giving enough info..platform? ldap libraries used (openldap?) etc. And I tried to address some problems in CVS just a few days ago. So please try with latest CVS snapshot from http://snaps.php.net/ --Jani On Tue, 20 Mar 2001, kate wrote: >Hi all, >I install php with ldap enable as follow, but got some erros.. please >help !!!! > >thanks > >Kate > > >#./configure --with-ldap > ># make >gcc -I. -I/export/home/kate/source/php-4.0.4pl1/ext/ldap >-I/export/home/kate/source/php-4.0.4pl1/main >-I/export/home/kate/source/php-4.0.4pl1 >-I/export/home/kate/source/php-4.0.4pl1/Zend >-I/export/home/kate/source/php-4.0.4pl1/ext/mysql/libmysql >-I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmltok >-I/export/home/kate/source/php-4.0.4pl1/ext/xml/expat/xmlparse >-I/export/home/kate/source/php-4.0.4pl1/TSRM -D_POSIX_PTHREAD_SEMANTICS >-DXML_BYTE_ORDER=12 -g -O2 -c ldap.c && touch ldap.lo >ldap.c: In function `_get_lderrno': >ldap.c:477: dereferencing pointer to incomplete type >ldap.c: In function `php_ldap_do_search': >ldap.c:657: dereferencing pointer to incomplete type >ldap.c:666: dereferencing pointer to incomplete type >ldap.c:675: dereferencing pointer to incomplete type >*** Error code 1 >make: Fatal error: Command failed for target `ldap.lo' >Current working directory /export/home/kate/source/php-4.0.4pl1/ext/ldap > >*** Error code 1 >make: Fatal error: Command failed for target `all-recursive' > > > >
It seems that the ldap-functions are not integrated into PHP4 as a standard. When I start a php-Page with an ldap_connect etc. in it, the Error: Undefined Function ldapbind occurs.. Then I went to my PHP-Sourcecode-Directory and did: ./configure --with-ldap make make install Everything was fine without any error. durchgeführt. But it still doesn't work. What to do. Is it neccessary to recompile Apache?. I`m using Suse Linux 7.0 and Apache 1.3.19 Thank you for some tips, Bernd -- Bernd Münt euroscript Language Services GmbH Abteilung Internet/Neue Medien Dieffenbachstr. 33 10967 Berlin Durchwahl: 030/69032-509 Zentrale: 030/69032-300 Fax: 030/69043-402 Mail: [EMAIL PROTECTED] ---------------------------------------
On Tue, 20 Mar 2001, Bernd Muent wrote: >It seems that the ldap-functions are not integrated into PHP4 as a standard. No. They need external libraries to work. e.g. OpenLDAP. (www.openldap.org) >When I start a php-Page with an ldap_connect etc. in it, the Error: >Undefined Function ldapbind occurs.. >Then I went to my PHP-Sourcecode-Directory and did: >./configure --with-ldap You created a CGI binary this way. What you should do, is to add --with-apxs into your configure line. And delete config.cache before configure..and after configure do 'make clean ; make ; make install' And you do have the openldap libraries installed in your system? --Jani