Re: Apache php weird problem

2009-06-16 Thread MANI
thanks a lot joachim, that did the trick. On 6/16/09, Joachim Schipper wrote: > On Tue, Jun 16, 2009 at 03:07:01PM +0430, MANI wrote: >> yes! I'm running -current ( snapshot June 6 ). sorry I didn't saw >> 2009/06/03 httpd ABI change, So I should build php from port tree? > > Or use a -current pa

Re: Apache php weird problem

2009-06-16 Thread Joachim Schipper
On Tue, Jun 16, 2009 at 03:07:01PM +0430, MANI wrote: > yes! I'm running -current ( snapshot June 6 ). sorry I didn't saw > 2009/06/03 httpd ABI change, So I should build php from port tree? Or use a -current package. I don't know what architecture you are on, but ftp.openbsd.org has php5-core-5.2

Re: Apache php weird problem

2009-06-16 Thread MANI
yes! I'm running -current ( snapshot June 6 ). sorry I didn't saw 2009/06/03 httpd ABI change, So I should build php from port tree? here is my dmesg: OpenBSD 4.5-current (GENERIC.MP) #45: Sat Jun 6 13:35:06 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: I

Re: Apache php weird problem

2009-06-16 Thread MANI
No, my httpd.conf file configured with AddType and LoadModule for php correctly, and I don't get source code in browser, I just get a blank page and a segmentation fault in error_log. I tried to browse index.php with lynx instead of firefox, lynx returned following error: Looking up 127.0.0.1 Mak

Re: Apache php weird problem

2009-06-16 Thread Joachim Schipper
On Tue, Jun 16, 2009 at 02:07:33PM +0430, MANI wrote: > First of all thanks for the clues. Are you, perchance, running -current? The http ABI was changed (http://www.openbsd.org/faq/current.html#20090603), and you appear to be running a port from -stable. (Which is not guaranteed to work, and does

Re: Apache php weird problem

2009-06-16 Thread MANI
First of all thanks for the clues. On 6/16/09, Richard Toohey wrote: > On 16/06/2009, at 7:08 PM, Richard Toohey wrote: > >> [1] the index.php is really in /var/www/conf? No, it was another typo in mail, It's in /var/www/htdocs. >> [2] you meant the index.php not to be valid PHP? No > > on

Re: Apache php weird problem

2009-06-16 Thread Richard Toohey
On 16/06/2009, at 7:44 PM, Richard Toohey wrote: [7] Did you really mean to install php5-mysql and mysql-SERVER? You might have meant mysql-CLIENT - makes more sense. D'oh! More sending without thinking first - installing php5-mysql should have pulled in mysql-CLIENT automatically. That's eno

Re: Apache php weird problem

2009-06-16 Thread Richard Toohey
On 16/06/2009, at 3:22 PM, MANI wrote: # cd /var/www/conf # vi index.php 1 2 PHP Test Page! 3 4 Hello PHP! 5 6 [cut] browsing to http://127.0.0.1/index.html shows *It Worked!* default page. browsing to http://127.0.0.1/index.php will shows a blank page, when I v

Re: Apache php weird problem

2009-06-16 Thread Richard Toohey
On 16/06/2009, at 7:08 PM, Richard Toohey wrote: On 16/06/2009, at 3:22 PM, MANI wrote: # cd /var/www/conf # vi index.php 1 2 PHP Test Page! 3 4 Hello PHP! 5 6 [cut] browsing to http://127.0.0.1/index.html shows *It Worked!* default page. browsing to http://127.

Re: Apache php weird problem

2009-06-15 Thread MANI
On Tue, Jun 16, 2009 at 7:52 AM, MANI wrote: > # apachectl stop > # tail -f /var/www/logs & > # apachectl start > # > 3 > 4 Hello PHP! > 5 > 6 > > # apachectl stop > # tail -f /var/www/logs & > # apachectl start > > Sorry mistype I mean: # apachectl stop # tail -f /var/www/