Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Is this a server issue? Details »»
Is this a server issue?
Version: , by attroll attroll is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-05-2008 Last Update: Never Installs: 0
 
No support by the author.

I do not know which forum to put this post in so I picked what I thought was right. I think this may be a server issue but I am unsure. Let me explain what is going on.

I am having a server problem with one of my VB domains and it is not happening on any of my other VB sites so I am hoping that someone with some experience can shed some light on this and help me fix it.

I have set up my config.php file to use the datastore_cache.php file as VB has designed it to be used. I have set it to CHMOD 777. Then after I access my Admincp and do anything in the Admincp and save it the file reverts back to CHMOD 644 and then I can no longer wrtiten to it. In fact it changes the permissions so that even I can not change it back to CHMOD 777 again.

Let me shed a little light one all I have done to me server lately.

I updated my PHP to PHP 5 about two weeks ago and then I noticed this problem. I don?t know if I can blame this on the PHP5 upgrade or not because I also have four other VB sites running on this server and they do not have this problem.

Can someone shed some light on this that may know what I can do to fix this?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-05-2008, 05:42 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you also set the permission for the ./includes/datastore directory?
Reply With Quote
  #3  
Old 01-05-2008, 06:05 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The directory that is it in is 775. It should not have to be 777. Only the file datastore_cache.php should be 777. But it keeps doing what I mentioned in the first post.
Reply With Quote
  #4  
Old 01-05-2008, 06:46 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try setting the directory to 777 or ensure that it is owned by the user/group that your webserver is running under.
Reply With Quote
  #5  
Old 01-05-2008, 07:22 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok we got it fixed so it stays at 777 but now it does not save changes to the file. I have to do some more digging now.
Reply With Quote
  #6  
Old 01-05-2008, 07:32 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And the current file permissions are?

If the directory in which the file is created is set to 777, then the file should also get the correct permissions, unless the account under which the file is created has a strange UMASK set. Under what user/group is the file created and what is the current owner/group of the directory.
Reply With Quote
  #7  
Old 01-05-2008, 07:38 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The directory that is falls under is 775. It should not have to be 777 should it?

--------------- Added [DATE]1199526297[/DATE] at [TIME]1199526297[/TIME] ---------------

I tried changing the directory to 777 and that did not help either.

If I start out with a new datastore_cache.php file and make it CHMOD 777 and then open up my Admincp it reads the contents from the database into the file and saves the file. Then when I try to delete a forum is says that it was successful but after is says that then it brings up the forum listing again but it it still shows the forum that I just deleted. It seems as though it did not get deleted. I then try to click on the forum that I tried to delete and it says "Invalid forum specified".

To me it seems like it is not writing back to the datastore_cache.php file with the changes but nothign is getting changed. The time changes on the file but nothing I do gets changed.
Reply With Quote
  #8  
Old 01-05-2008, 07:54 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Let's look at some possible causes.

First of all what is the username/accountname under which the site is running?

Next what are the current permissions and user/group for:
- ./includes directory
- ./includes/datastore directory
- ./includes/datastore/datastore_cache.php file

You say that the time is updated on the file but you don't see the changes. Can you verify if the changed data is written to the file or not.

Also are you using any caching mechanism that might be serving an old version of the file?
Reply With Quote
  #9  
Old 01-05-2008, 08:13 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Answer to question #1
For security reasons I will use the name "blaze" instead of the username/accountname that I actually use. Here is the permissions.

Answer to question #2
root@at [/home/blaze/public_html/forum]# ll -d ./includes
drwxr-xr-x 9 blaze blaze 12288 Jan 5 12:42 ./includes/

root@at [/home/blaze/public_html/forum]# ll -d ./includes/datastore
drwxr-xr-x 2 blaze blaze 4096 Jan 5 12:14 ./includes/datastore/

root@at [/home/blaze/public_html/forum]# ll ./includes/datastore/datastore_cache.php
-rwxrwxrwx 1 blaze blaze 225479 Jan 5 15:14 ./includes/datastore/datastore_cache.php*

Answer to question #3
Yes I can view the datastore_cache.php and verify that none of the changes such as adding a forum is getting written to the file.

Answer to question #4
I am unsure of what you mean by this question. I am using the datastore_cache.php file that came with VB 3.6.8 and that is the verision I am upgraded to. Should I try and older file? I looked at all the 3.0 and up versions and they all look the same.
Reply With Quote
  #10  
Old 01-06-2008, 07:09 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

root@at [/home/blaze/public_html/forum]# ll -d ./includes/datastore
drwxr-xr-x 2 blaze blaze 4096 Jan 5 12:14 ./includes/datastore/


Datastore directory should be set to 777

About #4
I am not talking about vBulletin versions. I was suggesting that maybe a caching mechanism used on your server still had an old copy of the file in memory and serving that. But first set the directory permissions correct and take it from there.
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:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04375 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete