Search This Blog

Showing posts with label OEL. Show all posts
Showing posts with label OEL. Show all posts

Wednesday, February 5, 2014

How to Lock down the RHEL CentOS OEL version

For some product, they require the specific RHEH/CentOS/OEL Version.

Here is a example on How I lock down OEL to 5.8:


[ol5_u8_base]
name=Oracle Linux $releasever Update 8 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/8/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol5_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol5_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

Monday, September 23, 2013

Install libevent for CentOS RHEL OEL

Default way install library will put everything into /usr/local.

To keep it more Redhat looks:

1.First remove the old library to avoid any conflict:


yum erase libevent*


2.Download and uncompress the package:

wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz


3.Compile and install into /usr/lib:

cd libevent-2.0.21-stable
make clean
./configure --prefix=/usr
make
make install


You should have it under /usr/lib, with correct /usr/lib/pkgconfig. Not changes LD_LIBRARY_PATH needed at all!

4.If unhappy with where it installed, uninstall anytime:

cd libevent-2.0.21-stable
make uninstall

Wednesday, August 14, 2013

PHP Warning: require_once(): Unable to allocate memory for pool

I am running Apache 2.2.15 + PHP 5.3.3 + APC php-pecl-apc-3.1.9 on CentOS / RHEL 6.4.
Getting the following warnings in the /var/log/httpd/error.log


[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-includes/admin-bar.php on line 25, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-core.php on line 27, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-comments.php on line 4, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-core.php on line 31, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/modules/omnisearch/omnisearch-plugins.php on line 4, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/modules/contact-form/admin.php on line 633, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/
[Wed Aug 14 21:12:19 2013] [error] [client 67.204.24.42] PHP Warning: require_once(): Unable to allocate memory for pool. in /var/www/mds/wordpress/wp-content/plugins/jetpack/class.jetpack-client.php on line 48, referer: http://www.milliondollarserver.com/installing-vmware-tools-on-rhel-oel-centos-6-via-yum/


To fix it:

# vi /etc/php.d/apc.ini
; increased to 128M from 64M
apc.shm_size=128M


Don't forget reboot the apache to apply changes:

# service httpd restart


If you would like to find out your APC memory usage and hit ratio:

# cp /usr/share/php-pecl-apc/apc.php /var/www/html
Edit /var/www/html/apc.php and set the admin password :
defaults('ADMIN_PASSWORD','NEW-PASSWORD');
Save and close the file. Fire a web-browser and type the url:
http://server-ip/apc.php

Friday, December 21, 2012

Oracle Enterprise Linux 6.3 Small Smart ISO Release 1

I started this from Oracle's website:

Oracle Linux Download

Anyone can download the file from the mirror servers.
http://mirrors/pub/OracleLinux/OL6/U3/x86_64/OracleLinux-R6-U3-Server-x86_64-dvd.iso

Then I trim it down to less than 400MB.
Then add my kickstart script.

Please notice this is a fully automatic installation ISO.
It will clean all the data of the server you are going to boot from it!!!!!!

Highly recommand you run it from VM Player or VM Box or an old server, before put it to production.


I will make an youtube video to show you how it works.

After installation the password will be my domain name: www.milliondollarserver.com


    The first release ISO file can be download at here.



Please give me some feed back after try it.

Demo of how to use the ISO install a server on YouTube

http://www.youtube.com/watch?v=rCDg5k6pewM

Monday, November 12, 2012

How to Modify HostName RHEL OEL CentOS 6

To modify hostname on RHEL OEL CentOS 6 is simple:

1.To update on fly:

#hostname milliondollarserver.com


2.Write into network config file:

#vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=milliondollarserver.com


3.Add new hostname into /etc/hosts file:

# cat /etc/hosts


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 milliondollarserver.com localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6