From owner-freebsd-questions@FreeBSD.ORG Sun Sep 30 21:23:51 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAE3D16A41A for ; Sun, 30 Sep 2007 21:23:51 +0000 (UTC) (envelope-from bob@remotes008.com) Received: from fall-pradero.atl.sa.earthlink.net (fall-pradero.atl.sa.earthlink.net [207.69.195.104]) by mx1.freebsd.org (Postfix) with ESMTP id 5973113C45D for ; Sun, 30 Sep 2007 21:23:51 +0000 (UTC) (envelope-from bob@remotes008.com) Received: from jacob.mail.atl.earthlink.net ([207.69.200.63]) by fall-pradero.atl.sa.earthlink.net with esmtp (Exim 4.34) id 1Ic5lw-0006o2-Ni for questions@freebsd.org; Sun, 30 Sep 2007 16:52:16 -0400 Received: from dialup-4.225.215.141.dial1.denver1.level3.net ([4.225.215.141]) by jacob.mail.atl.earthlink.net with esmtp (Exim 3.36 #1) id 1Ic5lv-0002C4-00 for questions@freebsd.org; Sun, 30 Sep 2007 16:52:15 -0400 Message-ID: <46FFFE9A.6050003@remotes008.com> Date: Sun, 30 Sep 2007 13:52:58 -0600 From: bob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050420 X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: php failing to produce phpinfo() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2007 21:23:51 -0000 My business has been using PHP for years. Mysql outputs to my browser, where I can print invoices, bills and any business statitic. Suddenly, my browser started acting funny. I don't know how to use the repair disk to fix a problem, so I reinstalled FreeBSD-6.1. It still works the same except I can't get phpinfo() to display in the browser. I can do php -i, which displays several pages of PHP code. That means PHP is working. I don't use CGI or PHP scripts. If phpinfo() doesn't show up in my browser, I can't do anything. The following is in /usr/local/etc/apache/httpd.conf: LoadModule php5_module AddModule mod_php5.c DirectoryIndex index.php index.html DirectoryIndex index.html AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps The httpd.error.log doesn't show any problems. Thre are 35 modules in /usr/local/libexec/apache including libphp5.so and httpd.exp. Php.ini is installed at /usr/local/lib This time I installed mysql-5.1, apache-1.3 and PHP-5.1. I used "pkg_add -r" to install apache and mysql. Apache and mysql work excellent. I installed PHP from www.php.net. Both PHP4 and PHP5 would fail to load the phpinfo() file. I installed PHP-5.1 from the ports directory. Same problem. I ordered FreeBSD-6.1, before it was available. The FreeBSD Mall had it, but wasn't promoting it yet. About 2 years ago when I first installed FreeBSD-6.1, I installed mysql-4.0, PHP-4 and apache-1.3 on FreeBSD-6.1. I used "pkg_add -r" to install apache and mysql and I downloaded PHP-4 from www.php.net. Everything worked, including PHP. Two years ago, www.php.net was supplying any version of PHP including older versions of PHP-4. I installed older versions because they worked. Now www.php.net only supplies the latest version. thanks for any help, bob ------------------------------------------------------------------------------- uname -a says: FreeBSD localhost 6.1-RELEASE FreeBSD 6.1-RELEASE #0: SUN MAY 7 04:32:43 UTC 20 06 root@pu5.cse.buffaloe.edu:/usr/obj/usr/src/sys/GENERIC i386