LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-16-2008, 04:50 PM   #1
davidmbecker
LQ Newbie
 
Registered: Apr 2008
Location: Orange County, CA
Distribution: Fedora 7
Posts: 3

Rep: Reputation: 0
Postfixadmin PHP setup file - only displays PHP code


I am sure that this is an easy answer for somebody, but I am having a problem finishing the setup of postfixadmin.

I am using Fedora 7, postfix and dovecot. I moved the postfixadmin file to /var/www/html/ and when I goto http//mydomain/postfixadmin, it is displaying the php code instead of rendering the php code.

What am I missing?
 
Old 04-16-2008, 05:36 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
do you have php working for anything on your server? Is php even installed?

Last edited by billymayday; 04-16-2008 at 05:37 PM.
 
Old 04-16-2008, 06:20 PM   #3
davidmbecker
LQ Newbie
 
Registered: Apr 2008
Location: Orange County, CA
Distribution: Fedora 7
Posts: 3

Original Poster
Rep: Reputation: 0
Yes, I have ISPConfig installed and it is working fine. That uses PHP as well. The only difference is that is on a secure connection (HTTPS).
 
Old 04-17-2008, 10:33 AM   #4
davidmbecker
LQ Newbie
 
Registered: Apr 2008
Location: Orange County, CA
Distribution: Fedora 7
Posts: 3

Original Poster
Rep: Reputation: 0
All better

Quote:
Originally Posted by billymayday View Post
do you have php working for anything on your server? Is php even installed?
Ok, I found the problem. I was following this HOWTO and it says to comment out the following in the /etc/httpd/conf.d/php.conf:

#AddHandler php5-script .php
#AddType text/html .php

When I went back and uncommented this, I was back in business. I am also using ISPConfig and that is working. Maybe there is a setting within ISPConfig for PHP to be enabled on port 80. That appears to be what is eluded to in the tutorial.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 02:31 AM
[PHP] Put code in a seperate file Ephracis Programming 7 10-10-2007 01:06 PM
apache2 displays PHP source instead of evaluating Hewson Linux - Server 6 08-08-2007 11:10 AM
php page can't display but download as php file? taiwf Linux - Software 2 03-07-2006 05:57 PM
Dynamic webpages with php code displays blank from Fedora pietermouton Linux - Newbie 2 12-22-2005 12:28 AM


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