LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-16-2003, 04:00 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
Question apache or php doesn't work properly on RH8.0


hi every body,
apache or php or both don't work properly on redhat 8.0.

the value val1 (in my script below : test1.php ) is sent to the script test2.php which must print the value, but nothing appears.

the same scripts run correctly on pvevious release RH 7.3 for example.

I looked for the fixed bugs on redhat site, i found a new http i upgrade my http
but the problem stays.
of course the httpd is running, and the php too.

Perhaps the problem is in Php ?

I ll try to install the apache from an older version, but I ll get probably dependance problem

thank you for help

here are the 2 scripts : test1.php calls test2.php
test1.php :

<html>
<body>
<form action="test2.php" method="post">
Send a value <input type="text" name="val1" size=10><br>
<center><input type="submit" value="Send"></center><br>
</form>

</body>
</html>


test2.php

<html>
<body>
<br>

<?php
echo "VALUE IS ",$val1;
?>
</body>
</html>

javascript:smilie('')
 
Old 03-16-2003, 08:07 AM   #2
irish_rover
Member
 
Registered: Sep 2002
Location: IN, USA
Distribution: Debian, Endian FW
Posts: 368

Rep: Reputation: 30
Try making a php script/page that doesn't require another page for input. Something like:
$hello = "Hello World";
echo $hello;
See if that gets interpreted. I'm wondering if you need mod_php?
 
Old 03-16-2003, 02:11 PM   #3
niehls
Member
 
Registered: Jun 2002
Location: Sweden
Distribution: slack, redhat
Posts: 91

Rep: Reputation: 15
umm, have you checked your php.ini file so that register_globals is set to 1? try accessing the value through $_POST["val1"] instead of $val1.
 
Old 03-17-2003, 04:55 AM   #4
maildhanraj
LQ Newbie
 
Registered: Sep 2002
Location: pune
Distribution: Rh7.2
Posts: 12

Rep: Reputation: 0
hi! abd_bela,
yes that right RH8.0 is the release with Apache 2.0, unstable mod_php and no mod_perl. so that will effect use of the PHP sites, please check the upgrade.
I would recommend RH 7.3
dhanraj sheth
http://linuxdhanraj.tripod.com
 
Old 03-17-2003, 09:23 AM   #5
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
hi,
Yes in the same file it works correctly.
when I use the post method nothing appears,
but when I use the get method i receive the value on the URL like this

http://172.19.130.5/test2.php?val2=hello+world

where test2.php is the file called and val2 is the variable sent and hello world the content of the variable

What I find very strange is that this script runs correctly on rh7.3

thank you for help
 
Old 03-17-2003, 09:34 AM   #6
dsltech
Member
 
Registered: Mar 2003
Distribution: mandrake 9, of course
Posts: 31

Rep: Reputation: 15
shouldnt you have to open the php script in the test1 to work?

<html>
<body>
<form action="test2.php" method="post">

<?php

Send a value <input type="text" name="val1" size=10><br>
<center><input type="submit" value="Send"></center><br>

?>

</form>


</body>
</html>
 
Old 03-18-2003, 05:20 AM   #7
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Original Poster
Rep: Reputation: 31
for dsltech,
No because it is html code and not php code

regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache httpd not loading php pages properly. queezythegreat Linux - Networking 0 09-26-2004 03:50 PM
Newbie on Apache and PHP rpm install on RH8 1beagle Linux - General 5 03-11-2003 06:54 PM
apache, mysql php Rh8.0 wldkos Linux - Software 11 03-02-2003 03:19 AM
RH8 Modifying Default Apache / PHP config p4ck37p1mp Linux - General 4 02-10-2003 10:09 PM
RH8/Apache - PHP installed but not enabled(?) bkeating Linux - Software 3 12-05-2002 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration