vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Upload of file failed. (Avatars, Attachments, etc...) (https://vborg.vbsupport.ru/showthread.php?t=321692)

squidsk 02-07-2016 12:59 AM

If you do an ls- l what are the owner and group listed? What is the user for your webserver software?

thetechgenius 02-07-2016 04:51 PM

Quote:

Originally Posted by squidsk (Post 2564362)
If you do an ls- l what are the owner and group listed? What is the user for your webserver software?

The owner and group for my website folder (public_html) is Root/Nobody, and the directories and files inside public_html are owned by my web user "ttg001".

I am using CentOS Web Panel for my web control panel.


And I tried to move all attachments, Avatars, etc.. to the database, and it still doesnt let me upload. But it still serves the Avatars though, I can see all users avatars just fine. But when you try to upload a new avatar, it comes up with that error (Upload of the file failed).

I have also tried in combination with installing MySQL on the same server. But the database works either way. Just when I type in the host for MySQL in vB, I have to put the local IP of the server, instead of localhost.

I dont know what could be the problem, I have checked all Permissions, and Ownership. CentOS Web Panel even has a built in option to fix all permissions and ownership for a user, just in case you transfer a file or folder using a root account, you can fix all permissions with a single click.

RichieBoy67 02-08-2016 05:54 AM

I am wondering if this is a firewall issue? Strange that you are not seeing any logs.

squidsk 02-08-2016 06:46 PM

You didn't answer what account your web software, presumable apache, runs on.

Run the command:
Code:

ps aux | egrep '(apache|httpd)'
The account associated with that process needs to be the one that has write access to your web files or uploads won't work.

For example, on standard ubuntu the web server software runs with the www-data account. If that account does not have write access to your forum folder you won't be able to upload into that folder.

RichieBoy67 02-08-2016 09:36 PM

Quote:

Originally Posted by squidsk (Post 2564476)
You didn't answer what account your web software, presumable apache, runs on.

Run the command:
Code:

ps aux | egrep '(apache|httpd)'
The account associated with that process needs to be the one that has write access to your web files or uploads won't work.

For example, on standard ubuntu the web server software runs with the www-data account. If that account does not have write access to your forum folder you won't be able to upload into that folder.

That is exactly what I was trying to say before only you said it much better. :) :up:

thetechgenius 02-17-2016 01:57 AM

Quote:

Originally Posted by squidsk (Post 2564476)
You didn't answer what account your web software, presumable apache, runs on.

Run the command:
Code:

ps aux | egrep '(apache|httpd)'
The account associated with that process needs to be the one that has write access to your web files or uploads won't work.

For example, on standard ubuntu the web server software runs with the www-data account. If that account does not have write access to your forum folder you won't be able to upload into that folder.


This is the output from that command:

Code:



nobody  19550  0.0  0.0  61452  3512 ?        S    14:53  0:02 /usr/local/apache/bin/httpd

nobody  24232  0.0  0.0  61452  3448 ?        S    15:57  0:01 /usr/local/apache/bin/httpd

root    25895  0.0  0.0  59248  3276 ?        Ss  Feb05  0:55 /usr/local/apache/bin/httpd

nobody  29629  0.0  0.0  61452  3468 ?        S    17:32  0:00 /usr/local/apache/bin/httpd

nobody  29772  0.0  0.0  61460  3404 ?        S    17:35  0:00 /usr/local/apache/bin/httpd

nobody  29781  0.0  0.0  61456  3408 ?        S    17:35  0:00 /usr/local/apache/bin/httpd

nobody  29785  0.0  0.0  61596  3484 ?        S    17:35  0:00 /usr/local/apache/bin/httpd

nobody  29907  0.0  0.0  61560  3476 ?        S    17:38  0:00 /usr/local/apache/bin/httpd

nobody  29909  0.0  0.0  61456  3400 ?        S    17:38  0:00 /usr/local/apache/bin/httpd

nobody  29910  0.0  0.0  61540  3436 ?        S    17:38  0:00 /usr/local/apache/bin/httpd

nobody  29923  0.0  0.0  61452  3308 ?        S    17:38  0:00 /usr/local/apache/bin/httpd

root    30792  0.0  0.0 103312  880 pts/1    S+  17:55  0:00 egrep (apache|httpd)

It seems that Root is running Apache/HTTPD. But the way that CentOS Web Panel installs, it installs everything for you.

webmastersun 02-17-2016 05:08 AM

It was not by the problem on your server or some thing else that due to a config on your forum.

You forgot to change it when you moved to a new hosting.

thetechgenius 04-23-2016 03:12 PM

Quote:

Originally Posted by webmastersun (Post 2565088)
It was not by the problem on your server or some thing else that due to a config on your forum.

You forgot to change it when you moved to a new hosting.

What do you mean? What else can I try to fix it?


All times are GMT. The time now is 05:04 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01086 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete