LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-11-2004, 08:25 AM   #1
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
[Sarge] Apache & PHP pages load as phtml w/ Save dialog


I run a vanity server with Squirrelmail and Gallery and the occasional php page I've cobbled up.

After a dist-upgrade this morning, Apache & Gallery were upgraded. Now, Apache no longer serves php pages. I get the "Save As" dialog that complains I have tried to open a file that is type: application/x-httpd-phtml.

Ideas?

Code:
llamakc:/etc/apache# apache -V
Server version: Apache/1.3.31 (Debian GNU/Linux)
Server built:   Aug 30 2004 07:58:02
Server's Module Magic Number: 19990320:16
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=4096
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/lib/apache/suexec"
 -D DEFAULT_PIDLOG="/var/run/apache.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache.scoreboard"
 -D DEFAULT_LOCKFILE="/var/run/apache.lock"
 -D DEFAULT_ERRORLOG="/var/log/apache/error.log"
 -D TYPES_CONFIG_FILE="/etc/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache/httpd.conf"
 -D ACCESS_CONFIG_FILE="/etc/apache/access.conf"
 -D RESOURCE_CONFIG_FILE="/etc/apache/srm.conf"
Code:
llamakc:/etc/apache# cat modules.conf
# Autogenerated file - do not edit!
# This file is maintained by the apache package.
# To update it, run the command:
#    /usr/sbin/apache-modconf apache
ClearModuleList
AddModule mod_so.c
AddModule mod_macro.c
LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so
LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so
LoadModule status_module /usr/lib/apache/1.3/mod_status.so
LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so
LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so
LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so
LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so
LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so
LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so
LoadModule access_module /usr/lib/apache/1.3/mod_access.so
LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so
LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so
LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so
LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so
LoadModule ssl_module /usr/lib/apache/1.3/mod_ssl.so
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php index.htm index.shtml index.cgi index.pht\
ml
</IfModule>
and

Code:
 # And for PHP 4.x, use:
 #            
 AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

Last edited by llamakc; 09-11-2004 at 08:30 AM.
 
Old 09-11-2004, 08:31 AM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Original Poster
Rep: Reputation: 31
Apache & PHP pages save as type phtml w/save as dialog

Sorry for futzing the Subject. D@mn.
 
Old 09-11-2004, 11:19 AM   #3
Wandering_Dru
Member
 
Registered: May 2004
Posts: 32

Rep: Reputation: 15
I had this problem the other day. I noticed that PHP apache module had been uninstalled for some reason. I just reinstalled it all was well.

I did also have to clear my browser cache before it would stop bringing up the save dialog.
 
Old 09-11-2004, 11:43 AM   #4
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Original Poster
Rep: Reputation: 31
Yeah I saw that too. I re-got libapache-mod-php4 and made sure this was in modules.conf:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so

Restarted apache, and cleared my cache.

I've checked out the bugs.debian.org and saw some similar problems, but they were marked as solved.

I tried a simultaneous apache2 install and same issue exists.
 
Old 09-11-2004, 03:42 PM   #5
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Original Poster
Rep: Reputation: 31
Fixed. I'm an idiot. I kludged the Application-Type line for .php. ARRGHH!!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's up with Sarge mcmike1214 Debian 6 07-15-2005 01:44 PM
Sarge and 2.6.10 fatman Debian 8 03-09-2005 04:40 PM
Any new of Sarge? atheist Debian 2 09-22-2004 09:05 PM
Where Sarge Needs Work (some questions too) + Where Sarge Rocks out loud too. ilyanep Debian 6 09-13-2004 05:36 PM
Sarge and X orange400 Debian 3 06-10-2004 09:47 AM

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

All times are GMT -5. The time now is 08:30 PM.

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