LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2003, 02:35 PM   #16
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15

I have an older version of php 4.2.2-8.0.7....

I see in my httpd.conf file that I have a few references to php (not sure what I'm looking for!) but here is a line that interests me:

AddType application/x-httpd-php .php

It says that it allows you to override the MIME confuration, could that be bad? (now I real newbie as I know nadda about MIME!)

I can certainly comment out the line and restart apache if needs be?

Thanks. Hube
 
Old 03-27-2003, 02:38 PM   #17
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Mmmkayy... Keep that line.

The squirrelmail documentation has references for specific include files and directives for your apache (hhtpd.conf). Better check through those and see if all is well there first.
 
Old 03-27-2003, 03:09 PM   #18
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Kept the line...

I looked on the squirrelmail website and don't find that much. It mentions DirectoryIndex needing to contain index.php (which it does), I know php is working as I can see the web page but I don't really know what other things need to be set. It talks about <directory> but I guess that's just a virtual host to the directory where squirrelmail is located...

My install came from an RPM so I don't know where to find the install docs. I tried man -k squirrel and that turned up nothing...

I will keep digging for docs, at the moment I'm not sure if my httpd.conf is OK or not?...
 
Old 03-27-2003, 08:22 PM   #19
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Any expert out there have any ideas? I found some notes on the squirrelmail forums but there doesn't seem to be a conclusive fix, only really an acknowledgement that the problem exists!

All help gratefully received

Hube
 
Old 03-29-2003, 11:18 PM   #20
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
Just wanted to close the loop on this sucker. I found some help in the php forums. If you have a php.conf file comment out the following lines:

#<Files *.php>
# SetOutputFilter PHP
# SetInputFilter PHP
# LimitRequestBody 524288
#</Files>

Also, in the httpd.conf file add the line:
AddType application/x-httpd-php .php .html .htm .inc
(this should be pretty much default anyway!)

I found this in:

http://bugs.php.net/bug.php?id=19263

I'd hate for anybody to have to go to the hell hole that I've just been to... on the postive side I have fresh installs from src of php and apache!!!
 
Old 03-30-2003, 08:53 AM   #21
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Wow... I wonder if that was just a Red Hat RPM oddity...
 
Old 03-31-2003, 08:20 AM   #22
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
I'm not really sure. I don't recall where I got my php.conf from, I just hope that anybody who stumbles across this problem will find this post and get a quick fix, this took forever to figure out as I was looking at squirrelmail and not php. Still I'm a little wiser now!
 
Old 03-31-2003, 08:49 PM   #23
Hube
Member
 
Registered: Mar 2003
Location: Ann Arbor - US
Distribution: RH 8.0
Posts: 55

Original Poster
Rep: Reputation: 15
I have another machine running RH, this machine has not been touched, real basic install... I only see the following entry for php in httpd.conf:

DirectoryIndex index.php index.html index.htm index.shtml

and in the php.conf file I see:

<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288
</Files>

I think that 'AddType application/x-httpd-php .php .html .htm .inc' on my broken machine and the lines above (<Files**** through </Files>) are in conflict.

I hope this helps somebody!
 
Old 08-10-2003, 06:57 PM   #24
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Rep: Reputation: 15
Thanks this help me too!
 
  


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
email attachments rhb327 Linux - Software 2 11-13-2004 09:08 AM
Attachments in Evolution zenix Linux - Software 2 09-24-2003 07:50 PM
Sendmail and attachments Satriani Linux - Software 2 04-27-2003 12:09 PM
Squirrelmail attachments mail55127 Linux - Software 3 03-12-2003 02:37 PM
squirrelmail : cannot add attachments ilya Linux - Software 3 02-03-2003 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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