LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   AS 3 w/ PHP, MySQL, and Apache2 (https://www.linuxquestions.org/questions/red-hat-31/as-3-w-php-mysql-and-apache2-149760/)

pollardw 02-23-2004 08:29 PM

AS 3 w/ PHP, MySQL, and Apache2
 
I have installed a RedHat AS 3 server with PHP, MySQL, and Apache 2 as the default options. It appears to be working. I have created a php test file as follows:

<?PHP
phpinfo();
?>

When run it displays info about my server as I would expect. The problem that I am having is I have an existing website on a RH7.3 server that I want to migrate over to the new server. When I try to load any of the pages I get a Runtime Error at line 56 and Do I want to debug. If I click on No it takes me to the page and I only get the html portion of the page and none of the PHP. Here is line 56 of my page.

<script language="JavaScript1.2">mmLoadMenus();

Any help/suggestions would be greatly appreciated.

Robby

pollardw 02-23-2004 08:47 PM

I just figured it out. I saw this post and it helped me.

http://www.linuxquestions.org/questi...hreadid=149518

I did have the ffollowing entries in my httpd.conf file.

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

I noticed that it had an entry for .phtml which I don't use. So I added the following line and it worked.

AddType application/x-httpd-php .php .phtml .htm .html

Can anybody explain that to me as that is not the entry on any of my servers.

Regards,

Robby


All times are GMT -5. The time now is 04:09 PM.