Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #21  
Old 02-07-2016, 12:59 AM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you do an ls- l what are the owner and group listed? What is the user for your webserver software?
Reply With Quote
  #22  
Old 02-07-2016, 04:51 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
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.
Reply With Quote
  #23  
Old 02-08-2016, 05:54 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am wondering if this is a firewall issue? Strange that you are not seeing any logs.
Reply With Quote
  #24  
Old 02-08-2016, 06:46 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
RichieBoy67
  #25  
Old 02-08-2016, 09:36 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
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:
Reply With Quote
  #26  
Old 02-17-2016, 01:57 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by squidsk View Post
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.
Reply With Quote
  #27  
Old 02-17-2016, 05:08 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #28  
Old 04-23-2016, 03:12 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmastersun View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:44 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.05872 seconds
  • Memory Usage 2,245KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete