473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

No output from newly built PHP

Am using apache (2.0.48) and php (4.3.4) running on Linux.
Configuring with ./configure --with-mysql
--with-apxs2=/usr/local/apache2/bin/apxs

Build works and no errors.
Installing software and restarting (stop / start) apache.
Putting php.ini into /usr/local/lib (???) according to documentation..
However running any php (say <?php phpinfo(); ?>) script results in no
output (at the browser) but also no errors at apache.

I have tried this with different installations and all result in no output.
Note that this has worked with older versions of apache and php.

The problem is I don't know how to debug this. I have enabled all of the
debug flags I can find in apache and have set --enable-debug whilst
building php but cannot find any debug output from php and apache thinks
everything is working great.

I suspect that this may be a php.ini problem, but again have consulted
Programming php (no real use in defining php.ini) and have looked in google
for php.ini examples that may help but, as yet no luck.

Any clues welcomed.

Gr, Tim
Jul 17 '05 #1
3 4429
Nwsgrp wrote:
Am using apache (2.0.48) and php (4.3.4) running on Linux.
Configuring with ./configure --with-mysql
--with-apxs2=/usr/local/apache2/bin/apxs

Build works and no errors.
Installing software and restarting (stop / start) apache.
Putting php.ini into /usr/local/lib (???) according to documentation..
However running any php (say <?php phpinfo(); ?>) script results in no
output (at the browser) but also no errors at apache.

I have tried this with different installations and all result in no output. (...) Any clues welcomed.


Have you seen the HTML source?

I suspect your Apache's httpd.conf isn't configured with

AddType application/x-httpd-php .php
--
USENET would be a better place if everybody read: : mail address :
http://www.catb.org/~esr/faqs/smart-questions.html : is valid for :
http://www.netmeister.org/news/learn2quote2.html : "text/plain" :
http://www.expita.com/nomime.html : to 10K bytes :
Jul 17 '05 #2
Pedro Graca wrote:
Nwsgrp wrote:
Am using apache (2.0.48) and php (4.3.4) running on Linux.
Configuring with ./configure --with-mysql
--with-apxs2=/usr/local/apache2/bin/apxs

Build works and no errors.
Installing software and restarting (stop / start) apache.
Putting php.ini into /usr/local/lib (???) according to documentation..
However running any php (say <?php phpinfo(); ?>) script results in no
output (at the browser) but also no errors at apache.

I have tried this with different installations and all result in no
output.

(...)
Any clues welcomed.


Have you seen the HTML source?

I suspect your Apache's httpd.conf isn't configured with

AddType application/x-httpd-php .php

I have configured the httpd.conf and am not seeing anything at all. In other
words if the index.html file has html in it, then this works fine and I see
the html correctly presented. However all php code simply results in a
totally blank field. It is as if the output is generated and then thrown
away.

I have seen this problem reported elsewhere (with random lack of display)
but have, as yet seen no solution.

I have found a page that describes how to build the thing completely and I
am going to try that. I am fairly convinced it is a configuration problem,
either the file is in the wrong palce (I can't really believe that php.ini
belongs in /usr/local/lib).
Gr, Tim
Jul 17 '05 #3
Pedro Graca wrote:
Nwsgrp wrote:
Am using apache (2.0.48) and php (4.3.4) running on Linux.
Configuring with ./configure --with-mysql
--with-apxs2=/usr/local/apache2/bin/apxs

Build works and no errors.
Installing software and restarting (stop / start) apache.
Putting php.ini into /usr/local/lib (???) according to documentation..
However running any php (say <?php phpinfo(); ?>) script results in no
output (at the browser) but also no errors at apache.

I have tried this with different installations and all result in no
output.

(...)
Any clues welcomed.


Have you seen the HTML source?

I suspect your Apache's httpd.conf isn't configured with

AddType application/x-httpd-php .php

I have followed the documentation contained in
dan.drydog.com/apache2php.html and have completed the installation without
any error.

I have then made a file (say phpconf.php) and I can then see this file as a
directory entry. When I click on the file then the browser (Mozilla) says
that it recognises the file type (application/x-httpd-php) but doesn't know
how to handle it. I would have thought that Apache would have launched the
php file and returned the output.

Just to keep me sane, I then took an older version of apache (but still
apache2) and an older version of php and these work fine.

By the way can anyone tell me where php puts it error logs. I have enabled
all of the error logging in php (php.ini, contained in
/usr/local/apache2/php) and have looked in all the normal places and can't
see a thing. I suspect however that php isn't even getting invoked.

Again any help welcome.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dimitre Novatchev | last post by:
You seem to be unaware of the xslt processing which uses the built-in rules in the absence of templates that match some selected node. http://www.w3.org/TR/xslt#built-in-rule According to the...
4
by: Mike Conmackie | last post by:
Hi Folks, I've probably omitted something very basic but I have no idea what it might be. The results of my transformation _should_ be an xml file but all I get is the xml declaration...
2
by: Magesh | last post by:
Hi, I am trying to do the following 1. On form submit, open a window with three frames 2. Set the target as one of the frames 3. Set the action for the frame It is working properly in...
8
by: Greenhorn | last post by:
Hi, when i run the output file generated by using cc i get no output on my terminal. #include <stdio.h> main() { printf("Testing the printf functionality"); }
5
by: Verane | last post by:
Hi, I have read the thread named "Could not copy temporary files to the output directory" on this newsgroup. And I have the same symptoms on my machine. But I didn't find any solution suitable for...
1
by: Dica | last post by:
i'm working on building a web app that uses several dlls being built by another member of the team. his dlls are frequently updates as we decide on the need for new methods, but much of the time,...
9
by: =?Utf-8?B?UHJhdmlu?= | last post by:
We are using .net Framework 1.1 We are having one page on which we are using this Grid component. From this page we open a popup for adding new record as well as for editing an existing record...
2
by: peridian | last post by:
I've gotten a really weird result crop up on my site, and I can't find any information on the web that it has been seen elsewhere. Given how weird this is, I guess it's probably a symptom of either...
0
by: Jordan S. | last post by:
Using .NET 3.5... in a "plain old" .aspx page I have the following code in the Init event: this.Context.Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.