dreamhost, php.ini, .htaccess oh my!
Hi~
I realize that this is a well covered topic, but I can't for the life of me find a thread that addresses the issue that I'm experiencing. I am trying to increase my site's max file upload and max post size. I'm hosted on Dreamhost, running off of Drupal 4.7.x I followed Dreamhost's wiki instructions to create a custom php.ini and it did work for me...I was able to increase the upload size. however! i got blitzed by the .htaccess files. Dreamhost's instructions had me create a new .htaccess file to put in the root folder. That I did. My drupal is installed and running in a sub folder. But it appears that two .htaccess files is being rejected?
the Dreamhost .htaccess has the following text in it:
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
I arrive at an error when I try to edit content or post content. I hit submit and I see a blank page. After hitting refresh i see my page but with the following error attached to it:
warning: Cannot modify header information - headers already sent by (output started at /home/.peanuts/mysite/mysite.com/dev/modules/event/event.module:1) in /home/.peanuts/mysite/mysite.com/dev/includes/common.inc on line 268.
This content has been modified by another user, changes cannot be saved.
I looked in the event.module but there wasn't anything wrong with the module. removing the dreamhost .htaccess file takes all the errors away.
I've tried the other methods of increasing the upload size but this is the only one that works for me. If anyone could shed some light on this it would be greatly appreciated.
thank you!!

Upload the Drupal .htaccess
Upload the Drupal .htaccess file then add
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
to the end of it.
Works for me...
Random thoughts
I've used Drupal at Dreamhost in the top dir for a URL and a sub-dir and never needed to change the .htaccess files. And I always enable clean URLs straight away. However, I haven't tried to do what you're doing.
Check the file permissions on the .htaccess files. They need to be readable by the user you're running your web server under. Dreamhost lets you choose this user. From memory you can have two .htaccess files and Apache will combine them in some way. I think the one in the sub-dir will override the top one, but you should check the Apache doco.
I haven't looked at the Dreamhost wiki, but is it possible that the "root dir" in the instructions equates to your sub-dir, ie. it's the "root" of your drupal installation? Hence you only need one .htaccess file and it should be in the sub-dir?
which root?
That's where I'm confused. If it's the root folder of the domain, that's simple, add lines to the top of the .htaccess in Drupal. However, the instructions imply a lower level of root. So a Dreamhost account, is root the home directory of any given user? or is it the home directory of the account owner? or what?
I'll likely direct this to Dreamhost support, just googling for an answer at the moment.
scratch
On a second reading, I don't think the instructions don't imply a lower root. Rather it is for the domain, so simply add the lines to the Drupal .htaccess
I tried putting the
I tried putting the following lines at the end of drupal's .htaccess file:
Options +ExecCGI
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
i got the following error:
Not Found
The requested URL /cgi-bin/php.cgi/dev/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I don't understand where that url is coming from. /dev is the subfolder where i've installed drupal. I've also tried putting just one .htaccess file in the /root folder and also in the /dev folder...and while i was at it i also tried to put the cgi-bin folder in my /root and /dev folder but i got the same error for everything i tried?
It should be /home/username/
It should be /home/username/ for the path where 'username' is your username.
Am i supposed to put that on
Am i supposed to put that on the Action php-cgi /php5/php.cgi line? or is there a different area of the file that requires the path as well? I'm sorry if i'm a bit dense...i've been staring at the files so long i cant tell which way is up~
Scratch that last comment,
Scratch that last comment, it should be /cgi-bin/php.cgi . What it sounds like to me is that you didn't run the php-copy.sh scrip (or edit it correctly).
See: http://wiki.dreamhost.com/index.php/PHP.ini
Sorry about that mix up.
Problem here also
i've followed the same processed as you guys but when i add those lines in my .htaccess file
AddHandler php-cgi .phpAction php-cgi /cgi-bin/php.cgi
Seems like i've lost all references to my linked css files.
It adds "cgi-php/" in front of all of my paths. That's not what i want.
What could be the problem?
I am having this issue too
Please anyone with a way to make this work... it is highly critical.
-Brad