Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: MasterSleepy on April 03, 2006, 10:23:28 AM

Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: MasterSleepy on April 03, 2006, 10:23:28 AM
Hello all,

I've just finished my adaptation of my contribs of managing apache error page, so now it can work on sme server 7.
For download it's here (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewsdownload)

Regards,
Title: Re: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on April 03, 2006, 10:49:18 PM
Quote from: "MasterSleepy"
Hello all,

I've just finished my adaptation of my contribs of managing apache error page, so now it can work on sme server 7.
For download it's here (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewsdownload)

Regards,


Master Sleepy,

I used the one for sme6, but I found that I could not create individual errordocumments for the individual ibays.  All of them pointed to the same file location.  Is that still supposed to be a feature with this version?  If so, I'll test it.  Where do you want your feedback, here or in the bug-tracker?

JB
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: MasterSleepy on April 05, 2006, 10:05:47 AM
Hello,

Normally it should have same effect that the old one.

For bug, I'll ask for new component soon for this contrib.

Regards.
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on May 07, 2006, 01:35:57 AM
Quote from: "MasterSleepy"
Hello,

Normally it should have same effect that the old one.

For bug, I'll ask for new component soon for this contrib.

Regards.


Master Sleepy,

I don't know if you have a bug section yet, but using the 1.2-1 version of the RPM, when creating a customer error page for the Primary ibay, I get an operation status report - an error occurred while modifying the ibay.

Here is the info from /var/log/messages:

May  6 18:29:32 www /etc/e-smith/web/panels/manager/cgi-bin/apacheerror[4603]: /home/e-smith/db/accounts: OLD Primary=ibay|CgiBin|enabled|Group|shared|Modifiable|no|Name|Primary i-bay|PasswordSet|no|Passwordable|no|PublicAccess|global|Removable|no|UserAccess|wr-admin-rd-group
May  6 18:29:32 www /etc/e-smith/web/panels/manager/cgi-bin/apacheerror[4603]: /home/e-smith/db/accounts: NEW Primary=ibay|CgiBin|enabled|Group|shared|Modifiable|no|Name|Primary i-bay|PasswordSet|no|Passwordable|no|PublicAccess|global|Removable|no|UserAccess|wr-admin-rd-group|err404|/home/e-smith/files/ibays/Primary/404.html
May  6 18:29:34 www esmith::event[4604]: Processing event: ibay-modify  
May  6 18:29:34 www esmith::event[4604]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
May  6 18:29:35 www esmith::event[4604]: expanding /etc/shells  
May  6 18:29:35 www esmith::event[4604]: expanding /etc/hosts.allow  
May  6 18:29:36 www esmith::event[4604]: expanding /etc/hosts.deny  
May  6 18:29:36 www esmith::event[4604]: expanding /etc/proftpd.conf  
May  6 18:29:37 www esmith::event[4604]: expanding /etc/services  
May  6 18:29:37 www esmith::event[4604]: expanding /etc/securetty  
May  6 18:29:37 www esmith::event[4604]: expanding /etc/samba/smbusers  
May  6 18:29:37 www esmith::event[4604]: expanding /etc/samba/smb.conf  
May  6 18:29:39 www esmith::event[4604]: expanding /etc/httpd/conf/httpd.conf  
May  6 18:29:42 www esmith::event[4604]: expanding /etc/atalk/AppleVolumes.default  
May  6 18:29:43 www esmith::event[4604]: expanding /etc/pam.d/passwd  
May  6 18:29:43 www esmith::event[4604]: generic_template_expand=action|Event|ibay-modify|Action|generic_template_expand|Start|1146958174 265845|End|1146958183 301548|Elapsed|9.035703
May  6 18:29:43 www esmith::event[4604]: Running event handler: /etc/e-smith/events/ibay-modify/S15ibay-modify
The below line is what needs to be investigated.  I'll look to see if I can find anything in the S15ibay-modify event as well..
May  6 18:29:44 www esmith::event[4604]: Couldn't find  record in accounts db  

May  6 18:29:44 www esmith::event[4604]: S15ibay-modify=action|Event|ibay-modify|Action|S15ibay-modify|Start|1146958183 303504|End|1146958184 539288|Elapsed|1.235784|Status|65280
May  6 18:29:44 www esmith::event[4604]: Running event handler: /etc/e-smith/events/actions/adjust-services
May  6 18:29:45 www esmith::event[4604]: adjusting supervised smbd (sighup)  
May  6 18:29:45 www esmith::event[4604]: adjusting supervised smbd (up)  
May  6 18:29:45 www esmith::event[4604]: adjusting supervised httpd-e-smith (sigusr1)  
May  6 18:29:45 www esmith::event[4604]: adjusting supervised httpd-e-smith (up)  
May  6 18:29:47 www esmith::event[4604]: adjust-services=action|Event|ibay-modify|Action|adjust-services|Start|1146958184 540774|End|1146958187 500265|Elapsed|2.959491
May  6 18:29:47 www esmith::event[4604]: Running event handler: /etc/e-smith/events/ibay-modify/S90atalk-reload
May  6 18:29:48 www afpd[3221]: re-reading configuration file
May  6 18:29:48 www afpd[3221]: Loading ConfigFile
May  6 18:29:48 www afpd[3221]: Can't register www:AFPServer@*
May  6 18:29:48 www afpd[3221]: ASIP started on 10.10.10.43:548(7) (2.0.3)
May  6 18:29:48 www afpd[3221]: uam: loading (/usr/lib/uams_dhx.so)
May  6 18:29:48 www afpd[3221]: uam: uams_dhx.so loaded
May  6 18:29:48 www afpd[3221]: uam: loading (/usr/lib/uams_pgp.so)
May  6 18:29:48 www afpd[3221]: uam: uam not found (status=-1)
May  6 18:29:48 www afpd[3221]: uam: "DHCAST128" available
May  6 18:29:48 www afpd[3221]: Finished parsing Config File
May  6 18:29:48 www esmith::event[4604]: S90atalk-reload=action|Event|ibay-modify|Action|S90atalk-reload|Start|1146958187 502262|End|1146958188 767324|Elapsed|1.265062


The bolded line is where the errors at.

Thanks,

John Bennett[/b]
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on May 07, 2006, 02:12:28 AM
I am seeing three issues.  Here is what I see.  I have two ibays.  

1.  When you create an errordocument from your panel for the primary ibay,  every ibay gets the same line.  I. E.
<Directory /home/e-smith/files/ibays/Primary/html>
    ErrorDocument 404 /home/e-smith/files/ibays/Primary/404.html
</Directory>

<Directory /home/e-smith/files/ibays/mine/html>
    ErrorDocument 404 /home/e-smith/files/ibays/Primary/404.html
    ErrorDocument 404 /home/e-smith/files/ibays/mine/html/mine404.html
</Directory>

2.  But, the output needs to be in this format:
<Directory /home/e-smith/files/ibays/Primary/html>
    ErrorDocument 404 /404.html
</Directory>

Then this works fine.  

3.  The errordocument I create for my other ibay doesn't work as it's looking for the file in the primary Ibay.  Here is an excerpt from my httpd/error_log:
[Sat May 06 19:00:20 2006] [error] [client 10.10.10.103] File does not exist: /home/e-smith/files/ibays/Primary/html/mine404.htm

My 404 errordocument for the mine ibay is mine404.htm.  But, if I move the file to Primary/html, then that error document works as well.  Also the format for ibays needs to be the same as above:
<Directory /home/e-smith/files/ibays/mine/html>
    ErrorDocument 404 /mine404.html
</Directory>

From my reading, it looks like it has to be this way because SME doesn't have a separate virtualhost section for every ibay.

Hope that makes sense.  This is also the same behavior I see with the version I am running on sme 6.

I can't propose any changes at the moment, because I haven't tried to look at the code yet.

Thanks a lot,

John Bennett
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on May 07, 2006, 05:58:30 AM
OK, so I actually re-read you instructions on the panel and found that I was interpreting them incorrectly.  So, the only real two issues are that whatever you put in for the primary ibay gets written to every ibay and all of the error document files must be located in the Primary ibay as well.

JB
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on May 08, 2006, 03:48:48 AM
And here are my last comments on this.  The error only comes up when modifying the primary ibay errordocument content.  I suspect it's because the Primary ibay doesn't have a Uid or Gid assigned.

Also, I just created a third ibay and modified it's error document content.  Here are the results in my httpd.conf file

<Directory /home/e-smith/files/ibays/Primary/html>
    ErrorDocument 404 /404.html
</Directory>

<Directory /home/e-smith/files/ibays/mine/html>
    ErrorDocument 404 /404.html
    ErrorDocument 404 /mine404.html  
</Directory>

<Directory /home/e-smith/files/ibays/two/html>
    ErrorDocument 404 /404.html
    ErrorDocument 404 /mine404.html
    ErrorDocument 404 /two404.html
</Directory>

So, as you can see each subsequent ibay gets the added content of the other ibays, instead of just getting its own content added.  The specific errordocuments do work as long as you put them in the Primary ibay.  If you need more info, please let me know.

JB
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: MasterSleepy on May 08, 2006, 08:58:37 AM
Hello mrjhb3,

Great thanks for this feedback.
I'll take a close look at that and correct contribs.
It will be done soon ;-)

Regards.
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: cactus on May 08, 2006, 05:01:18 PM
Maybe this is something to implement: http://www.interworx.com/forums/archive/index.php/t-12.html

I did it for my own server, not completely finished though. This way you can:
- internationalize your error messages (based on the language settings in the browser of the user viewing your site)
- customize your error message to match the design of your site.
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: mrjhb3 on July 12, 2006, 04:43:18 AM
Quote from: "MasterSleepy"
Hello mrjhb3,

Great thanks for this feedback.
I'll take a close look at that and correct contribs.
It will be done soon ;-)

Regards.


MasterSleepy, have you done any more work on this?

JB
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: MasterSleepy on July 12, 2006, 08:37:21 AM
Hello mrjhb3,

I totally forgot that.
I'll try to correct it this week.

Sorry...
Title: [Announce] smeserver-apache-error-1.2-1.noarch.rpm
Post by: MasterSleepy on July 12, 2006, 08:58:27 AM
Hello,

Correction done.

Here is the new version.
smeserver-apache-error-1.2-2.noarch.rpm  (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=282)
smeserver-apache-error-1.2-2.src.rpm  (http://www.vanhees.cc/index.php?name=CmodsDownload&file=index&req=viewdownloaddetails&lid=283)

Regards.