BTW both WIkidot Home network install and the easier one requires United States installation language and Eastern time…… I live in Australia and it didn't work! It took me a while to work out!
Kenneth Tsang (@jxeeno)
Did you resolve "The site does not exist" issue? I had that problem until I edited my hosts file.
It doesn't make sense that a language/time zone setting would cause the install to fail. I'm in the Central Time Zone, not Eastern, so I don't think that was the issue.
If you have a working install, you should edit my guide to cover the areas that tripped you up and what you did to fix them.
-Ed
Problem Fixed!
Yes! Got it running!
It was because I was running it in LAN and in the GlobalProperties.php file, I set:
Website Address as = "lanwiki"
rather than
Website Address as = "lanwiki.com"
After I changed it, I was working!!!
Language Setting
I tried the Australia option in the install. It failed in most of the apps, some apps like apt-get install ubuntu-desktop memcached
The option with language has to be United States but the Time Zone can be anything. I am going to be changing the guide.
hosts file
I know that the hosts file can not be updated automaticly but are there any solutions?
Kenneth Tsang (@jxeeno)
Congratulations! I forgot about the need for ".com" in the site url. I jumped so many hurdles before finally getting my install working, it's easy to lose track. You can edit the hosts file as the sudo user. Here's a portion of my first home network install guide (without the scripts):
Edit The HOSTS File
- Open the File Browser window you minimized earlier
(or open a terminal window and > $ sudo nautilus again).
- Navigate to the /etc folder and find the hosts file.
- Right-click and Open with "Text Editor"
- Edit the file so it resembles below (the only lines I added are in red).
- Substitute your server name for ejwiki.
- Note that any new wiki sites created will have to be added manually to the hosts file (i.e newwikisite.ejwiki.com)
127.0.0.1 localhost
127.0.1.1 ejwiki.hsd1.mn.comcast.net. ejwiki
127.0.0.1 www.ejwiki.com profiles.ejwiki.com
127.0.0.1 templates-en.ejwiki.com test.ejwiki.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
- Save the file.
Now a problem:
Whenever I attempt to access the site, in the New Users section, Admin is always recreated like this:
;-) Admin 2 seconds ago
When I upload files, it sorta works….
It uploads to http://lanwiki.com/local--files/start/file.file
but it links to http://lanwiki.com/files--sites/start/file.file
which doesn't have anything!
Kenneth Tsang (@jxeeno)
Update!
My site is on the net!
www.tsangs.co.cc
When I upload files, it sorta works….
It uploads to http://www.tsangs.co.cc/custom--domains/www.tsangs.co.cc/files/start/searchninga.jpg
but it links to http://www.tsangs.co.cc/local--files/start/searchninja.jpg
which doesn't have anything!
Kenneth Tsang (@jxeeno)
Sorry, that was just an example. It is not on the real site ;)
(I was browing through wc.info and i just decided to make that as an example)
Thanks,
tsangk
Kenneth Tsang (@jxeeno)
I'm having trouble with "site does not exist" as well. I've checked all the following
in /var/www/wikidot/conf/GlobalProperties.php:
The $url_Domain was set to: server.domain.org
public static $IP_HOST = "ip address given by local dns server";
in /etc/hosts
127.0.0.1 server.domain.org server
in apache.vhost.wikidot.conf file:
<VirtualHost *:80>
ServerAdmin moc.liamg|dw#moc.liamg|dw
ServerName server.domain.org
DocumentRoot /var/www/wikidot/web
and I'm not sure where I'm going wrong; tried so many things my head is spinning.
It looks like a virtual host issue, but I'm not good enough with Apache to determine why it's wrong.
I've run (and rerun and rerun) configure.php and copied the resulting files to see if wikidot sets this stuff
at configuration time, instead of run time.
Specs of wikidot server wikidot is running on
Timezone is set for Eastern/New_York
Running Ubuntu Hardy Heron (8.04), running xubuntu gui
Postgresql 8.3
apache 2.2.9
Checked out most recent version of svn.wikidot.org/repos/wikidot1/trunk
checked out earlier version (260 or 262?) for GlobalProperties.php
Any help or new ideas on how to tackle this would be greatly appreciated. :-)
<reaching for asprin>
April
Hi April,
I feel your pain. The latest revisions have been a difficult to configure because the scripts don't work completely. I have had good success with getting everything running using Lighttpd web server rather than Apache (Lighttpd is what the wikidot.com servers are running on and that's why the latest push has been in that direction). It requires a bit more manual editing of config files, but once all of that is sorted out, it seems to work very well.
Coincidentally, I have spent the last couple of days trying to get an installable package ready to share with the community. I also have a functioning Wikidot v1 virtual machine using VirtualBox.
For you immediate problem, I suggest digging into your conf/wikidot.ini file. GlobalProperties.php isn't really used any more, but you may still need it to get the configuration scripts to run properly. Here's my wikidot.ini file from a working install:
[main]
; the following option determines the master domain for your Wikidot installation
domain = mywikidot.com
; the name of the Wikidot service
service = MyWikidot
[security]
; string that is used to generate unpredictable hashes for authentication
; YOU MUST CHANGE IT or otherwise, anyone can predict the authentication
; cookies and thus steal any session from your users
secret = SomeRandomString
domain_upload = wikifiles.mywikidot.com
[db]
; PostgreSQL connection parameters
host = localhost
user = wd
password = wdpass
database = wd1
[mail]
; simple mail sending parameters
host = smtp.comcast.net
; ssl false for comcast
ssl = false
user = nospam@comcast.net
password = password-not-needed-for-comcast
"The site does not exist" errors mean you are very close to a working install, so don't despair (and go easy on the aspirin!) The problem is usually the domain set wrong or you're missing the site URL in /etc/hosts. Here's a copy of my hosts file:
127.0.0.1 localhost
# 127.0.1.1 mywikidot
127.0.0.1 www.mywikidot.com profiles.mywikidot.com
127.0.0.1 template-en.mywikidot.com template-blog.mywikidot.com
127.0.0.1 mytest.mywikidot.com myblog.mywikidot.com
127.0.0.1 mysandbox.mywikidot.com
## The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Check those things and report back. I'd like to hear another success story.
I hope this helps!
-Ed
[Edit] Remember, Wikidot needs the www.domain-name.com for the base site to work properly.
-Ed
My question posted as a comment to your lighttpd guide eventually brought me here. I have now tried all three main guides i could find (apache, lighttpd, and the virtual machine in VirtualBox) on a Kubuntu 8.10 system with no luck. The lack of an updated vm image and such obviously broken SVN trunk issues as the missing config file is discouraging because wd is so amazing that it really is sad to see it held back from being the most-used wiki engine by a difficult install.
Any additional tips you can give on the matter would be very much appreciated. A newer vm image for VirtualBox would make a nice Christmas present. :)
When they say to polnt the shares on the VM to a "working" install of wikidot, what does that mean? It's awfully hard to get a working WD without a system to get it working on. A bit of a chicken and egg problem…
Are you trying this in a VM or standalone hardware? I haven't looked at Kubuntu. I did run a test install on Ubuntu 8.10 a couple weeks ago and that went OK. I did leave a reply on my web site as well as sending you a PM.
I'll give it a whirl with Kubuntu in a VM and see how it goes.
-Ed
Unfortunately, it's still not working. :-(
I've cut/paste your hosts file into mine, then changed it to my info, and changed the ini file as you suggested.
Same result. :-(
www.myserver.mydomain.org does not work at all; is wikidot's requirement of a www site is a requirement of wikidot or of wikidot on apache?
Another source of the pain could be our choice of dns addressing — we've made our local static ip address as a record in our dns table (or I should say our dns provider did that for us). Internal to our network, it resolves correctly — do:
nslookup myserver
and you get the right address, along with:
myserver.mydomain.org
externally, you wouldn't get a valid address.
Could this also be the source of the problem/headache?
Thanks in advance,
April
<icepack on head>
Is your server named myserver.mydomain? If so, your hosts file should have entries like:
127.0.0.1 www.myserver.mydomain.org
Are you trying to hit your wikidot install by using a browser on the server or from another machine on your network? If you're using another PC on the network, you may have to edit the hosts file on that PC to match the servers host file, but substituting the internal IP of your server for the 127.0.0.1 in the server's host file.
If your server is named just myserver that might be the issue. Try renaming your server to myserver.mydomain and see if that does the trick.
The other issue may be your DNS settings. From a client PC on your network, does ping www.myserver.mydomain.org return the IP address of your server? If not, you may need to edit the DNS so *.myserver.mydomain.org points back to your server. I'm getting a bit over my head with editing DNS entries, so I may be way off on this. Editing the hosts file on the client PCs is the method I use on my home network.
Can you post your wikidot.ini and hosts files (leaving out any sensitive info, of course)?
I can try to mimic your setup on my virtual machine with Apache server to see if I can duplicate the problem.
Hang in there! I'm confident we can get this figured out.
-Ed
Don't know what happened to the original reply, but here it goes:
Here's the ping results:
myserver.mydomain.com Right IP
www.myserver.mydomain.com "could not find host"
When changing the host file on an XP client
to:
<my ip address> www.myserver.mydomain.com
both of the above test succeed. (of course).
In all four ping tests, wikidot site still doesn't come up saying, "This site does not exist". (I'm starting to believe it….)
The server is running on the same network, has the same subnet mask, same gateway, and is on the same subnet as the client. It's a static ip that the wikidot server is running on (another no brainer here, but felt it was important to say).
Here's the copies of the wikidot.ini & hosts files from the box that wikidot is (well not at the moment) running on:
/var/www/wikidot/wikidot.ini:
[main]
; the following option determines the master domain for your Wikidot installation
domain = mydomain.org
; the name of the Wikidot service
service = myserver
[security]
; string that is used to generate unpredictable hashes for authentication
; YOU MUST CHANGE IT or otherwise, anyone can predict the authentication
; cookies and thus steal any session from your users
secret = very secret password dont tell anyone
domain_upload = myserver.mydomain.org
[db]
; PostgreSQL connection parameters
host = localhost
user = wd
password = wdpass
database = wd1
[mail]
; simple mail sending parameters
host = gmail.com
ssl = true
user = your-mail-user
password = your-password
/etc/hosts:
127.0.0.1 localhost
127.0.0.1 www.myserver.mydomain.org profiles.myserver.mydomain.org
127.0.0.1 template-en.myserver.mydomain.org template-blog.myserver.mydomain.org
127.0.0.1 mytest.myserver.mydomain.org myblog.myserver.mydomain.org
127.0.0.1 mysandbox.myserver.mydomain.org
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
If you can come up with an answer, Thanks! Good luck and I'll keep the ice pack & asprin handy. :-)
April
OK, I think I see the issue. In Wikidot.ini change:
[main]
; the following option determines the master domain for your Wikidot installation
domain = mydomain.org
to:
[main]
; the following option determines the master domain for your Wikidot installation
domain = myserver.mydomain.org
Also, make sure you named your Wikidot server myserver.mydomain (without the .org).
You've actually got your Wikidot server running on a subdomain. The domain= line needs to have everything except the www. portion of the url to your main Wikidot site.
It might actually be easier to configure if you took mydomain completely out of the equation and just use myserver.org, effectively making your server appear as a top level domain rather than a subdomain.
However, running it on a subdomain should work fine. I've done that in the past with a dynamic DNS service before.
You'll probably have to continue to edit the client PCs hosts file for this to work. I assume you're running this totally inside your local network and don't need to open your server up to the outside world, right?
My fingers are crossed. Let me know if this works!
-Ed
[edit] I forgot mention that you will not want to use any private sites with Apache web server at this point. It will mostly work, but you'll have issues with accessing attached files. Since it looks like you're on a private network, that may not be an issue for you.
If you need to make any private sites, you should reconfigure your server to use Lighttpd web server instead. I've nearly got all of the configuration steps fully documented for that type of install and would be happy to try and help guide you through that process if you want to invest in some more ice and aspirin! ;)
Sure, I'll switch to lighttpd; at first, I didn't want to do that at because it might have complicated
your diagnostics. :-)
This is for an intranet site & they're really hooked on wikidot, so one more shot is ok. I'll install lighttpd and if you have any thing I should be changing out of the ordinary, please let me know!
April :-)
April,
I haven't tested this by trying to make a Lighttpd install work on top of a working Apache install, but my "work in progress guide" here: http://my-wd-local.wikidot.com/guide:ubuntu-8-04-with-lighttpd-install
might work if you do this:
sudo su -
apt-get install lighttpd php5-cli
lighty-enable-mod cgi
and pick it up from the "Edit Config Files" step (substituting wikidot for wikidot1 in the paths).
You'll also have to disable the Apache server service so Lighttpd can run without conflict.
If I have time, I'll try to test this soon. You never did say… Did you get your install finally running?
-Ed
Based on the information you provided, I was able to mimic your install on a virtual machine and it's working great!
I posted the details on my wiki here:
Configuring Wikidot On A Subdomain
My site is still not quite ready for prime-time, but I've got a few articles that may help you out (under the Article Index link).
Is it time to toss the aspirin and pop the cork?
Please let me know if anything is not clear or you find errors in what I documented.
-Ed