From owner-freebsd-questions@FreeBSD.ORG Sun Sep 30 21:58:40 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 D76E416A418 for ; Sun, 30 Sep 2007 21:58:40 +0000 (UTC) (envelope-from eoghanj@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 4F6BA13C458 for ; Sun, 30 Sep 2007 21:58:39 +0000 (UTC) (envelope-from eoghanj@gmail.com) Received: by ug-out-1314.google.com with SMTP id a2so2080687ugf for ; Sun, 30 Sep 2007 14:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=SWJnm6C7JGhGrmu02QgXXzsnp862X00UPbBKDDKq5tQ=; b=nNIOV+VnZdt6ThqaGb1GlHoIYJ0W18M408HU4l6BBO4rF+nhECbLfJ2Rh2RvKW1hAyCRwVOWx5NHi+b0fLyuGwSGNps+psBEYisxHgKv/kOwKm+/QmCbnE9eYfLA3fhkiGZN06mwTJsOjJdid/7Eomm3CClXYq6zXQVjM8vn9bA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=CvMUewS6vmQcaIhrktQuwM25A4ZfVDQMr45QN/2UspkextJCnbWC/RYMFRg/U3no62hyY3YGups924SEMv9BXDTyrGvofFOafD/WuuPnmRyQw5Ge3u7joT0C8Qb52QJFxDeuM9bdm8wRN5+83jYYWxvtK61TplBhVGcx7KwfGQY= Received: by 10.67.27.3 with SMTP id e3mr8015110ugj.1191187872257; Sun, 30 Sep 2007 14:31:12 -0700 (PDT) Received: from home.nathaniel ( [213.202.171.28]) by mx.google.com with ESMTPS id 40sm4832573uge.2007.09.30.14.31.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Sep 2007 14:31:10 -0700 (PDT) Message-ID: <4700159C.6040305@gmail.com> Date: Sun, 30 Sep 2007 22:31:08 +0100 From: eoghan User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: bob References: <46FFFE9A.6050003@remotes008.com> In-Reply-To: <46FFFE9A.6050003@remotes008.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: 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:58:40 -0000 bob wrote: > 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 Hi Not sure but whats your php info page look like? Think short tags are either off or on by default... do you have ?