LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-09-2006, 11:29 PM   #1
kwt0
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Rep: Reputation: 0
FC4 Apache2 php4 strange issue


In the php.confg if I comment out this line
Code:
AddType application/x-httpd-php .php
I see this: I'll only post a small portion of what I actually get I can't post a link to a SS so here it is
Code:
*** ".LAN_NEWS_3." ***
".LAN_NEWS_4."

"; } if(!is_object($aj)){ $aj = new textparse; } if(e_QUERY){ $tmp = explode(".", e_QUERY); $action = $tmp[0]; $sub_action = $tmp[1]; $id = $tmp[2]; } $from = (!is_numeric($action) || !e_QUERY ? 0 : ($action ? $action : e_QUERY)); if($tmp[1]=='list'){ $action='list'; $from=intval($tmp[0]); $sub_action=intval($tmp[2]); } $ix = new news; if($action == "cat"){ $qs = explode(".", e_QUERY); $category = $qs[1]; if($category != 0){ $gen = new convert; $sql2 = new db; $sql -> db_Select("news_category", "*", "category_id='$category'"); list($category_id, $category_name, $category_icon) = $sql-> db_Fetch(); $category_name = $aj -> tpa($category_name); $category_icon = e_IMAGE."newsicons/".$category_icon; $count = $sql -> db_SELECT("news", "*", "news_category='$category' AND (news_start=0 || news_start < ".time().") AND (news_end=0 || news_end>".time().") ORDER BY news_datestamp DESC"); while($row = $sql-> db_Fetch()){ extract($row); if(check_class($news_class)){ $news_title = $aj -> tpa($news_title); if($news_title == ""){ $news_title = "Untitled"; } $datestamp = $gen->convert_date($news_datestamp, "short"); $comment_total = $sql2 -> db_Count("comments", "(*)", "WHERE comment_item_id='$news_id' AND comment_type='0' "); $text .= " bullet ".$news_title."
   ".$datestamp.", ".LAN_99.": ". ($news_allow_comments ? COMMENTOFFSTRING : $comment_total)."
\n"; }else{ $count --; } } $text = "
". LAN_307.$count."
But if I uncomment it all I get is a blank page no page source or nothing.
I've followed some of the other threads advice to no avail I can get this
Code:
<html>
<head>
<title>PHP test</title>
</head>
<body>
Hello this is my first php page
<?php echo "and php is working"; 
phpinfo();
?>
</body>
</html>
as both php and html to run and it does show the php info but the php webpage I want won't. Any ideas?
 
Old 01-10-2006, 09:00 PM   #2
kwt0
LQ Newbie
 
Registered: Jan 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Anyone? I've tried all I can think of, anything from reinstalling everything from apache all the way to reinstalling mysql. help please
 
Old 01-11-2006, 09:08 PM   #3
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
You are not very clear in your problem.

"does show the php" -- are your php files working or not?

Just out of curiousity, how did you install PHP4 in FC4?
Is the file you are testing have a PHP extension?
What advice did you try from other threads?
 
Old 01-22-2006, 02:37 AM   #4
nglbrkr
Member
 
Registered: May 2005
Location: hiroshima
Distribution: debian
Posts: 75
Blog Entries: 9

Rep: Reputation: 17
I have a similar problem. The browser displays the php source or a blank page instead of executing the script.
I have php 5 though.
I want to test a blog server, but can't do anything since all the install pages are php

and yes they have a .php extension.

I have found little on the web, just a couple of suggestions to uninstall php5 and go with 4, but I can't do it through failed dependencies that don't resolve as they should.

Any help appreciated!
 
  


Reply



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
phpbb, apache2, php4 Odins_Son Linux - Software 2 12-23-2004 02:24 AM
apache2 + php4 atheist Linux - Software 6 10-25-2004 03:12 PM
php4 with apache2? the debian way, how? Tisch Debian 4 08-19-2004 09:35 AM
Debian, apache2 and php4 Pasi Linux - Distributions 1 03-20-2003 07:28 PM
Apache2 & php4 CyberDrake Linux - Newbie 2 11-25-2002 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:55 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