Failed loading /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so: /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
Okay that was the message which I got during the hypervm stop. And the solution..
Simplest solution was to disable selinux. But proper solution can be using chcon to change the context
chcon -t texrel_shlib_t /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so
chcon "user_u:object_r:httpd_sys_content_t" /usr/local/lxlabs/ext/lib/Zend/lib/Optimizer-2.5.7/php-5.2.x/ZendOptimizer.so
should fix it.. I havent confirmed but hopefully proper solution will work.
Monday, December 10, 2007
hypervm errors. Zend error
Posted by
HJKL a.k.a h2l
at
3:39 AM
0
comments
Tuesday, December 04, 2007
Technical Quiz a.k.a Cyber Quiz
I am hereby starting a series of Quizing sessions to test yours and improving my knowledge, which I left updating since the last 3 years. These quizzes are not compiled by me, instead took from various sources, online and print. At a time the number of questions, wont exceed a max of 20.
So there you go, hovering the mouse over the Answer will give you the answers
- What is Google's open operating system for mobile phones called ?
Answer - Which telecom major is the biggest stakeholder in Symbian Ltd?
Answer
- What is 'zoo' in context of security ?
Answer
- Nigel Clifford is the CEO of .... ?
Answer
- Who has Peter Dengate Thrush replaced as the Chairman of ICANN ?
Answer
- What was founded in July 1990 by Mitch Kapor, John Gilmore, and John Perry Barlow ?
Answer
- The graphics Processing Unit used in Nintendo's Wii video fame console is called ... ?
Answer
- What in the context of Linux is "bash"
Answer
- The maximum packet length of IP, including the IP header is ........................ bytes
Answer
- What is 'Wardriving' ?
Answer
Posted by
HJKL a.k.a h2l
at
9:46 PM
0
comments
Labels: Cyber Quiz, Quiz, Technical Quiz
Sunday, November 25, 2007
Multiline search and replace using sed
I had to code in to remove a host entry from hosts.cfg file of nagios. Here is a bit of superb code to do so..
sed '/#/{:a;N;/\}/!ba;/212.217.202.112/s/#.*\}//;}' hosts.cfg
That will remove the entire block starting with "# '212.217.202.112' host definition" and ending in "}"
Obfuscated code eh ? Not so..learn about registers in sed!!
Posted by
HJKL a.k.a h2l
at
1:46 AM
0
comments
Labels: bash scripting, Linux, sed
Sunday, May 20, 2007
How to remove the mails from exim mail queue based on certain keywords ( cPanel specific )
How to remove the mails from exim mail queue based on certain keywords, especially in a cPanel. Below command will help in that and is for cPanel server. Matter of seconds for a seasoned admin, but posting so that I can copy and paste in future.
find /var/spool/exim/input -type f | xargs grep -l 'search_keywords' | xargs rm -frv
Posted by
HJKL a.k.a h2l
at
10:15 PM
1 comments
Wednesday, May 02, 2007
mod_rewrite and REQUEST_URI
Yesterday I did a forum move , a SMF forum. We had to move the forum URL from http://www.domain.com/forum to http://www.domain.com along with moving the servers, but still not losing the links spidered by Google. So things had to be achieved by mod_rewrite and the below rewrite rule helped.
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/forum/(.*)$ [NC]
RewriteRule ^forum/(.*)$ /$1 [R=301,L]
What this will do is redirect
http://www.domain.com/forum/index.php?PHPSESSID=0aj813j131434061699fb61eef295f
to
http://www.domain.com/index.php?PHPSESSID=0aj813j131434061699fb61eef295f
Praise the mod_rewrite authors !!!
Posted by
HJKL a.k.a h2l
at
12:33 AM
0
comments
Labels: Apache, forum, mod_rewrite, REQUEST_URI
Tuesday, May 01, 2007
Forcing the files to be downloaded
Many of us have had to face the issue of making an txt file or .php file downloaded instead of the webserver parsing it and the browser displaying it. A simple entry as below in .htaccess and sometimes in your virtualhost section of httpd.conf can get this done.
Header add Content-Disposition "Attachment"
Posted by
HJKL a.k.a h2l
at
11:15 PM
0
comments