LinuxQuestions.org
Register a domain and help support LQ
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

Reply
 
Search this Thread
Old 08-02-2009, 01:48 PM   #1
manugupt1
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
apache and php problem in ubuntu 9.04


I have both apache 2 and php 5.6 installed on my system and now when I start my httpd service everything works fine but am unable to run php scripts

Cant figure out whats the problem can you plz let me know what is it and help me out.... in this regard
 
Old 08-02-2009, 04:02 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

Could you please be more specific on your problem:
How did you install apache and php?
What happens if you point your browser to a php script like http://server/script.php?
 
Old 08-03-2009, 10:12 AM   #3
manugupt1
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Original Poster
Rep: Reputation: 0
apache and php problem in ubuntu 9.04

Quote:
Originally Posted by bathory View Post
Hi,

Could you please be more specific on your problem:
How did you install apache and php?
What happens if you point your browser to a php script like http://server/script.php?
well it says download phtml file and it does not run it???
 
Old 08-03-2009, 10:23 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Open httpd.conf and edit the "AddType application/x-httpd-php" line to look like this:
Code:
AddType application/x-httpd-php .php .phtml
 
  


Reply

Tags
apache, installation, php


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 and php problem in ubuntu 9.04 manugupt1 Linux - Newbie 1 08-02-2009 02:19 PM
Installing and Configuring MySQL, Apache, and PHP on (Ubuntu) Linux gagne.marc Linux - Software 4 02-21-2009 03:23 PM
Ubuntu & Apache php not loading MSCTC Linux - Server 6 07-28-2007 05:09 PM
install apache and php on ubuntu server spank Ubuntu 15 07-28-2006 01:41 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM


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