PHP Problem

Benjamin Walkenhorst krylon at gmx.net
Thu Sep 23 12:24:01 PDT 2004


On Thu, 23 Sep 2004 11:59:14 -0700
digish reshamwala <reshamwa at usc.edu> wrote:

> Hi
> 
> I have installed Apache Mod_ssl 1.3.29 first then,
> I installed PHP using ports in FreeBSD 5.2.1 as:
> 
> cd /usr/ports/www/php4-cgi
> make
> make install clean
> 
> But my PHP doesn't seems to be working, as my simple Hello World
> program-

[ Hello-world-code snipped ]

> doesn't give any output.  It just displays the blank page.
> 
> Can u guys help me asap, please??!

Well, strictly speaking, this does not belong here.
...
Furthermore, you aren't giving much information... Have you looked up
the logfiles? Try setting php's error reporting to E_ALL (don't know the
name of the variable in the config file right now...) and see if any
messages turn up in apaches error-logfile (most often named 'err.log').
Normally, if there is a problem, it tends to get flooded... =)

Furthermore, are you sure you want php to run as CGI?
I am not sure about FreeBSD's port layout, but on my server (NetBSD
1.6.2) I have two packages installed, php-4.3.4 and ap-php-4.3.4, which
is the apache module for php.
If you want to do CGI, you have to set that up in apache, too, define a
folder to be your server's /cgi-bin/, and put all the php-files there.
But unless you have some specific reason for doing so, I strongly doubt
you want to run php via CGI... 


If you habe further questions, I'd be glad to help, but I suggest you
contact me privately, since your problem is not that strictly
FreeBSD-related.

> thanks a lot,
> digish


Kind regards,
Benjamin


-- 
If cars had improved at [the computer industry's] rate, a Rolls Royce
would now cost 10 dollars and get a billion miles per gallon.
(Unfortunately, it would probably also have 200-page manual telling how
to open the door.)
--
Andrew Tanenbaum, "Introduction To Distributed Systems"


More information about the freebsd-questions mailing list