SnippetMaster Support Forums
Return to main website
 
May 14, 2006, 05:53:50 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 14, 2006, 05:53:50 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: A couple of weird things « previous next »
Pages: [1] Print
Author Topic: A couple of weird things  (Read 855 times)
bedwards

Posts: 3


[-] A couple of weird things
« on: October 14, 2002, 07:31:14 PM »

Question  I have a couple if weird things going on...

1. The "Root" path in the config script; if I set the folder to the root dir, I just get an error, stating to check permissions, BUT if I set it to any other folder under the root dir. it works. It will edit & save, but obviously the links to (pre)view are not correct. Also, it doesn't matter wether I chmod to 777 or anything else, I still get the error.

and

2. Every time I go into the edit screen, I get a windows installer that pops up trying to install someting, but after I click cancel a couple of times, it pops up and works just fine.


I just dnloaded the lite version to test it out, and really like it, but will I have these same problems with the Pro version?

Tech:.>

  MSIE 6.x
  WinXP Pro v. 2002

Thanks...
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1430

SnippetMaster Author


WWW
[-] Re: A couple of weird things
« Reply #1 on: October 14, 2002, 10:23:22 PM »

Quote from: bedwards
Question  I have a couple if weird things going on...

1. The "Root" path in the config script; if I set the folder to the root dir, I just get an error, stating to check permissions, BUT if I set it to any other folder under the root dir. it works. It will edit & save, but obviously the links to (pre)view are not correct. Also, it doesn't matter wether I chmod to 777 or anything else, I still get the error.

How are you chmoding the files?  Are you using an FTP program?  Sometimes the FTP program fails to actually chmod.. so make sure you verify this by actually confirming the file display or output from the command, etc..

If you are indeed chmoding the directory (and files that you're trying to modify) to 777, then there is no possible way the program will be causing the error.  If there is an error, then the web server is causing it somehow.  (Sometimes it is a server misconfiguration.. and sometimes a web host will not allow root directory to be chmoded to 777..)  Are the files you're trying to modify actually located in your web root?

Quote from: bedwards
2. Every time I go into the edit screen, I get a windows installer that pops up trying to install someting, but after I click cancel a couple of times, it pops up and works just fine.


 Evil or Very Mad I haven't been able to figure this problem out.  For some reason, I am unable to replicate this problem, even though quite a few people have told me about it.  I've tested on about 40 machines with different configurations.. and none have ever had this problem.  It is driving me nuts, because I really want to solve this!

Quote from: bedwards

I just dnloaded the lite version to test it out, and really like it, but will I have these same problems with the Pro version?


Once these problems are solved with the LITE version, then the PRO version will work exactly the same.  There is no new server dependencies or any other surprises.. just additional features.

Let me know about the chmod thing..
Report to moderator   Logged
bedwards

Posts: 3


[-] A couple of weird things
« Reply #2 on: October 14, 2002, 11:48:21 PM »

Quote
How are you chmoding the files? Are you using an FTP program? Sometimes the FTP program fails to actually chmod.. so make sure you verify this by actually confirming the file display or output from the command, etc..


I have tried both FTP & Telnet. No Luck.

Quote
If there is an error, then the web server is causing it somehow. (Sometimes it is a server misconfiguration.. and sometimes a web host will not allow root directory to be chmoded to 777..) Are the files you're trying to modify actually located in your web root?


The server is mine, and I have quite a few sites on it. It is running the Ensim Management Software, and the root path IS the root for this particular domain, so I have no clue. the actual error is:

SnippetMaster v1.0 ERROR
Unable to change directories to "/home/virtual/site13/fst/var/www/html" (permissions denied), check your permissions and your ROOT setting in "includes/config.inc.php"
FUNC: directoryDropDown().

Quote
I haven't been able to figure this problem out. For some reason, I am unable to replicate this problem, even though quite a few people have told me about it.


To be more specific, the window I get is the Office 2000 installer, both of my computers do the same thing.
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1430

SnippetMaster Author


WWW
[-] A couple of weird things
« Reply #3 on: October 15, 2002, 09:17:22 PM »

Quote from: bedwards
the actual error is:

SnippetMaster v1.0 ERROR
Unable to change directories to "/home/virtual/site13/fst/var/www/html" (permissions denied), check your permissions and your ROOT setting in "includes/config.inc.php"
FUNC: directoryDropDown()


This error is only produced when the following code is being executed:

if(!@chdir($directory))

(Where $directory is the value of your unix path that is shown.)

Basically, the problem is that the script is not being given enough permission to open the directory specified.  If you can absolutely confirm that this folder has read permissions granted to whatever user is running your web server processes, then I will eat my shorts.   Very Happy   What I mean is that this code will work, as long as required permissions are granted.

Can you let me know if you have confirmed that the directory has permissions of 777?  (Maybe try playing with permissions of 775 and other variations..

Let me know how it goes..
Report to moderator   Logged
bedwards

Posts: 3


[-] A couple of weird things
« Reply #4 on: October 16, 2002, 02:16:22 AM »

Quote
If you can absolutely confirm that this folder has read permissions granted to whatever user is running your web server processes, then I will eat my shorts.  Very Happy


Each domain on the server, is its own Virtual Server, and with regard to the path. "/home/virtual/site13/" would be the main folder for this site, but the path "/home/virtual/site13/fst/var/www/html", is the webroot folder for the site. Each site is "sandboxed" using the chroot environment, and the root folder "/home/virtual/site13/fst/var/www/html" has the exact same settings & permissions as "/home/virtual/site13/fst/var/www/html/template", but if I set the root path to "/home/virtual/site13/fst/var/www/html, it does not work. No matter what permissions (chmod) I use, however if I set the root to "/home/virtual/site13/fst/var/www/html/template" it will work just fine, except for the links for (pre)view not being correct, due to the incorrect root path.

Again, each folder has th exact same settings, Permissions, and ownership. I've even gone as far as "chown" of the "/home/virtual/site13/fst/var/www/html" folder to root, apache, nobody, admin, etc., still nothing, but as soon as I change the root path to any folder under the "/home/virtual/site13/fst/var/www/html" folder, it works just fine. ??
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1430

SnippetMaster Author


WWW
[-] A couple of weird things
« Reply #5 on: October 23, 2002, 09:11:11 PM »

I'm not sure what could be the problem, then.   Question   If the folder has adequate permission, then the php function would be able to read it.

The fact that it is failing at that folder means there is either  a problem with the php install on your machine, or that the folder permissions are not correct.

Those are the only two possible explainations..  Sorry!   Sad
Report to moderator   Logged
zedd

Posts: 1


[-] Same problem on Ensim
« Reply #6 on: December 16, 2002, 08:05:59 AM »

I host 12 clients on differnt Ensim servers and get this same problem on all of them. Many PHP scripts have given me this very same problem on these servers.

SnippetMaster v1.0 ERROR
Unable to change directories to "/home/virtual/site13/fst/var/www/html" (permissions denied), check your permissions and your ROOT setting in "includes/config.inc.php"
FUNC: directoryDropDown().

My fix is a pain but simple because I use the same folder structure for every site I design. All content is in a folder with subfolders called "Content". This folder I chmod to 777, set it as my root in the config file. My clients can edit any snippets within this folder structure. The only other problem is how can my client edit snippets on his index page sitting on the root? Simple - use snippet master on an include file (.inc) which is included in your index.html file.

Soooooooooo after all this I'd really like to get to the bottom of this root permissions problem as well.  Funny thing is if I use CGI I have no root issues what so ever. Sometimes PHP drives me completely nuts!
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 1430

SnippetMaster Author


WWW
[-] Re: Same problem on Ensim
« Reply #7 on: December 16, 2002, 09:58:07 PM »

Quote from: zedd
Sometimes PHP drives me completely nuts!


Join the club!   Shocked

Thanks for posting this message. You've got an excellent workaround for the ensim problem.

Cheers!   Very Happy
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: A couple of weird things « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.7.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!