PDA

View Full Version : Slackware - Your Wiki Is Down



frogcenter
09-22-2007, 01:06 AM
I'm running Slackware 11.0 with...

Apache 2.2.4
PHP 5.2.2
MySQL 5.0.24
Mono 1.2.2

The Deki Wiki web files are in /var/www/htdocs/deki-hayes.

I tried to follow the Debian installation guide, but, of course, there were some differences!

My /etc/apache2 directory does not have a sites-available subdirectory, so I wasn't sure where to put deki-apache.conf. I tried putting it in /etc/httpd, /etc/apache2 and /etc/apache2/extra. Since I don't have a sites-enabled subdirectory, I didn't create that symbolic link either.

Although httpd.conf does load an http proxy module, I have no file called proxy.conf. So I wasn't sure where to put those <Proxy> tags.

Finally... I don't have an /etc/init.d subdirectory, so I didn't know where to put dekihost, and did not create a symbolic link to it. I ended up putting dekihost in /etc/apache2.

I was able to successfully complete the web configuration, but when I tried to go to <My IP>/deki-hayes/index.php I was redirected to <My IP>/index.php, which displayed the default Apache "It Worked!" message.

I tried putting the <Proxy> tags right in httpd.conf:

So I ended up just sticking these lines (for no good reason) into httpd.conf instead of proxy.conf:



<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from all
</Proxy>

ProxyPass /@api http://localhost:8081 retry=1
ProxyPassReverse /@api http://localhost:8081
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1


This created some progress. Instead of being redirected to <My IP>/index.php, I ended up with a "Your Wiki Is Down" message.

Here is what my apache2 error log says:



(111)Connection refused: proxy: http: attempt to connect to 127.0.0.1:8081 (localhost) failed
ap_proxy_connect_backend disabling worker for (localhost)


I tried going to <My IP>:8081/deki/@about and got a "Problem Loading Page" in Firefox.

I do have other subdirectories in /var/www/htdocs so I don't want Deki Wiki to be the default site for my IP. I would like to access it by going to <My IP>/deki-hayes/index.php.

I would greatly appreciate any and all suggestions. I obviously don't know much about Linux so I'm out of ideas at this point.

Thank you!

ahathaway
09-24-2007, 04:39 PM
Instead of being redirected to <My IP>/index.php, I ended up with a "Your Wiki Is Down" message.


Sounds like dekihost isn't running. Have you tried restarting it with "/etc/init.d/dekihost restart"?

frogcenter
09-24-2007, 05:19 PM
Well, I don't have an /etc/init.d directory, so I had just put dekihost into /etc/httpd instead. When I try /etc/httpd/dekihost restart, I get a bash-3.1# prompt, but nothing else happens; I still get "Your Wiki Is Down."

ahathaway
09-24-2007, 06:43 PM
Sorry, had I read more closely, I would have picked up on the Slackware mention. It's been a long time since I touched Slackware, but they do, apparently, have a sysvinit package that can create the /etc/init.d directories

I do have to say, just because I feel compelled to, if you have any choice in the matter, Debian is by far and away the easiest distro for installing Deki Wiki. In fact, if you're new to Linux, I think Slackware is a little like learning to swim in the deep end (as opposed to Gentoo, which is also in the deep end...of the ocean). It's great for users who know what they want and who like a clean, stripped-down system, but it's not a learning distro. I recommend that you do yourself a favor and grab the latest Debian network installer (http://www.debian.org/CD/netinst/).

My guess is that while you may get around this problem, many more await you in trying to get Deki Wiki running on Slackware. Debian will let you start using it sooner and allow you to poke around the internals at your leisure.

I'm all for taking the route of lowest frustration when possible.

Cheers,

frogcenter
09-24-2007, 11:26 PM
Unfortunately, we've got a lot of other stuff set up to run on our Slackware install, so it would be changing horses in midstream.