_
_ Handy PHP
ezyrewards - free domains, ipods, vouchers and more
_
_
Tutorials, Scripts, Information And Other Resources arrow Forum
Tuesday, 06 January 2009
_

Refer A Friend using Revolution Money Exchange
Resource Menu
Handy PHP Store
Free Domain Name
PHP Functions
PHP Downloads
PHP Newsfeeds
PHP Tutorials
Webmaster Tools
User Login
TalkPHP
Get friendly help with your PHP problems for free.
www.talkphp.com
The PHP Resource Index
 
Handy PHP
Free PHP Help!

FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:DocMan Repair Module (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:DocMan Repair Module
#153
vujsa (Admin)
Admin
Posts: 142
graph
User Online Now Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 8 Months ago Karma: 5  
Well, I found this thread: http://forum.mamboserver.com/showthread.php?t=30030

It looks like there may be something going on on your end. According to the thread, there may be an issue with your router corrupting the fille during upload. Please try to do as explained in this thread and get back to me is you have any more problems.

vujsa
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#157
floatingworld (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 7 Months ago Karma: 0  
Great module!

However, I'd really like to remove the "handyphp" link when the module is published (Clients don't want this...)

Thanks in advance.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#161
meisner (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 6 Months ago Karma: 0  
Installation was OK (without zlib) but after publishing it i get a warning on the front page:

Warning: copy(/u/mtzurek/public_html/test/administrator/components/com_docman/docman.config.bak): failed to open stream: Permission denied in /u/mtzurek/public_html/test/modules/mod_docman_repair.php on line 92

after check I see that the module was installed by the user "nobody" ...
How can i fix this problem?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#162
vujsa (Admin)
Admin
Posts: 142
graph
User Online Now Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 6 Months ago Karma: 5  
Yes, the module was installed by the server so the server is the owner which is how Joomla / Mambo works. When any bot, module, or component is installed using the built in installer, the server performs the actual file copying and therefore owns the files and directories created.

If you have changed the permissions of any of your DocMan files or directories, then the module will not work.

The error you receive is explained as follows:
The script named "mod_docman_repair.php" was not able to copy the file "docman.config.bak" because the file "docman.config.bak" or the directory it is in is not owned by the server (like it should be by default) and public write permission is not on.

My guess is that at some point in time you had the error that this module fixes and performed some type of manual file upload to the DocMan directory which changed the ownership of the directory to yourself instead of the server.

You have 2 options to get the module to function now:
1. You can uninstall the DocMan Repair Module and the DocMan component, reinstall so that the server owns the files as it should. Be sure to backup your database first and restore it after the reinstall.
2. Change the permissions of "com_docman/docman.config.bak" and "com_docman/" to 777 so that public write permissions are enabled so that the server can write to your file and directory.

The best and most secure method is to do the database backup, uninstall and reinstall but this could be difficult since it seems that some of your file permissions and ownerships are incorrectly set.

Remember, the "nobody" or user "99" file owner is the server. When a script performs a file system action, the server is the user performing that action. So if a script (server) creates a file, the script (server) owns that file!

As a result, on a properly running Joomla installation, all of files for the plugins, bot, modules, and components that are installed using the built in installer are owned by the server.

Hope this helps.
vujsa
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#163
eric777 (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 6 Months ago Karma: 0  
Hey,

I must say this repair module is fantastic. I just used it on a corporate site that I developed. They have over 1000 files and cannot have docman failing on them.

I have a question however, my repair module is not making a backup copy, instead is using the default all the time. This is problematic as there are a few config settings crucial to having the docman system working as the company requires it to.

What actions must I take to ensure that a backup copy can be made and stored in the folder /modules/mod_repair_docman, and of course, used if the config file wipes itself out?

Also, what is the name of the file for backup? I understand the fault is default.docman_config.php.

Thanks so much, I really appreciated it.

Eric
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#164
meisner (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:DocMan Repair Module 1 Year, 6 Months ago Karma: 0  
First, thanks for help!! Now it works! (Or I think so because no warnigs are present and backup config files were created).

vujsa wrote:

QUOTE:
2. Change the permissions of "com_docman/docman.config.bak" and "com_docman/" to 777 so that public write permissions are enabled so that the server can write to your file and directory.


Changing "com_docman/" to -R 777 helped!

QUOTE:

The error you receive is explained as follows:
The script named "mod_docman_repair.php" was not able to copy the file "docman.config.bak" because the file "docman.config.bak" or the directory it is in is not owned by the server (like it should be by default) and public write permission is not on.


I think that here you were not right. There was simply no "docman.config.bak" file. The reason was that server could not copy the "docman.config.php" file as a "docman.config.bak" because in my installation (previous admin of my webpage did that) ALL files are owned by the user!!! Thats why I was so amused that there are some new "nobody" files.

QUOTE:

As a result, on a properly running Joomla installation, all of files for the plugins, bot, modules, and components that are installed using the built in installer are owned by the server.


So as I've said in my installation ALL files (except few created by Docman Repair) are owned be me.<br><br>Post edited by: meisner, at: 2007/06/19 07:51
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

_
 
_
_
© 2009 Handy PHP