Drupal not uploading attachments after moving to DA Server.

alsyka

Verified User
Joined
Oct 24, 2008
Messages
8
So I moved a bunch of sites from a cpanel server to a DA server using the 'cpanel to directadmin' tool (great tool by the way!).

A couple of sites had Drupal installs working perfectly. After the move, the sites can no longer upload attachments either with Drupals upload module or fckeditors upload feature. Both show the file as uploading in the progress bar, but nothing is actually written to the server.

To try and figure out what might be going on, I install Drupal on a different domain on the same server using Softaculous. Same issue with the new install.

I have checked directory permissions, and they are all at 777.

Given that the new install of Drupal acted the same as the moved installs, I'm thinking it is something to do with the way DirectAdmin configures the server..

Any help would be appreciated.
 
This has absolutely nothing to do with DirectAdmin. DirectAdmin does not configure your server, you do. I suggest you hire someone to manage your server.

Now, to answer your question, you can fix this by editing your php.ini file. Increase the max upload, max execution, and max memory.

Again, I strongly recommend you hire someone to manage your server since you are not trained.
 
Prior to posting this request, I had increased the values you suggest in php.ini -- this did not solve the problem.
 
Found the solution:

In the domains DirectAdmin generated httpd.conf file:

changed:

Code:
php_admin_value open_basedir /home/USER/:/tmp:/usr/local/lib/php/

to:

Code:
php_admin_value open_basedir /home/USER/:/tmp:/usr/local/lib/php/:/var/tmp/

All works fine now. Hopefully someone else will benefit from this. If anyone has any suggestions or comments on this fix - please fire away.

NB.. adding this line via the DA interface can be done very easily, and is covered here: http://help.directadmin.com/item.php?id=182
 
Last edited:
Back
Top