LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfixadmin PHP setup file - only displays PHP code (https://www.linuxquestions.org/questions/linux-software-2/postfixadmin-php-setup-file-only-displays-php-code-635835/)

davidmbecker 04-16-2008 04:50 PM

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?

billymayday 04-16-2008 05:36 PM

do you have php working for anything on your server? Is php even installed?

davidmbecker 04-16-2008 06:20 PM

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).

davidmbecker 04-17-2008 10:33 AM

All better
 
Quote:

Originally Posted by billymayday (Post 3123462)
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.


All times are GMT -5. The time now is 06:50 PM.