LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-10-2008, 03:26 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Iceweasel Can't Handle PHP Files?


I am attempting to install phpBB3 forums on my Debian PC and have installed the following:

- Apache
- libapache2-mod-php5
- MySQL
- PHP5

Now when I go to the directory via HTML browser (Iceweasel) where I extracted phpBB3 into, I get the following window which does not know how to handle a PHTML file. When I attempted this on a RHEL / CENTOS server, Firefox auto loaded the page and allowed me to do the web based installation of the phpBB3 forums.

Am I missing something?

Screenshot
 
Old 02-10-2008, 05:04 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
This seems more of an apache configuration problem, than something wrong with iceweasel. Apache isn't recognising the PHTML file as PHP. Since its not a valid extension.

You'll wna to add phtml to the extension for http something like this:
Code:
AddType application/x-httpd-php .php .php3 .phtml
in your httpd.conf will help. Look for where php is already added.

If your using apache2 check the /etc/apache2/mods-available/php5.conf and php5.load, and run "a2enmod php5" to make sure php is enabled.

Last edited by leonscape; 02-10-2008 at 05:11 PM.
 
Old 02-10-2008, 08:27 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Thanks for your response. I was unable to find anything in my apache.conf file which started with "AddType application" so I am assuming I can simply add this to the bottom of the file?

I am using "apache2" so I checked php5.conf & php5.load and I don't really see anything missing. Also ran "a2enmod php5"

Code:
tunafish:/etc/apache2# a2enmod php5
This module is already enabled!
php5.conf

Code:
tunafish:/etc/apache2# cat mods-enabled/php5.conf 
<IfModule mod_php5.c>
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule>
php5.load

Code:
tunafish:/etc/apache2# cat mods-enabled/php5.load
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Am I missing something?
 
Old 02-10-2008, 08:28 PM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Ah - I rebooted and for whatever reason it now works...!!!

Perhaps a service or module was not running.

Thank you!

/Resolved!
 
  


Reply



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
clicking on links in thunderbird e-mails, firefox can't handle php scripts mbvpixies78 Linux - Software 11 01-02-2008 09:44 AM
Totem can't handle .mp3 files Gins Linux - General 1 11-14-2006 04:39 AM
i installed fc4 wnad my apache should have been configured to handle php file but it' amolgupta Linux - Software 2 04-02-2006 11:22 AM
How to handle big files > 2Go ??? 242VDM242 Linux - Newbie 9 04-06-2005 11:28 AM
ability to handle MS Word files Maidros Debian 3 03-17-2004 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration