[pmwiki-users] How do you creating one, wiki-wide, Upload Directory on Local Site, not remote site?
a.sonderhoff at gassi-tv.de
a.sonderhoff at gassi-tv.de
Thu May 17 14:21:59 CDT 2012
obviously this can’t work. your remote config.php will only affect the remote settings and therefore only manipulate the remote file system. to achieve what you want to do, you will…
1) …either have to mirror the site using something like rsync’ing with the help of a cron job (and have all the problems discussed in an earlier desktop virus scan software thread in this list, which you will probably find in the mailing list archives)
2) …or write some script that does what you need it to do (basically find a way to interface the local and the remote sites).
assuming your primary goal is not to move pages from one pmwiki instance to another and have them cross-reference/load their pages, but rather have a way to scan your uploaded files for malware/viruses/etc, you should probably do one of those things:
a) if you need to run the scan from your workstation, rather than running it on the server itself, the easiest way would be to mount the server directory as a smb share on your local machine (if your remote and local sites are not on the same network, you will probably have to use a vpn tunnel for that). to explain how to do that is kind of out of the scope of this mailing list, as it is not a PmWiki specific question, but more of a general server administration/setup task.
b) you could consider installing a virus scanner (e. g. clamav-server) on your remote site’s server and have it watch your uploads folder and subdirs. this would definitely be a better solution, but users still won’t get feedback why their file has suddenly disappeared. disappearing files is still better than serving malware. and if you have to much spare time on your hand you could even come up with a solution how to have clamav-server tell pmwiki which files had to be removed.
c) you could come up with a new way for pmwiki to upload files (e. g. write a new uploader) which automatically triggers your server’s antivirus software and only successfully moves the file into place after it has been cleared by the av software.
again, this topic is not really related to PmWiki in the first place, since it’s a problem basically every content management system has. you might have better luck searching the web for a more general solution to this problem, or maybe ask this question in a more generalized way on stackoverflow.
On May/17, 2012, at 1957 , Al Louis Ripskis wrote:
> May 17, 2012 8:57 AM a.sonderhoff at gassi-tv.de; Josh wrote:
> $UploadDir = "C:/public_html/pmwiki/uploads";
> $UploadUrlFmt = "http://www.politicaltransformation.org/htdocs/pmwiki/uploads";
>> Did you put these lines in your local or remote site’s local/config.php?
>> Can you clarify what your local and remote sites actually are?
> The remote site is my politicaltransformation.org PmWiki and that's the config.php file that I inserted the above two lines of script.
> Now my local site is the computer I'm operating from that has Windows XP Home OS.
> Thanks again,
>> On May/17, 2012, at 1414 , Al Louis Ripskis wrote:
>>> May 16, 2012 10:11 PM Tamouse wrote: Do I understand this correctly.Let me know if that's the situation so I can respond:
>>>> a) politicaltransformation.org is hosted on a remote site? YES
>>>> b) you are expecting the remote site to understand a path on your local machine? YES
>>>> c) you are further expecting the wiki software to deliver a file to a user by cross-loading it from your local machine? NO. Deliver the user uploaded files to Local Upload directory so they can be checked out by my AVG virus program for viruses, etc..If this is not possible, is there another way to check out automatically whether the uploaded files are infected?
>>> Thanks very much,
>>> -----Original Message-----
>>>> From: tamouse mailing lists
>>>> Sent: May 16, 2012 10:11 PM
>>>> To: Al Louis Ripskis
>>>> Cc: pmwiki-users
>>>> Subject: Re: [pmwiki-users] How do you creating one, wiki-wide, Upload Directory on Local Site, not remote site?
>>>> On Wed, May 16, 2012 at 1:43 PM, Al Louis Ripskis wrote:
>>>>> According to PmWiki Upload Administration instructions all you suppose to do
>>>>> is put this or equivalent in you Config file::
>>>>> $UploadDir = "/home/foobar/public_html/uploads";
>>>>> $UploadUrlFmt = "http://example.com/~foobar/uploads";
>>>>> When I translate the above to my Windows XP OS needs, I come with this:
>>>>> $UploadDir = "C:/public_html/pmwiki/uploads";
>>>>> $UploadUrlFmt =
>>>>> But all this does is create another upload directory on the remote site.
>>>>> I would like to create one, site-wide directory on the local site.
>>>>> How do I do that?
>>>> Do I understand this correctly:
>>>> a) politicaltransformation.org is hosted on a remote site?
>>>> b) you are expecting the remote site to understand a path on your local machine?
>>>> c) you are further expecting the wiki software to deliver a file to a
>>>> user by cross-loading it from your local machine?
>>>> Let me know if that's the situation so I can respond.
>>> pmwiki-users mailing list
>>> pmwiki-users at pmichaud.com
More information about the pmwiki-users