LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-23-2004, 08:29 PM   #1
pollardw
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
Question 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
 
Old 02-23-2004, 08:47 PM   #2
pollardw
LQ Newbie
 
Registered: Feb 2004
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
  


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
Apache2.0.52, t1lib-5.0.2, php-apache2-5.0.2 wizard7423 Slackware 2 04-04-2011 08:09 PM
SuSE 10.0, Apache2, MySQL, PHP ? petelogan Suse/Novell 4 10-28-2005 10:14 AM
Apache2, MySQL and PHP broken after updates mazzo Linux - Networking 10 09-15-2005 07:12 AM
Apache2, MySQL & PHP Web Server. FTP Needed! Bobson Linux - Networking 4 02-07-2005 04:25 PM
Solution to ALL MySQL, PHP, Apache2 problems in SuSE SuSE_fan Linux - Software 5 06-03-2004 08:07 AM


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