Re: PHP not working
Maan Jee wrote: Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps Thanks vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi, You need to add index.php to the DirectoryIndex line in /usr/local/etc/apache22/httpd.conf It should look like DirectoryIndex index.html index.php Hope this helps. Sincerely, Duane Whitty -- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not working
Maan Jee wrote: Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps Also make sure there are no spaces in .php and .phps in the above lines --Duane Thanks vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not working
On Sun, 14 May 2006 09:42:22 +0200, Maan Jee wrote Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps There must not be a space in your application type .../x-httpd-... Robert -- Dr. Robert Eckardt---[EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not working
On 5/14/06, Maan Jee [EMAIL PROTECTED] wrote: Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps Once modified the httpd.conf file you must restart apache. As root: apachectl restart don't forget add enable_apache2=YES to /etc/rc.conf regards. -- Linux is for people who hate Micro$oft. BSD is for people who love Unix ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not working
On Sunday 14 May 2006 03:32, Pablo Mora wrote: On 5/14/06, Maan Jee [EMAIL PROTECTED] wrote: Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps Once modified the httpd.conf file you must restart apache. As root: apachectl restart don't forget add enable_apache2=YES to /etc/rc.conf regards. i would back up one step, and make sure that you have the file /usr/local/libexec/apache/libphp5.so. currently as of port version php5-5.1.4, this required component does not automatically compile. also after that, make sure that you added index.php to the DirectoryIndex line. jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: PHP not working
New in 6.1 the port group decided to change the default which activates the include of php4/5 for apache. I agrees this was a very stupid thing to do as it now is causing all the apache/php users to change the way they have installed php5 in the past. It's my understanding that php4 php5 packages can no longer be used to install php for apache. You have to use the port version of php4 or php5 and first do a make config and select the apache option and then do make install. If you think it was stupid for the ports group to change the default in 6.1 then post a email to [EMAIL PROTECTED] and let them know how you feel about this. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Duane Whitty Sent: Sunday, May 14, 2006 3:55 AM To: Maan Jee Cc: freebsd-questions@freebsd.org Subject: Re: PHP not working Maan Jee wrote: Hello, I have installed Apache HTTP Server 2.20 and PHP 5. But when I want to open index.php file in the browser instead of getting the Output Html page, I get SAVE index.php file popup. What is the wrong, I have added these lines in httpd.conf AddType application/x- httpd-php . php AddType application/x- httpd-php-source . phps Also make sure there are no spaces in .php and .phps in the above lines --Duane Thanks vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP not working
On 5/14/06, fbsd [EMAIL PROTECTED] wrote: New in 6.1 the port group decided to change the default which activates the include of php4/5 for apache. I agrees this was a very stupid thing to do as it now is causing all the apache/php users to change the way they have installed php5 in the past. It's my understanding that php4 php5 packages can no longer be used to install php for apache. You have to use the port version of php4 or php5 and first do a make config and select the apache option and then do make install. If you think it was stupid for the ports group to change the default in 6.1 then post a email to [EMAIL PROTECTED] and let them know how you feel about this. I don't believe that is stupid. In fact, freebsd's users should have the capacity to think the first time and later not. I Now remember that is make config in /usr/ports/lang/php4[5]. I will not forget this! -- Linux is for people who hate Micro$oft. BSD is for people who love Unix ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP stopped working :(
On Sun, Nov 20, 2005 at 09:31:32PM -0500, Matt Singerman wrote: Hi, I am going to try a make clean and see how that works. I already tried it, though, so I am not too hopeful at this point. The fact that sq. mail isn't loading is the very problem. PHP page aren't working correctly. I am not seeing any relevant errors in httpd-errors. PHP 4.4.1 had a problem with Squirrelmail, check there: freebsd-questions@freebsd.org http://squirrelmail.org/ PHP developers released PHP 4.4.1 version on 2005-10-31. Security fixes introduced bug, which affects three SquirrelMail functions. If your SquirrelMail install does not use server side sorting, PHP bug can create infinite loop in message display. If you are using PHP 4.4.1, you should update it to 4.4.x-dev or apply patch. Cheers, Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP stopped working :(
On Nov 20, 2005, at 2:09 PM, Matt Singerman wrote: Hi all, I have a FreeBSD 6.0 system which had PHP4 running perfectly fine on it. However, I wanted to install Horde (www.horde) with IMP, which requires IMAP support, so I decided to try and recompile PHP using /usr/ports/lang/php4-extensions, first running make deinstall in php4-extensions and php4. At first, this did not work. I checked, and sure enough, the old data for the compilation was in /var/db/ports, so I deleted it out. Anyway, I ran make and make install in /usr/ports/lang/php4-extensions without any problems, then I ran make and make install in /usr/ports/lang/php4. This is where I first noticed things looked a bit weird. It didn't seem like php4 was completely recompiling it; that is, it didn't seem to take long enough. But it claimed to have worked correctly, so I restarted Apache. Lo and behold, my problems started. First off, and this is weird, my test file - a simple file containing only a callto phpInfo() - will work in IE, but not in Firefox. Check it out: http://list.mchgroup.org/test.php Second, SquirrelMail won't load at all: http://list.mchgroup.org/squirrelmail/src/login.php I have tried deinstalling and reinstalling PHP countless times now, with no results. I checked my httpd.conf file, and all seems okay. Any ideas what this could be? I'm very trustrated at this point, and am considering blowing away Apache and starting it from scratch :( Thanks, Matt Try going to the respective ports directories and type make clean. - Eric F Crist Secure Computing Networks http://www.secure-computing.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP stopped working :(
On Sunday, November 20, 2005 3:09:53 PM, Matt Singerman [EMAIL PROTECTED] Subject: PHP stopped working :( Wrote these words of wisdom: Hi all, I have a FreeBSD 6.0 system which had PHP4 running perfectly fine on it. However, I wanted to install Horde (www.horde) with IMP, which requires IMAP support, so I decided to try and recompile PHP using /usr/ports/lang/php4-extensions, first running make deinstall in php4-extensions and php4. At first, this did not work. I checked, and sure enough, the old data for the compilation was in /var/db/ports, so I deleted it out. Anyway, I ran make and make install in /usr/ports/lang/php4-extensions without any problems, then I ran make and make install in /usr/ports/lang/php4. This is where I first noticed things looked a bit weird. It didn't seem like php4 was completely recompiling it; that is, it didn't seem to take long enough. But it claimed to have worked correctly, so I restarted Apache. Lo and behold, my problems started. First off, and this is weird, my test file - a simple file containing only a callto phpInfo() - will work in IE, but not in Firefox. Check it out: http://list.mchgroup.org/test.php Second, SquirrelMail won't load at all: http://list.mchgroup.org/squirrelmail/src/login.php I have tried deinstalling and reinstalling PHP countless times now, with no results. I checked my httpd.conf file, and all seems okay. Any ideas what this could be? I'm very trustrated at this point, and am considering blowing away Apache and starting it from scratch :( Thanks, Matt * REPLY SEPARATOR * On 10/11/2005 5:29:42 PM, Gerard Replied: Maybe I am misunderstanding you; however, the test.php file displays just fine using FireFox. At least it does on my machine. The SquirrelMail link does not load though. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP stopped working :(
no errors in the httpd-error.log? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PHP stopped working :(
Hi, I am going to try a make clean and see how that works. I already tried it, though, so I am not too hopeful at this point. The fact that sq. mail isn't loading is the very problem. PHP page aren't working correctly. I am not seeing any relevant errors in httpd-errors. On 11/20/05, Derrick MacPherson [EMAIL PROTECTED] wrote: no errors in the httpd-error.log? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]