Can you help me.

Started by xxalex, February 28, 2006, 05:16:33 PM

Previous topic - Next topic

xxalex

Hello,
I need some help.
I have tried many backup solutions and still haven't found one i'm happy with.
Apple backup looks good and I certainly won't mind paying for it but I can't really test it with it being limited to 100mb.

I have read this site and this forum and I have tried to set up my own .mac server running on 127.0.0.1

I have tried this 2 ways.
Attempt 1 - using the Server Logistics Apache 2 on OSX 10.4.x
Attempt 2 - using the built in Apache on 10.4.x (More successful - still not working)

Here are the details of attempt 2; I think it's the one with the best chance of working.
I added mod_ssl and added Listen 443 and Listen 80 to my httpd.conf
My servername is set to 127.0.0.1 (Document Root - Webserver/Documents/Localhost/)
I have created a virtual host called mac.com (127.0.0.1 - Document Root -Webserver/Documents/Mac/)
I have created a virtualhost called idisk.mac.com (192.168.1.4 - Document Root -Webserver/Documents/Idisk/)

In my /etc/hosts I added 127.0.0.1 idisk.mac.com and 192.168.1.4 www.mac.com. www.mac.com and disk.mac.com now go to the virtual folders localhost.

I followed the directions on this page (http://developer.apple.com/internet/serverside/modssl.html" target="_blank">http://developer.apple.com/internet/serverside/modssl.html) to create a self signed certificate for 127.0.0.1. (https://127.0.0.1" target="_blank">https://127.0.0.1 now works)
I did the same thing creating certificates for
I created a signed certificate for idisk.mac.com and pointed the virtual host to this certificate in the httpd.conf file (https://idisk.mac.com" target="_blank">https://idisk.mac.com now works - certificate signed by unknown authority)
I created a signed certificate for www.mac.com and pointed the virtual host to this certificate in the httpd.conf file (https://www.mac.com" target="_blank">https://www.mac.com now works - certificate signed by unknown authority)
I told safari to always accept these certificates and added them to my keychain. Then opened them in my keychain and told the computer to always trust them.

My server now resolves the following addresses to my localhost
http://www.mac.com" target="_blank">http://www.mac.com
http://idisk.mac.com" target="_blank">http://idisk.mac.com
https://www.mac.com" target="_blank">https://www.mac.com
https://idisk.mac.com" target="_blank">https://idisk.mac.com
All of these go to the right folders.

I created WebObjects/Info.woa/wa/XMLPRC in the root of my webserver.
I placed the accountInfo script in that directory and made it chmod +x

At this point I am stuck.
How do I tell my server to execute this script when backup looks for it?
I have included this in the virtual host:
<Directory "/Library/Documents/Mac/WebObjects/Info.woa/wa/Query">
   SetHandler cgi-script
   Options +ExecCGI
   Order allow,deny    
   Allow from all
</Directory>
What do I enter in my .mac preferences for my username and password?

Any help would be appreciated.
Best,
Alex

xxalex

Okay.
I've tried again following the instructions on the site.
I run into a problem when I try to connect to my idisk.mac.com.
I get the authentication dialog but it keeps saying the username and password you entered is not valid. Please try again. I know they are definately being typed correctly.

htdigest -c /home/idisk/WebDavUsers iTools alex
I enter password twice when prompted.

I cannot log in with alex and password.

Once I get this solved I need to get the https:// pages to work with apache 2. I'm lost as to why they won't work.

Any thoughts appreciated.
Alex

walinskydotcom

Quote:

htdigest -c /home/idisk/WebDavUsers iTools alex

there is no /home directory on mac osx
are you sure you've got a htdigest file? is apache pointing to this file?
have you studied your Apache error log?

Quote:

How do I tell my server to execute this script when backup looks for it?

You already did (Options +ExecCGI)
.. but again... studying your apache logs will tell you if it's working ok

xxalex

Hello walinskydotcom

Okay - I am much further on!

The following addresses are working. SSl certificates signed and working as well.
http://www.mac.com" target="_blank">http://www.mac.com
https://www.mac.com" target="_blank">https://www.mac.com
http://idisk.mac.com" target="_blank">http://idisk.mac.com
https://idisk.mac.com" target="_blank">https://idisk.mac.com

I can connect to my idisk with username and password from the finder. http://idisk.mac.com/username" target="_blank">http://idisk.mac.com/username

I am having a problem with Backup though.
When I open it, I get this in my logfile:

Quote:


[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] Can't locate XML/DOM.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl  /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at /Users/Shared/mac/WebObjects/Info.woa/wa/XMLRPC/accountInfo line 9.
[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] BEGIN failed--compilation aborted at /Users/Shared/mac/WebObjects/Info.woa/wa/XMLRPC/accountInfo line 9.
[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] Premature end of script headers: accountInfo
[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] Can't locate XML/DOM.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl  /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at /Users/Shared/mac/WebObjects/Info.woa/wa/XMLRPC/accountInfo line 9.
[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] BEGIN failed--compilation aborted at /Users/Shared/mac/WebObjects/Info.woa/wa/XMLRPC/accountInfo line 9.
[Fri Mar 03 21:05:28 2006] [error] [client 192.168.1.3] Premature end of script headers: accountInfo



I'm stuck. I don't know what this means. Have you any ideas how I can fix this? I think this is the only bit preventing Backup from working.
Cheers
Alex


xxalex

Woop! Done. Finally.

Just a wee note to anyone installing on OS X.
You need XML::DOM.pm and it's not included with Perl in Tiger.
To get XML::DOM, you can use cpan that but didn't work for me.

To get round this, install the developer tools.
Then get and install:
libwww-perl-5.803
XML-RegExp-0.03
XML-Parser-2.34
libxml-perl-0.08
XML-DOM-1.44

After this backup will run.

I really wish apple just offered a full trial of backup. I have no use for the rest of the dot mac stuff (except email) and this has been a lot of effort to be able to properly test backup. I hope it's worth it.

Cheers