Is this your own server that you have complete access to, or 
is it an ISP machine?

If you are running Apache under your own personal user 
account, where are you putting your website pages?

Are they under your personal home directory as well?

If so, it may be that php is not configured to pull 
documents from that directory.

What are these two directives set to, in your php.ini?

doc_root string

PHP's "root directory" on the server. Only used if 
non-empty. If PHP is configured with safe mode, no files 
outside this directory are served. If PHP was not compiled 
with FORCE_REDIRECT, you should set doc_root if you are 
running PHP as a CGI under any web server (other than IIS). 
The alternative is to use the cgi.force_redirect 
configuration below. 

user_dir string

The base name of the directory used on a user's home 
directory for PHP files, for example public_html .

Keith


In theory, theory and practice are the same;
In practice they are not. 

On Mon, 13 Mar 2006, Matt G. wrote:

> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> From: Matt G. <[EMAIL PROTECTED]>
> Subject: [SPAM] Re: [PHP-INSTALL] php returning completely empty documents on
>     new apache install
> 
> Yes, compiled against apache 1.3.34.  I never even downloaded a 2.xversion...
> 
> One non-standard thing I'm doing is running apache under my personal user
> account on this machine.  (I don't have root)  But I wouldn't think that
> should be a problem.  Is it possible that php is somehow running into a
> permission denied problem?  I've checked file permissions and ownerships
> pretty thoroughly and don't see anything amiss.
> 
> thanks
> 
> 
> On 13/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> > This is really strange cause normally php works just fine!
> >
> > Have you compiled php5 against Apache 1.3.34, and not a
> > 2.0.xx version Matt?
> >
> > Keith
> >
> > On Sun, 12 Mar 2006, Matt G. wrote:
> >
> > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> > > From: Matt G. <[EMAIL PROTECTED]>
> > > Subject: [SPAM] Re: [PHP-INSTALL] Re: [SPAM] Re: [PHP-INSTALL] php
> > returning
> > >     completely empty documents on new apache install
> > >
> > > Err...my mistake, I am using apache 1.3.34.  Not sure why I said 2.0 in
> > the
> > > original message.
> > >
> > > On 12/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > Is it because you are using the AddModule directive.
> > > > I think that is only used in Apache 1.3.x series.
> > > >
> > > > This is all I have in my httpd.conf for loading the php
> > > > module.
> > > >
> > > > ##LoadModule speling_module          modules/mod_speling.so
> > > > ##LoadModule userdir_module          modules/mod_userdir.so
> > > > LoadModule alias_module              modules/mod_alias.so
> > > > ##LoadModule rewrite_module          modules/mod_rewrite.so
> > > > LoadModule php5_module               modules/libphp5.so
> > > >
> > > > Keith
> > > >
> > > > In theory, theory and practice are the same;
> > > > In practice they are not.
> > > >
> > > > On Sun, 12 Mar 2006, Matt G. wrote:
> > > >
> > > > > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G.
> > > > > <[EMAIL PROTECTED]> Subject: [SPAM] Re: [PHP-INSTALL]
> > > > > php returning completely empty documents on
> > > > >     new apache install
> > > > >
> > > > > Hi Keith,
> > > > >
> > > > > Thanks for the suggestions.  I had already tried the
> > > > > phpinfo() call and it results in the same thing as my
> > > > > hello world, just a 0 byte document returned from the
> > > > > webserver.  The apache install is essentially working
> > > > > correctly, it returns .html docs just fine.  Also, I
> > > > > checked those php.ini keywords and they are both set to
> > > > > on.  (in fact I'm using the exact sample php.ini that came
> > > > > with the source distribution.)
> > > > >
> > > > > I'm completely stumped...
> > > > >
> > > > > On 11/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > > Try calling the following as a php file:
> > > > > >
> > > > > > <?php
> > > > > >
> > > > > > phpinfo();
> > > > > >
> > > > > > ?>
> > > > > >
> > > > > > It's only 3 lines, but that returns alot of information for
> > > > > > debugging your php installation.
> > > > > >
> > > > > > Do you have the following directives set in php.ini?
> > > > > >
> > > > > > ; Enable the PHP scripting language engine under Apache.
> > > > > > engine = ON
> > > > > >
> > > > > > ; whether PHP may add its signature to the Web server header
> > > > > > expose_php = YES
> > > > > >
> > > > > > Can you return a plain html document with Apache?
> > > > > >
> > > > > > If not, is your apache DocRoot setup correctly?
> > > > > >
> > > > > > Keith
> > > > > >
> > > > > >
> > > > > > In theory, theory and practice are the same;
> > > > > > In practice they are not.
> > > > > >
> > > > > > On Sat, 11 Mar 2006, Matt G. wrote:
> > > > > >
> > > > > > > To: php-install@lists.php.net From: Matt G.
> > > > > > > <[EMAIL PROTECTED]> Subject: [PHP-INSTALL] php
> > > > > > > returning completely empty documents on new apache
> > > > > > >     install
> > > > > > >
> > > > > > > I just built the latest apache 2.0 and php5 (shared
> > > > > > > apache module) on a linux 2.6.5 box.  After doing all
> > > > > > > of the setup from the INSTALL file,
> > > > > > I'm
> > > > > > > unable to get a php hello world to work!  (Well, I get it to
> > work
> > > > with
> > > > > > the
> > > > > > > CLI, but not through my web browser)  The apache
> > > > > > > server just returns a 0 byte document.  No errors come
> > > > > > > out in the apache logs and it says the document was
> > > > > > > sent with a http 200 status.  It is as if the php
> > > > > > interpreter
> > > > > > > is not getting called.
> > > > > > >
> > > > > > > When the apache server starts up, it logs that php is in fact
> > > > > > configured:
> > > > > > >
> > > > > > > [Sat Mar 11 16:06:51 2006] [notice] Apache/1.3.34 (Unix)
> > PHP/5.1.2
> > > > > > > configured -- resuming normal operations
> > > > > > >
> > > > > > > I believe I have the correct lines in my httpd.conf:
> > > > > > > LoadModule php5_module        libexec/libphp5.so
> > > > > > > AddModule mod_php5.c
> > > > > > >     DirectoryIndex index.html index.php
> > > > > > > AddType application/x-httpd-php .php .phtml
> > > > > > > AddType application/x-httpd-php-source .phps
> > > > > > >
> > > > > > >
> > > > > > > Does anybody have any suggestions for how I can dig into this
> > > > further?
> > > > > >
> > > > >
> > > >
> > >
> >
> 

Reply via email to