php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16094 Unable to view .php file in the browser
Submitted: 2002-03-15 06:41 UTC Modified: 2002-06-17 14:34 UTC
From: ngupta at hss dot hns dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.1.2 OS: Red Hat LInux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ngupta at hss dot hns dot com
New email:
PHP Version: OS:

 

 [2002-03-15 06:41 UTC] ngupta at hss dot hns dot com
I am using php,mysql,apache combination on a linux machine.

I used the INSTALL file available in php-4.0.6.tar to install PHP in static mode.

Compilations and Installation go on fine with no errors.

But when a test.php script containing:
<HTML>
<HEAD>
<TITLE>Testing PHP</TITLE>
</HEAD>
<BODY>
<?
phpinfo();
?>
</BODY>
</HTML>

is executed, only the HTML tags are interpreted. There is no output for phpinfo().
The php.ini file is located in /usr/local/bin
The httpd.conf is present in /www/conf
The apache version used is apache_1.3.23

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-15 06:43 UTC] derick@php.net
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
 [2002-03-15 06:44 UTC] ngupta at hss dot hns dot com
The php.ini file is located in /usr/local/lib and not in /usr/local/bin reported earlier
 [2002-03-15 06:44 UTC] ngupta at hss dot hns dot com
The php.ini file is located in /usr/local/lib and not in /usr/local/bin reported earlier
 [2002-03-15 06:56 UTC] ngupta at hss dot hns dot com
this is not a support question.
May be some step is missed out in the INSTALL file which is
required for installation.
 [2002-03-15 07:11 UTC] mfischer@php.net
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php

If you are still able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".


 [2002-03-18 07:07 UTC] ngupta at hss dot hns dot com
We upgraded the php version to 4.1.2 but still are facing the same problem.

The output of :
 /www/bin $>./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_setenvif.c
  mod_php4.c
suexec: disabled; invalid wrapper /www/bin/suexec
---------------------------------------------------
The httpd.conf file contains:
 AddType application/x-httpd-php .php
 [2002-03-18 07:20 UTC] mfischer@php.net
Have you added the line

AddType application/x-httpd-php-source .phps

to your apache config file ?
 [2002-03-18 07:27 UTC] msopacua at idg dot nl
Let's get something straight:
You say "view .php file in the browser".
Do you open it locally? Or envoke it via the webserver?
Secondly:
What happens if you change:
<?
phpinfo();
?>
to:
<?php
phpinfo();
?>
 [2002-03-19 06:31 UTC] ngupta at hss dot hns dot com
We view the test.php file through the netscape browser available on red hat linux. Nothing appears on the browser window.
AddType application/x-httpd-php-source .phps
is added to httpd.conf
Nothing changes when the <?
   phpinfo();
   ?>
   is changed to:
   <?php
   phpinfo();
   ?>
 [2002-03-19 06:59 UTC] sniper@php.net
And you're not accessing the file directly? But through
some url? What is the url? (so we could see for ourselves)



 [2002-03-19 07:05 UTC] ngupta at hss dot hns dot com
the web server is running on one of our corporate's machine and you would not be able to view the page at your end.

However, after searching through several php bug databases, I found it is better to install php,apache from the red
hat distribution cd itself instead of downloading the rpms
and installing them manually. Have u any comments on the same? Now I intend to reinstall the linux OS.
 [2002-03-19 10:33 UTC] mfischer@php.net
Re-Installing the OS silly.

Anyway, I think I lost track.

You try to put up a PHP page and view the output of the code phpinfo() and you do not get it, right?
 [2002-06-17 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-06-17 14:34 UTC] sniper@php.net
Too old version, and a support question -> bogus

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 21:01:33 2024 UTC