LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-21-2004, 03:24 AM   #1
acrors
Member
 
Registered: Aug 2004
Posts: 72

Rep: Reputation: 15
php problem


Hi

I've used redhat 9 for near two months and now i've changed to fedora 2.
I have a problem with apache of fedora. I have few php files which work well in redhat, but they doesn't work in fedora. Fedora can not recognise php commands.
To test i create a test.php file what contains:
two plus two is <?php echo(2+2) ?>
But when i run it using mozilla, it prints:
two plus two is <?php echo(2+2) ?>
Instead of :
two plus two is 4

Pls. show me how to fix this problem ....

Thank
 
Old 09-21-2004, 03:59 AM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Install the php module for apache, should be on the disks...
 
Old 09-21-2004, 05:50 AM   #3
acrors
Member
 
Registered: Aug 2004
Posts: 72

Original Poster
Rep: Reputation: 15
php already installed

It's strange because i've installed php moduls already.

Could you give me other solution ?
 
Old 09-21-2004, 06:11 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Check the module's loaded, check the mime types so that .php is handled by php, and check the php.ini has the engine turned on for apache.
 
Old 09-21-2004, 09:11 PM   #5
acrors
Member
 
Registered: Aug 2004
Posts: 72

Original Poster
Rep: Reputation: 15
More detail ... pls

I'm new in linux ... pls tell me more detail ....
Your advise may be good but the problem is that i don't know how to do ....

Help ...
 
Old 09-22-2004, 10:52 AM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
Problem getting PHP to recognize MySQL, Using PHP 4.0 and MySQL 4.0.20 d2army Programming 4 06-27-2004 08:54 PM
RH9: PHP session problem (or Apache problem) fengcn Red Hat 0 12-01-2003 06:32 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM

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

All times are GMT -5. The time now is 05:14 AM.

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