Re: php not working (blank screen)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 30 Nov 2003 14:01:25 -0500
linbox <paul_lin@xxxxxxxxxxxx> wrote:

> Robert L Cochran wrote:
> 
> > That is...'service httpd restart' doesn't do it. Sorry for the error, 
> > guess I'm getting dyslexic.
> >
> > Bob
> >
> >
> > Robert L Cochran wrote:
> >
> >> Did you compile PHP yourself? The current Fedora version is 4.3.4. If 
> >> you did, you need to change httpd.conf to add that application type 
> >> and load the new module. You must also kill and restart every httpd 
> >> process to get PHP to show up. 'service restart httpd' doesn't do it. 
> >> My method, which will no doubt make veteran linux people laugh, is to 
> >> restart the computer.
> >>
> >> Bob
> >>
> >>
> >>
> >> linbox wrote:
> >>
> >>> I have apache working in Fedora, but cannot get php to work.  I have 
> >>> edited the php.ini file to point to the proper directory, but all I 
> >>> ever get when I run a php script in a browser is a blank screen.   
> >>> php --version returns:
> >>>
> >>> PHP 4.3.3 (cgi) (built: Oct 21 2003 09:51:55)
> >>> Copyright (c) 1997-2003 The PHP Group
> >>> Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
> >>>
> >>> I hesitate to post my php.ini and httpd.conf files because of the 
> >>> length, but let me know if I should.
> >>>
> >>> Does anyone know what I am missing?
> >>>
> >>> TIA
> >>>
> >>>
> >>> -- 
> >>> fedora-list mailing list
> >>> fedora-list@xxxxxxxxxx
> >>> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
> >>>
> >>>
> >>
> >
> thanks for the quick responses.
> 
> 1) No I did not compile php myself.  It is the compiled version that 
> came with Fedora.
> 2) Yes I restarted httpd and at your request I even restarted the 
> computer.  No luck.
> 3) I created a script in gedit that had just  <?php phpinfo(); ?> with 
> no luck.  I then put a line of plain text under it in the script, and 
> the text showed up in the browser window, so I know it is a php problem.
> 4) Problem happens as both root and user.
> 
> Any additional help appreciated.
> 
> 
> 
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

also here is the php.conf file from /etc/httpd/conf.d/

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#
<Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    LimitRequestBody 524288
</Files>

#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


Good Luck

-- 
Douglas Clinton
declinton@xxxxxxxxxxxx
www.dblsys.ca




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux