305Views19Replies

Author Options:

Rapache- What's up? Answered

Picture of

How would i go around fixing this so that it starts up?  If you look at the bottom of the screenshot it says, "Warning, cannot connect to server"  What server?  How could I fix this and what does in mean?

19 Replies

user
tanmanknex (author)2010-03-22

okay, so i got that message to disappear, but now the site won't load.  when i try to access the website, even from within rapache itself.  I think it might have something to do with the ports in the config files.  I need to change the port to something other than 80, and when the listen isn't 80 it shows the message in the main post.  What should i change in the three files attached to change the ports?  rapache's files say that if you change ports.config you have to change 000-default also.  default is another file that i thought i should attach.  any help would be appreciated.

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)tanmanknex2010-03-22

.  I suggest leaving the port set to the standard 80 - at least until you get the kinks worked out. Everything should work out-of-the-box - if necessary, re-install everything and work with the defaults.

Select as Best AnswerUndo Best Answer

user
tanmanknex (author)NachoMahma2010-03-22

my isp routes port 80 to our modem, is there anything else that i could do?

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)tanmanknex2010-03-22

.  How does your ISP route anything on your LAN? Especially on the same computer?

Select as Best AnswerUndo Best Answer

user
tanmanknex (author)NachoMahma2010-03-22

What i mean is that they block me from serving on port 80.

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)tanmanknex2010-03-22

.  I still suggest that you get it running with the default 80. Once you can pull up a page by using http://192.168.0.1/ (or whatever your local IP is), then change to a different port and see if you can access the server remotely.

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)NachoMahma2010-03-22

.  http://localhost/  may work.

Select as Best AnswerUndo Best Answer

user
gmoon (author)NachoMahma2010-03-23

Or http://127.0.0.1/ -- like NachoM I'm assuming you're running it locally (on the same machine.)

Question: Is the server actually running? (the "httpd" daemon?) You have to explicitly enable Linux to run a service...

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)gmoon2010-03-23

> assuming you're running it locally
.  I was going by the "Document Root: /var/www" from the graphic in the OP. But there could be a Base URL setting somewhere.
.
.  Sounds like there's a good chance the server isn't running. I'm not very familiar with *nix; can you tell him how to find out if the server is actually running or not?

Select as Best AnswerUndo Best Answer

user
gmoon (author)NachoMahma2010-03-23

Try listing all the processes (best to do this as root; or use sudo):

ps -A

if httpd is running, it'll show up there.

"Document root" is on the host machine--the file location that will act as the http protocol root (http://). It's defined in that "default" file. That, and the other config filse indicate that the server should be listening on port 80.

Re: starting the service-- it will depend on the particular Linux variant. Might as well do it the easiest way possible... I'm not familiar with Rapache, but it does look as it can start/stop the server, and show the status.

Select as Best AnswerUndo Best Answer

user
tanmanknex (author)gmoon2010-03-23

okay, so I got the server to work locally but not externally.  Could it be because i'm using a dynamic IP?  How do you set up static if that is the problem?
I ran the ps -A thing and came up with this.
  PID TTY          TIME CMD
    1 ?        00:00:00 init
    2 ?        00:00:00 kthreadd
    3 ?        00:00:00 migration/0
    4 ?        00:00:00 ksoftirqd/0
    5 ?        00:00:00 watchdog/0
    6 ?        00:00:00 events/0
    7 ?        00:00:00 cpuset
    8 ?        00:00:00 khelper
    9 ?        00:00:00 netns
   10 ?        00:00:00 async/mgr
   11 ?        00:00:00 kintegrityd/0
   12 ?        00:00:00 kblockd/0
   13 ?        00:00:00 kacpid
   14 ?        00:00:00 kacpi_notify
   15 ?        00:00:00 kacpi_hotplug
   16 ?        00:00:00 ata/0
   17 ?        00:00:00 ata_aux
   18 ?        00:00:00 ksuspend_usbd
   19 ?        00:00:00 khubd
   20 ?        00:00:00 kseriod
   21 ?        00:00:00 kmmcd
   22 ?        00:00:00 bluetooth
   23 ?        00:00:00 khungtaskd
   24 ?        00:00:00 pdflush
   25 ?        00:00:00 pdflush
   26 ?        00:00:00 kswapd0
   27 ?        00:00:00 aio/0
   28 ?        00:00:00 ecryptfs-kthrea
   29 ?        00:00:00 crypto/0
   33 ?        00:00:00 scsi_eh_0
   34 ?        00:00:00 scsi_eh_1
   35 ?        00:00:00 scsi_eh_2
   37 ?        00:00:00 scsi_eh_3
   38 ?        00:00:00 scsi_eh_4
   40 ?        00:00:00 scsi_eh_5
   44 ?        00:00:00 kstriped
   45 ?        00:00:00 kmpathd/0
   46 ?        00:00:00 kmpath_handlerd
   47 ?        00:00:00 ksnapd
   48 ?        00:00:00 kondemand/0
   49 ?        00:00:00 kconservative/0
   50 ?        00:00:00 krfcommd
  255 ?        00:00:00 usbhid_resumer
  379 ?        00:00:00 kjournald2
  380 ?        00:00:00 ext4-dio-unwrit
  422 ?        00:00:00 mountall
  436 ?        00:00:00 upstart-udev-br
  438 ?        00:00:00 udevd
  610 ?        00:00:00 udevd
  611 ?        00:00:00 udevd
  697 ?        00:00:00 kgameportd
  714 ?        00:00:01 phy0
  757 ?        00:00:00 dd
  759 ?        00:00:00 rsyslogd
  777 ?        00:00:00 dbus-daemon
  796 ?        00:00:00 hald
  797 ?        00:00:00 NetworkManager
  798 ?        00:00:00 avahi-daemon
  801 ?        00:00:00 avahi-daemon
  806 ?        00:00:00 modem-manager
  813 ?        00:00:00 console-kit-dae
  882 ?        00:00:00 hald-runner
  905 ?        00:00:00 wpa_supplicant
  978 ?        00:00:00 hald-addon-rfki
 1005 ?        00:00:00 hald-addon-acpi
 1011 ?        00:00:00 gdm-binary
 1017 ?        00:00:00 hald-addon-stor
 1018 ?        00:00:00 hald-addon-stor
 1027 ?        00:00:00 hald-addon-inpu
 1106 tty4     00:00:00 getty
 1110 tty5     00:00:00 getty
 1115 tty2     00:00:00 getty
 1116 tty3     00:00:00 getty
 1118 tty6     00:00:00 getty
 1125 ?        00:00:00 acpid
 1126 ?        00:00:00 anacron
 1128 ?        00:00:00 atd
 1133 ?        00:00:00 cron
 1189 ?        00:00:00 cupsd
 1275 ?        00:00:00 devkit-power-da
 1302 ?        00:00:00 proftpd
 1386 ?        00:00:00 apache2
 1387 ?        00:00:00 apache2
 1388 ?        00:00:00 apache2
 1417 ?        00:00:00 apache2
 1522 tty1     00:00:00 getty
 1545 ?        00:00:00 gdm-simple-slav
 1549 tty7     00:00:05 Xorg
 1583 ?        00:00:00 dbus-launch
 1602 ?        00:00:00 gdm-session-wor
 1627 ?        00:00:00 gnome-keyring-d
 1642 ?        00:00:00 gnome-session
 1684 ?        00:00:00 ssh-agent
 1687 ?        00:00:00 dbus-launch
 1688 ?        00:00:00 dbus-daemon
 1692 ?        00:00:00 pulseaudio
 1695 ?        00:00:00 gconf-helper
 1697 ?        00:00:00 gconfd-2
 1704 ?        00:00:00 gnome-settings-
 1709 ?        00:00:00 seahorse-daemon
 1711 ?        00:00:00 gvfsd
 1721 ?        00:00:00 gvfs-fuse-daemo
 1726 ?        00:00:00 notify-osd
 1736 ?        00:00:00 compiz
 1807 ?        00:00:02 compiz.real
 1808 ?        00:00:01 gnome-panel
 1809 ?        00:00:00 sh
 1810 ?        00:00:00 gtk-window-deco
 1812 ?        00:00:01 nautilus
 1814 ?        00:00:00 bonobo-activati
 1817 ?        00:00:00 gdu-notificatio
 1819 ?        00:00:00 gnome-volume-co
 1820 ?        00:00:00 update-notifier
 1822 ?        00:00:00 devkit-disks-da
 1823 ?        00:00:00 devkit-disks-da
 1825 ?        00:00:00 bluetooth-apple
 1826 ?        00:00:00 polkit-gnome-au
 1827 ?        00:00:00 nm-applet
 1831 ?        00:00:01 vino-server
 1835 ?        00:00:00 python
 1837 ?        00:00:00 gnome-power-man
 1839 ?        00:00:00 polkitd
 1840 ?        00:00:00 evolution-alarm
 1848 ?        00:00:00 trashapplet
 1851 ?        00:00:00 gvfs-gdu-volume
 1853 ?        00:00:00 gvfs-gphoto2-vo
 1860 ?        00:00:00 gvfsd-trash
 1862 ?        00:00:00 gnome-screensav
 1865 ?        00:00:00 gvfsd-computer
 1872 ?        00:00:00 dhclient
 1886 ?        00:00:00 gnome-keyboard-
 1888 ?        00:00:00 stickynotes_app
 1898 ?        00:00:00 gvfsd-burn
 1925 ?        00:00:00 gvfsd-metadata
 2120 ?        00:00:01 rapache
 2129 ?        00:00:00 evolution-data-
 2133 ?        00:00:00 evolution-excha
 2154 ?        00:00:00 aptd
 2162 ?        00:00:00 gnome-terminal
 2163 ?        00:00:00 gnome-pty-helpe
 2164 pts/0    00:00:00 bash
 2183 pts/0    00:00:00 ps
Anything there that would hint at what's wrong?  Also, when i try to save anything like settings or restart the server from within rapache it freezes up.

Select as Best AnswerUndo Best Answer

user
tanmanknex (author)tanmanknex2010-03-23

one more thing, if i try to run rapache as sudo, it runs fine but when i try to save and stuff it shows this.  this is the entire log from terminal.

This is from when i start it up from when it crashes when i try to restart it from within.

-- Loading plugins --
checking plugin folder : /usr/bin/plugins
checking plugin folder : /usr/lib/rapache/plugins
error loading plugin ssl
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/RapacheCore/PluginManager.py", line 45, in __add
    module = __import__(folder + ".plugin")
ImportError: No module named plugin
loaded plugin : basic_authentication
loaded plugin : advanced
checking plugin folder : /home/username/.rapache/plugins


** (rapache:2350): WARNING **: expected enumeration type PangoWrapMode, but got GtkWrapMode instead
reloading vhosts..
reloading modules..
Errors status: -1

** (rapache:2350): WARNING **: Lock taken by pid: 2120. Exiting.

This is from start to crash when i try to save.

-- Loading plugins --
checking plugin folder : /usr/bin/plugins
checking plugin folder : /usr/lib/rapache/plugins
error loading plugin ssl
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/RapacheCore/PluginManager.py", line 45, in __add
    module = __import__(folder + ".plugin")
ImportError: No module named plugin
loaded plugin : basic_authentication
loaded plugin : advanced
checking plugin folder : /home/username/.rapache/plugins


** (rapache:2358): WARNING **: expected enumeration type PangoWrapMode, but got GtkWrapMode instead
reloading vhosts..
reloading modules..
Errors status: -1

** (rapache:2358): WARNING **: Lock taken by pid: 2120. Exiting.

What do i need to do?

Select as Best AnswerUndo Best Answer

user
gmoon (author)tanmanknex2010-03-24

I've never used Rapache, so I don't know how mature or stable the app is. Nor do I know if there are any dependency issues on your machine.

But there's always other ways to start or stop a particular service...

You might try an alternative like webmin to administer Apache. Webmin is a set of scripts that you access via a browser.

Select as Best AnswerUndo Best Answer

user
gmoon (author)tanmanknex2010-03-24

Looks like the daemon is named "Apache2", so the server does appear to be running. I've always used the 1.X versions ("httpd"). But that's been removed from some distributions.

Are you trying to access the server from your local network (intranet) or outside your network over the larger internet?

I would definitely run with a static IP. How you set that up depends on the distribution you're running. In my experience home routers leave the range of IP addresses between 2-99 out of the pool, so you can use one of those.

There should be a relatively simple way to reconfigure to a static address (locally.) It won't effect your internet browsing, etc.

The IP will be something like this: 192.168.1.24 -- you will chose it manually (the actual net/subnet will depend on the router); a dynamic address will be more like 192.168.1.101

These are local network addresses only--unless you're paying extra for a static IP on the provider's network (but that static IP will be used in the router, not your local network.)

You can use a service like dyndns to create a usable URL for a dynamic IP address. A LARGE number of routers are setup to facilitate this, built-in.

But your service provider might be blocking port 80. Dyndns has some ways around that (some for $$.)

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)tanmanknex2010-03-22

.  BTW, if your ISP is blocking port 80, there is a good chance your contract with them forbids running a web server that is remotely accessible. If they catch you, they can shut you off. :(

Select as Best AnswerUndo Best Answer

user
tanmanknex (author)LoneWolf2010-03-22

it's a graphical interface for the apache server when running linux.

Select as Best AnswerUndo Best Answer

user
LoneWolf (author)tanmanknex2010-03-23

Oh ok. THanks for letting me know.

Select as Best AnswerUndo Best Answer

user
NachoMahma (author)2010-03-22

.  Try starting your web server before starting the management app. You may have to tell the management app the IP address and port of your web server.

Select as Best AnswerUndo Best Answer