Koozali.org: home of the SME Server

Apache broken after installing WEBdav

bart-s

Apache broken after installing WEBdav
« on: February 08, 2006, 10:53:09 PM »
Hello everyone,

I would like to use SME as a WEBdav server to share my calandar using Mozilla Sunbird, Horde Kronolith etc. I've followed this howto to install MODdav: http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav
The howto is written for SME 6.X, and I'm using 7.0pre1 (that's probably the reason why I'm in trouble right now..). I've used this RedHat rpm: mod_dav-1.0.3-5.i386.rpm
Everything worked fine, only this command gave an unspecified error:
 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf

The command to restart apache didn't work, so I rebooted the whole server. Since then, apache seems to be broken. My webbrowser can't establish a connection to the server-manager, so I'm not able tot change anything there. The apache logfile /var/log/httpd/error_log looks normal, so I'm a bit lost right now..

Is there anyone who could help me to get apache working again? The MODdav module doesn't have to work, that's not a big issue at the moment. It would be very great if I can get apache working again to be able to use webmail and the server-manager again..

Thanks!

Offline pfloor

  • ****
  • 889
  • +1/-0
Apache broken after installing WEBdav
« Reply #1 on: February 09, 2006, 06:46:32 AM »
I would like to use SME as a WEBdav server to share my calandar using Mozilla Sunbird, Horde Kronolith etc. I've followed this howto to install MODdav: http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav
The howto is written for SME 6.X, and I'm using 7.0pre1 (that's probably the reason why I'm in trouble right now..).


As stated many places on this site...Contribs and How-to's for earlier versions of SME WILL MOST LIKELY NOT WORK on SME7.  This particular How-to also deals with db settings.  httpd.conf and the db locations have changed so that how-to needs updating for SME7.  See this thred for more info.

http://forums.contribs.org/index.php?topic=27793.0

RedHat rpm: mod_dav-1.0.3-5.i386.rpm

Is this a CentOS4.2 RPM?  If not, it probably won't work.  Remember, SME7 is currently based on Centos4.2.

You can try this to get back where you started:

Remove the RPM
Delete /var/run/davLocks
Delete all those custom templates then re-expand the templates
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
Make sure you don't get any errors.
Restart your web server with
/etc/rc7.d/S86httpd-e-smith restart

This should remove what you did.

Paul
In life, you must either "Push, Pull or Get out of the way!"

bart-s

Apache broken after installing WEBdav
« Reply #2 on: February 09, 2006, 03:04:46 PM »
Thanks for your support! My server is working again!
This has been a good lesson for me...I will not use any howto's written for a previous version of SME again :-)

kloo

Apache broken after installing WEBdav
« Reply #3 on: June 20, 2006, 10:12:49 PM »
I have quite same problem when i use this howto to configure webdav on SME  7Rc3

Each time i do a RPM install, or an ibay creation the httpd.conf file goes wrong and crash apache

this line goes this way :

<Directory
 /home/e-smith/files/ibays/ical/html>
    DAV On
</Directory>

instead of this one

<Directory /home/e-smith/files/ibays/ical/html>
    DAV On
</Directory>

i do a hand correction, a /etc/rc7.d/S86httpd-e-smith restart, and everything works great. But this solution sucks

Any solution ?   :lol:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Apache broken after installing WEBdav
« Reply #4 on: June 20, 2006, 10:15:41 PM »
Quote from: "kloo"
I have quite same problem when i use this howto to configure webdav on SME  7Rc3

Each time i do a RPM install, or an ibay creation the httpd.conf file goes wrong and crash apache

this line goes this way :

<Directory
 /home/e-smith/files/ibays/ical/html>
    DAV On
</Directory>

instead of this one

<Directory /home/e-smith/files/ibays/ical/html>
    DAV On
</Directory>

i do a hand correction, a /etc/rc7.d/S86httpd-e-smith restart, and everything works great. But this solution sucks

Any solution ?   :lol:
I guess there is some sort of return hidden in your template generating this section. Can you verify or post the relevant section so we can verify it?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

kloo

Apache broken after installing WEBdav
« Reply #5 on: June 20, 2006, 10:29:59 PM »
relevant section in httpd.conf file ?

here it is.... my ibay is "ical"

It seems it goes wrong when i play the last command "/sbin/e-smith/signal-event ibay-modify ical"

Code: [Select]
#------------------------------------------------------------
# ical ibay directories (ical)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/ical/html>
    Options None
    Options +Indexes
    Options +IncludesNOEXEC
    <FilesMatch "\.(php|php3|phtml)$">
        order deny,allow
        Deny from all
    </FilesMatch>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "ical"
    AuthType Basic
    AuthExternal pwauth
    require user ical
    Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/ical/cgi-bin>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "ical"
    AuthType Basic
    AuthExternal pwauth
    require user ical
    Satisfy all
</Directory>

<Directory /home/e-smith/files/ibays/ical/files>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
    AuthName "ical"
    AuthType Basic
    AuthExternal pwauth
    require user ical
    Satisfy all
</Directory>


<Directory
 /home/e-smith/files/ibays/ical/html>
    DAV On
</Directory>


<Directory /home/e-smith/files/ibays/Primary/html>
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
    php_admin_value open_basedir /home/e-smith/files/ibays/Primary/
</Directory>


Alias /wpad.dat /etc/httpd/conf/proxy/proxy.pac
<Location /wpad.dat>
    order deny,allow
    deny from all
    allow from 127.0.0.1 192.168.1.0/255.255.255.0
</Location>
Alias /proxy.pac /etc/httpd/conf/proxy/proxy.pac
<Location /proxy.pac>
    order deny,allow
    deny from all
    allow from 127.0.0.1 192.168.1.0/255.255.255.0
</Location>

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Apache broken after installing WEBdav
« Reply #6 on: June 21, 2006, 03:33:00 AM »
There is a howto for webdav for SME7 here ...

http://no.longer.valid/phpwiki/index.php/How%20to%20install%20mod_dav%20on%20SME%207.x

Works no probs

Regards,

Tib

persisto

Webserver down
« Reply #7 on: June 25, 2006, 12:20:36 PM »
Removed and posted elsewhere.

kloo

Apache broken after installing WEBdav
« Reply #8 on: June 25, 2006, 12:33:23 PM »
I solved "my" problem.

Simply when i copied past the 95AddModDav2ibays template from contribs.org to putty (with m$) it adds a unknow line in the code.

I corrected the template and it works fine... It takes me a long while to find that mistake, but i learned a lot of stuff instead.

thx for support

Offline Kobus

  • ****
  • 153
  • +0/-0
    • http://www.fullnet.co.uk
Apache broken after installing WEBdav
« Reply #9 on: July 06, 2006, 01:39:08 PM »
Hi

I have followed the howto in the first post but I need to know if it is at all possible to setup the webdav to make use of usernames and password and not the ibay username and password. I need users to login using their own id's.

Also

can i make it so they can access their own user areas?

i use 6.0.1 or is this a feature on 7?

Thanks in advance

Kobus
Kobus............