From owner-freebsd-questions@FreeBSD.ORG Sun Sep 30 22:16:45 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 BE69F16A418 for ; Sun, 30 Sep 2007 22:16:45 +0000 (UTC) (envelope-from miguel.playbsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 2756F13C461 for ; Sun, 30 Sep 2007 22:16:44 +0000 (UTC) (envelope-from miguel.playbsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so2494301nfb for ; Sun, 30 Sep 2007 15:16:44 -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:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; bh=MSpjzN4xjNvB0BEGdUXN43a5dOxY49wIp7ThcugZ6/k=; b=SjTVLct79RXoT0HB6tAML2LkpWO1OG546iPXIbTx3JoZYBiCDQvKvvLQfqI+rlBASYNxRqKMIvWpZ4qqaW65CxPyeiaEovYhpeKAoz9FWAfQgG1lIir3DFPgQlhfOa84sxblCwpoV8whIfixFsGQokqOS12BGvPpTs0lbgtWvZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:from; b=hVfdOzfR1P5yh/72UMo1AkrKg92WLCYEEOjwQj5/MZOB2T3JRZSyl8BIljO1kCWqJKlYZD8nPunrO8qspb7DsNxW00Fc2E5xxwKwWeAWwt26HfGTa/SdcGOSqbdswlTyRcXVSn16GtTRq5bBMOH0dhZhFxWW1EXn0UXAX9c0vD0= Received: by 10.78.183.8 with SMTP id g8mr2301530huf.1191189016273; Sun, 30 Sep 2007 14:50:16 -0700 (PDT) Received: from spirou.netcabo.pt ( [85.138.42.229]) by mx.google.com with ESMTPS id d23sm12805302nfh.2007.09.30.14.50.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 30 Sep 2007 14:50:15 -0700 (PDT) Message-ID: <47001B23.5010405@googlemail.com> Date: Sun, 30 Sep 2007 22:54:43 +0100 User-Agent: Thunderbird 2.0.0.6 (X11/20070922) MIME-Version: 1.0 To: bob References: <46FFFE9A.6050003@remotes008.com> In-Reply-To: <46FFFE9A.6050003@remotes008.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit From: Miguel Segura 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 22:16:45 -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 > > > > > ------------------------------------------------------------------------------- > > 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 > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Did you stop and start apache ? apachectl stop apachectl start Cheers, Miguel.