PDA

View Full Version : Upload Attachment not working


Bonesos
04-29-2014, 06:23 AM
Hello,

im move my forum to new VPS Server from Hosting and now i have problem.
I use CentOS 6.5 with Plesk panel to admin my forum + Root account and connection via SSH.

I Have vBulletin 4.2.0 LP4

After change server upload attachments doesnt work but old attachemnts work good.
I Keep attachments on my server here: /var/www/vhosts/windowsmania.pl/httpdocs/upload
And forum see old attachments good

I think i have problem in my php.ini configuration
In diagnostic on admincp show me
file_uploads: On
open_basedir: /var/www/vhosts/windowsmania.pl/httpdocs:/var/www/vhosts/windowsmania.pl/httpdocs/tmp
safe_mode: Off
upload_tmp_dir: /var/www/vhosts/windowsmania.pl/httpdocs/tmp
upload_max_filesize: 64.00 MB

No file uploaded and no local file found. The test cannot continue.

I tried all combinator for open_basedir and upload_tmp_dir like none, /tmp etc.
with CHMOD 777, 1777 via change FTP CHmod or via root ssh.

i dont know how to repair it. I try search on forum resolve but nothing work for me :(
This is onerous becouse nobody cant change avatar, sygnature or upload attachments.

Sorry for my english :) Im from poland
Regards

fxdigi-cash
04-29-2014, 07:04 AM
are you using Apache or Nginx??

besides, attachments have two ways to be uploaded to either your vb board tree or Database!! so which one you are doing??

Bonesos
04-29-2014, 07:06 AM
I use Apache and i use files on ftp (board tree) not database ;)

fxdigi-cash
04-29-2014, 07:09 AM
I use Apache and i use files on ftp (board tree) not database ;)

ok, since this is the case, you need to be sure that Apache allows ftp user to change CHMOD for the folder where you want to store your attachments.

also make sure to insert folder name with ./myattach_folder or whatever you have, not the root file for the web server...

try that and see if that works!!

Bonesos
04-29-2014, 07:40 AM
I create a 2 folder via root and 2 folder via ftp in forum director
./upload2 ./upload3 ./upload4 ./upload5
upload2/ upload3 upload4 upload5/
and with full path with /var/www/*****
and test file to change director work good but after i got No file uploaded and no local file found. The test cannot continue.

I change to test open_basedir and upload_tmp_dir to none for this test.
i try change chmod via ssh a+rwx upload* chmod 0777 upload 1777, 2777, 777 and nothing work :((

--------------- Added 1398761461 at 1398761461 ---------------

i have problem too with change Avatar on forum. Avatar upload too in attachments folder or other?? Or maybe on database ?? i think problem is on my php.ini configurator

fxdigi-cash
04-29-2014, 07:51 AM
I create a 2 folder via root and 2 folder via ftp in forum director
./upload2 ./upload3 ./upload4 ./upload5
upload2/ upload3 upload4 upload5/
and with full path with /var/www/*****
and test file to change director work good but after i got No file uploaded and no local file found. The test cannot continue.

I change to test open_basedir and upload_tmp_dir to none for this test.
i try change chmod via ssh a+rwx upload* chmod 0777 upload 1777, 2777, 777 and nothing work :((

I think you get an error message, can you go to Apache log file and check what it says??

it is usually set up by user, but if you didn't set it up in your web server, you can find it on var/log/apache/error.log it could be this apache2 not apache though...

find the error message first because big chance it is permission issue..

Bonesos
04-29-2014, 07:57 AM
OMG i do a big mistake!

I type upload_max_filesize = 64MB not 64M and thats why i cant upload.
Sorry and thank u for advice!
Please close topic Regards

fxdigi-cash
04-29-2014, 08:02 AM
OMG i do a big mistake!

I type upload_max_filesize = 64MB not 64M and thats why i cant upload.
Sorry and thank u for advice!
Please close topic Regards

:D glad you found the error.

you could look into Apache log file to see what's happening at first :)

Good luck!! :):up: