LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Closed Thread
 
Search this Thread
Old 09-24-2006, 03:18 PM   #1
isretired
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
PHP not working in SUSE 10.1


Just did new install of SUSE 10.1. During the install I included Apache2 with PHP5 (in fact a complete webserver install).
In YaST, I enabled the HTTP sever and enabled PHP and opened it's ports in the firewall.
I can display a web page (both the default page and one of my own) from within linux and from another computer on the LAN.
The problem is that PHP code is not executed. It makes no difference if the PHP is within an HTML page or a file by itself.
Example 1, file index.html:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo phpinfo(); ?>
</body>
</html>
Example 2, file justphp.php:
<?php
phpinfo();
?>
Does anybody have an idea why PHP may not be working?
Thanks for any help

PS
I'm somewhat new to Linux
 
Old 09-24-2006, 06:37 PM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
no double posting.
 
Old 09-24-2006, 07:11 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 10:25 AM
PHP header("Location: xxx.php") not working? baddah Programming 7 05-10-2006 09:00 AM
Suse 9.3/apache2/php4 - Firefox tries to download index.php, other *php pages work stefanlasiewski Suse/Novell 1 01-18-2006 06:12 PM
PhP not working correctly in Suse 9.3 webwolf70 Suse/Novell 14 10-29-2005 09:33 AM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM


All times are GMT -5. The time now is 02:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration