How do I enable the *compare versions* feature?
Permalink
I get this message:
You must make /home/upwit0/public_html/markandjudymyers/concrete/config/../libraries/3rdparty/htmldiff.py executable in order to compare versions of pages.
How do I make this file executable?
Thanks!
Mark
You must make /home/upwit0/public_html/markandjudymyers/concrete/config/../libraries/3rdparty/htmldiff.py executable in order to compare versions of pages.
How do I make this file executable?
Thanks!
Mark
First, login to your through ssh, then go into the directory containing the file, and set its permissions like this:
Alternately, if you're not using ssh, many FTP programs will let you set permissions on files. For example, the Mac client Transmit, which I use, will let you do this.
cd /home/upwit0/public_html/markandjudymyers/concrete/libraries/3rdparty/ chmod 755 htmldiff.py
Alternately, if you're not using ssh, many FTP programs will let you set permissions on files. For example, the Mac client Transmit, which I use, will let you do this.
Thanks for the tips.
Knowing that "executable" means changing permissions, I used cPanel to do it.
It seems to me that the majority of people installing C5 would want this feature enabled. Why not include the step in installation directions?
Mark
Knowing that "executable" means changing permissions, I used cPanel to do it.
It seems to me that the majority of people installing C5 would want this feature enabled. Why not include the step in installation directions?
Mark
Due to its location in the directory structure, it's hard to do this automatically. We do try and give you a heads-up using the "caution" icon - but since it's not something that's mission critical on installing we don't force you to do it..
I made a clean install of 5.3.1.1.
The installation page showed "caution" icon so I did just like you mentioned here.
Then, all requirements were marked green so I completed the installation.
However, I realized that I can't compare multiple versions. I can see the single version but when comparing two versions I see the blank window.
Could you tell me how I can make this feature work?
The installation page showed "caution" icon so I did just like you mentioned here.
Then, all requirements were marked green so I completed the installation.
However, I realized that I can't compare multiple versions. I can see the single version but when comparing two versions I see the blank window.
Could you tell me how I can make this feature work?
you need python to be running on your webserver for that to behave.
Thanks for your reply.
Sorry,,,I'm not familir with python.
When I checked functions of the webserver, python was included as a default package.
So I thought that it's running without anything to do on my own.
Is there a way to confirm whether python is runinng or not?
Sorry,,,I'm not familir with python.
When I checked functions of the webserver, python was included as a default package.
So I thought that it's running without anything to do on my own.
Is there a way to confirm whether python is runinng or not?
Does the version compare function work? Then it works.
Could you tell me how to run python?
I am afraid of starting from the installation,,,
I am afraid of starting from the installation,,,
I asked the hosting company whether I need to install python on my own or not. They said to me that it should run when I put the following code.
#!/usr/local/bin/python
when I take a look at htmldiff.py, it's had already that code. It means python should be running but actually it doesn't.
Do you think of any reasons for this problem?
#!/usr/local/bin/python
when I take a look at htmldiff.py, it's had already that code. It means python should be running but actually it doesn't.
Do you think of any reasons for this problem?
Hi!
I know you've chosesen python because you were comforatable with it plus it has better performance than php for multiple pages. But I've no server featuring python.
That's why I'm about implement a javascript or php version. I know php has worse performance for multisite diffs.
That's why I'll try javascript too.
Maybe I'll even try to just create a diff for every diff request and cache it.
I know you've chosesen python because you were comforatable with it plus it has better performance than php for multiple pages. But I've no server featuring python.
That's why I'm about implement a javascript or php version. I know php has worse performance for multisite diffs.
That's why I'll try javascript too.
Maybe I'll even try to just create a diff for every diff request and cache it.
we chose python cause the only decent script we could find to do HTML based DIFFs was written in it, and we figured most nix based server run it. That's all. If you can write or know of another package that does a good job at managing the chaos of diffing a markup language like html, we'd be happy to have it in core. the one we have isn't perfect by any means.
Hey Franz,
I know that diff tools are trickier to build than one might think.
However, I just found this contest at CodeProject:http://www.codeproject.com/script/Awards/View.aspx?cid=358...
Porting such a tool to php should be very easy and I guess someone will post a nice solution on CodeProject - there are already a few working examples available.
Might be worth to keep on the watchlist.
UPDATE: The contest is about text files. Might not work as well for html files. I'm still going to keep an eye on the contest..
I know that diff tools are trickier to build than one might think.
However, I just found this contest at CodeProject:http://www.codeproject.com/script/Awards/View.aspx?cid=358...
Porting such a tool to php should be very easy and I guess someone will post a nice solution on CodeProject - there are already a few working examples available.
Might be worth to keep on the watchlist.
UPDATE: The contest is about text files. Might not work as well for html files. I'm still going to keep an eye on the contest..
I made htmldiff.py executable, but I still get the same error message in the browser when trying to compare versions:
You must make /f5/trio/public/concrete/config/../libraries/3rdparty/htmldiff.py executable in order to compare versions of pages.
I tried to execute ./htmldiff.py from an ssh shell and it returned the error:
-bash: ./htmldiff.py: /usr/bin/python: bad interpreter: No such file or directory
I typed 'which python' and it returned /usr/local/bin/python, so I edited the first line of htmldiff.py to add /local/ to the path. Now when I run ./htmldiff.py from the ssh command line it seems to run normally, returning:
htmldiff: highlight the differences between two html files
usage: ./htmldiff.py a b
But I still can't compare versions of page edits, I get the error about making htmldiff.py executable. Here are the permissions of the file from ls -la:
-rwxr-xr-x 1 me 152939 2009 Jan 20 00:23 htmldiff.py
I'm using Nearly Free Speech.net as a host. concrete5 version 5.3.3.1
You must make /f5/trio/public/concrete/config/../libraries/3rdparty/htmldiff.py executable in order to compare versions of pages.
I tried to execute ./htmldiff.py from an ssh shell and it returned the error:
-bash: ./htmldiff.py: /usr/bin/python: bad interpreter: No such file or directory
I typed 'which python' and it returned /usr/local/bin/python, so I edited the first line of htmldiff.py to add /local/ to the path. Now when I run ./htmldiff.py from the ssh command line it seems to run normally, returning:
htmldiff: highlight the differences between two html files
usage: ./htmldiff.py a b
But I still can't compare versions of page edits, I get the error about making htmldiff.py executable. Here are the permissions of the file from ls -la:
-rwxr-xr-x 1 me 152939 2009 Jan 20 00:23 htmldiff.py
I'm using Nearly Free Speech.net as a host. concrete5 version 5.3.3.1
go to the shell, navigate to the '3rd Party' folder and run this command:
Can't help you on Windows OS - never use that as a server.