Tuesday, January 29, 2013

Error while accessing web sites

I am getting this error while accessing any sites. Issue solved by itself.
Solution : Login to the FG. UTM profiles > select the profile
Add a tick to Allow Websites when a rating error occurs.

Tuesday, January 22, 2013

Alfresco getting stoped while accesing pdf files from document libary

We have an Alfresco Community edition , version 3.4 installed on a Windows 2008 server. We are using this alfresco as our DMS. Yesterday we found some unusual issue in alfresco.
After login, we go for a particular site, select Document Libary, change folder , select PDF at that time alfresco got stopped. We tried to access the docs and xls files in the same site, but no issues, also we checked some other PDFs in other sites no issues.

Solution :
1. In Alfresco server we installed Open Office.
2. Stop Alfresco
3. C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib i have updated fontbox-1.5.0.jar and pdfbox-1.5.0.jar from http://archive.apache.org/dist/pdfbox/ and http://archive.apache.org/dist/pdfbox/1.5.0/
(Old versions in the system are pdfbox-1.2.1.jar and pdfbox-1.2.1.jar)
4. Start Alfresco

Checked the document library, pdf and everything is working fine.
I spend 6 hours for fixing this issue.

Friday, January 18, 2013

Relaying mails in Sendmail

Today i noticed mails are not sending from our bugzilla application. Its a debian box,
first i checked the log files from /var/log/mail.info i can see DEFFERED unable to reach the server

Solution :
add a field called “SMART_HOST” in our Sendmail configuration file:
vi /etc/mail/sendmail.mc
and add the following line near the beginnnig of the file:
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart
tail /var/log/mail.info

Thursday, January 17, 2013

Disabling New Account creation in bugzilla

After installing bugzilla, in the home page itself we can see "New Account" creation link. For disabling this

1. Log in as an Administrator
2. Go to: Administration->Parameters->User Authentication
3. Scan down to the bottom of the screen till you find 'createemailregexp'.
4. Clear out the value in the box
5. Client "Save Changes"

Adding multiple ssl virtual hosting

For this we need to add another ip to the machine.


auto eth0:1
iface eth0:1 inet static

/etc/init.d/networking restart
Check ipconfig -a

NameVirtualHost *:80
Listen 80

<IfModule mod_ssl.c>
    # If you add NameVirtualHost *:443 here, you will also have to change
    # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
    # to <VirtualHost *:443>
    # Server Name Indication for SSL named virtual hosts is currently not
    # supported by MSIE on Windows XP.


<IfModule mod_gnutls.c>
    Listen 443

vi /etc/apache2/sites-enabled/000-default-ssl
<Directory /var/www>
 Options +ExecCGI Indexes FollowSymLinks MultiViews
 AddHandler cgi-script cgi pl
 AllowOverride Limit
 DirectoryIndex index.cgi
 Order allow,deny
 allow from all

how to disable or turn off the ssl_redirect option in bugzilla

Bugzilla setup I made a rookie mistake of enabling SSL without any SSL mods loaded on Apache. Now i can't access Bugzilla site using either https or http
how to disable or turn off the ssl_redirect option

Login to the server
cd /var/www/bugzilla (Your bugzilla document root)
Edit your data/params file, change ssl_redirect to 0.

This helps.