Koozali.org: home of the SME Server

WebDAV to edit PHP source code

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
WebDAV to edit PHP source code
« on: September 06, 2005, 10:53:42 PM »
On http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav
there is a wonderful tool. Thank you Laurent!
I have used it on SME 6.01-01 w/o any problem .... BUT (there are allways a BUT!)

I´d like to use Webdav to edit PHP code and php code in interpreted.
So I search and found this: http://httpd.apache.org/docs/2.0/mod/mod_dav.html#complex
Say some changes must be done.

So I changed 95AddModDav2ibays  to:
    $OUT .= "\nAlias /$key-src /home/e-smith/files/ibays/$key-src/html\n";
    $OUT .= "\n<Directory /home/e-smith/files/ibays/$key-src/html>\n";
    $OUT .= "    DAV        On\n";
   $OUT .= "    ForceType text/plain\n";
    $OUT .= "deny from all\n";
    $OUT .= "allow from X.X.X.X\n";
   $OUT .= "</Directory>\n";

but:
1) If I do not put deny/allow lines, he asked for authentication and this iBay is configurated to "local network only w/o password" :)
2) If I put these lines I get error 53 on net use!

Could someone please help me with this?

Or what do you use to edit php code?

I have tryed with FTP (just opening for ONE ip address: programmers IP, just to be in safe side) , but got a error on directories with more than 30/40 files...  give-me a timeout error. So I´m trying with webDAV, but do not work for php code!

Thanks

Jáder
...