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 1html 2 headPHP Test Page!/head 3 body 4 Hello PHP! 5 /body 6 /html [cut] browsing to http://127.0.0.1/index.html shows *It Worked!* default

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 1html 2 headPHP Test Page!/head 3 body 4 Hello PHP! 5 /body 6 /html [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

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

Re: Apache php weird problem

2009-06-16 Thread MANI
First of all thanks for the clues. On 6/16/09, Richard Toohey richardtoo...@paradise.net.nz 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

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

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

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:

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

Re: Apache php weird problem

2009-06-16 Thread MANI
thanks a lot joachim, that did the trick. On 6/16/09, Joachim Schipper joac...@joachimschipper.nl 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?

Apache php weird problem

2009-06-15 Thread MANI
Hi misc, #uname -a OpenBSD agent47.bsd.org 4.5 GENERIC.MP#45 i386 # pkg_add -v php5-core # pkg_add -v mysql-server-5.0.77 # pkg_add -v php5-mysqli-5.2.8 in /var/www/conf/httpd.conf : *Include /var/www/conf/modules/*.conf* in /var/www/conf/modules/php5.conf -

Re: Apache php weird problem

2009-06-15 Thread MANI
On Tue, Jun 16, 2009 at 7:52 AM, MANI mm.m...@gmail.com wrote: # apachectl stop # tail -f /var/www/logs # apachectl start # 3 body 4 Hello PHP! 5 /body 6 /html # apachectl stop # tail -f /var/www/logs # apachectl start Sorry mistype I mean: # apachectl stop #