<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Increasing MAX FILE SIZE for dreamhost customers</title>
  <link>http://www.activecollab.com/forums/topic/1507/</link>
  <description>Recent posts on topic: Increasing MAX FILE SIZE for dreamhost customers</description>
  <dc:language>en-us</dc:language>
  <pubDate>Mon, 13 Feb 2012 14:56:04 CET</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/11928/#post11928</link>
    <guid>http://www.activecollab.com/forums/post/11928/#post11928</guid>
    <title>Post #5 by bjorn</title>
    <dc:creator>bjorn</dc:creator>
    <description><![CDATA[<p>Ok, thanks! Yep, that looks quite similar to the error messages I was receiving...</p>]]></description>
    <pubDate>Mon, 25 Feb 2008 14:18:59 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11919/#post11919</link>
    <guid>http://www.activecollab.com/forums/post/11919/#post11919</guid>
    <title>Post #4 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>the answers is &quot;maybe&quot;<br />
the fact is after some tests, and the phpinfo() output i get my 150M post_max_size<br />
BUT<br />
all my scrips are broken now (pear, smarty and db_dataobjects) all is broken, receiving this output:<br />
<br />
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/.xxxx/xxx/lib/db/XXXX.php on line 12<br />
<br />
Warning: Unknown(): open(/tmp/sess_h08usedvap5e1l7cn7vju3hc41, O_RDWR) failed: Permission denied (13) in Unknown on line 0<br />
<br />
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0<br />
<br />
i guess the best option is follow the wiki</p>]]></description>
    <pubDate>Mon, 25 Feb 2008 02:39:51 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11918/#post11918</link>
    <guid>http://www.activecollab.com/forums/post/11918/#post11918</guid>
    <title>Post #3 by bjorn</title>
    <dc:creator>bjorn</dc:creator>
    <description><![CDATA[<p>hsurfer, are you sure the .htaccess method works for Dreamhost? I can't get it to work at least (though I've tried it with another upload script than the one that comes with activecollab)<br />
<br />
guess I'm gonna have a closer look at the more lengthy solution...</p>]]></description>
    <pubDate>Sun, 24 Feb 2008 21:43:28 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/11906/#post11906</link>
    <guid>http://www.activecollab.com/forums/post/11906/#post11906</guid>
    <title>Post #2 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>you can use a .htaccess file on your folder:<br />
<br />
AddHandler application/x-httpd-php .php<br />
php_value post_max_size 150M<br />
php_value upload_max_filesize 150M<br />
php_value memory_limit 250M</p>]]></description>
    <pubDate>Sat, 23 Feb 2008 20:04:59 CET</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/7288/#post7288</link>
    <guid>http://www.activecollab.com/forums/post/7288/#post7288</guid>
    <title>Post #1 by [user deleted]</title>
    <dc:creator>[user deleted]</dc:creator>
    <description><![CDATA[<p>For those who use Dreamhost, here is a handy guide to help you increase your maximum file upload size from the default standard 7mb.<br />
I apologize for the crude format of this post... when I get more time I'll clean it up and make it easier to follow... for now these are basically my hastily scribed notes on this topic. <br />
<br />
How to increase maximum file size: You'll need to setup your own PHP.ini<br />
<br />
 <a href="https://panel.dreamhost.com/index.cgi?tree=domain.manage&amp;" target="_blank" rel="nofollow">First verify php5: </a><br />
click &quot;edit&quot; next to domain <br />
<br />
<a href="https://panel.dreamhost.com/index.cgi?tree=users.users&amp;" target="_blank" rel="nofollow">Make sure the username associated with the domain has &quot;shell&quot; access </a><br />
	FTP user / CGI-runs-as user: Username here<br />
<br />
Make a note of the username, machine, and password (available on edit page) (You'll need them later on, in Putty)<br />
<br />
To change, click wrench icon (edit):<br />
	User Account Type:  Shell account - allows FTP plus ssh/telnet access.<br />
 <br />
Click <br />
	&quot;Save Changes&quot;<br />
<br />
<br />
Download &amp; Install PUTTY (free online SSH program)<br />
<br />
Follow the instructions at <a href="http://wiki.dreamhost.com/index.php/PHP.ini" target="_blank" rel="nofollow">http://wiki.dreamhost.com/index.php/PHP.ini</a>, use the following guide to go with the instructions:<br />
<br />
<br />
Type this into PUTTY<br />
	mkdir ~/[your website directory]/cgi-bin<br />
<br />
<br />
create a file called php-copy.sh and put it in your website directory<br />
For PHP5:<br />
<br />
	#!/bin/sh<br />
	CGIFILE=&quot;$HOME/[your website directory]/cgi-bin/php.cgi&quot;<br />
	INIFILE=&quot;$HOME/[your website directory]/cgi-bin/php.ini&quot;<br />
	rsync -a /dh/cgi-system/php5.cgi &quot;$CGIFILE&quot;<br />
	# REMOVE THE FOLLOWING LINE TO CREATE THE UPDATE-ONLY SCRIPT:<br />
	cp /etc/php5/cgi/php.ini &quot;$INIFILE&quot;<br />
		<br />
	perl -p -i -e '<br />
	s/.*post_max_size.*/post_max_size = 100M/;<br />
	s/.*upload_max_filesize.*/upload_max_filesize = 100M/;<br />
	' &quot;$INIFILE&quot;<br />
<br />
Notice how in these lines it is set to 100M<br />
You can change this to whatever you want, I had it set to 500m, and I successfully tested it with a 238MB file upload!<br />
<br />
Where it says:<br />
	More general script with options: <br />
ignore this section<br />
<br />
In PUTTY, if you are using a subdomain to host your aC installation, type <br />
	cd [your website directory]<br />
<br />
Then type:<br />
	chmod +x php-copy.sh<br />
<br />
	dos2unix php-copy.sh<br />
	./php-copy.sh<br />
Create a file called .htaccess in your website directory:<br />
Create the file ~/[your website directory]/.htaccess which contains the lines:<br />
<br />
	Options +ExecCGI<br />
	AddHandler php-cgi .php<br />
	Action php-cgi /cgi-bin/php.cgi<br />
<br />
Type this into PUTTY<br />
	cp php-copy.sh php-update.sh<br />
<br />
<br />
Open the newly-created php-update.sh script in your favorite text editor and DELETE these two lines:<br />
<br />
	# REMOVE THE FOLLOWING LINE TO CREATE THE UPDATE-ONLY SCRIPT:<br />
	cp /etc/php/cgi/php.ini &quot;$INIFILE&quot;<br />
<br />
Then save php-update.sh<br />
<br />
Type:<br />
<br />
	crontab -e<br />
<br />
And then enter the following in the text editor that shows up (replacing 'myusername' with your specific username):<br />
<br />
	@weekly /home/[myusername]/php-update.sh<br />
	<br />
then hit CTRL-X, then ENTER<br />
<br />
You are now ready to upload larger files!</p>]]></description>
    <pubDate>Sat, 24 Mar 2007 20:49:56 CET</pubDate>
  </item>
</channel>
</rss>
