In Linux:
export JAVA_HOME=/opt/IBM/HTTPServer/java/8.0/jre
export PATH=/opt/IBM/HTTPServer/java/8.0/jre/bin:$PATH
Add below line into file /opt/IBM/HTTPServer/java/8.0/jre/lib/security/java.security
security.provider.10=com.ibm.security.cmskeystore.CMSProvider
Monday, February 27, 2017
Friday, February 17, 2017
bash: /sbin/reboot: Input/output error
Reference: http://www.linuxjournal.com/content/rebooting-magic-way
# reboot
bash: /sbin/reboot: Input/output error
The "magic SysRq key" provides a way to send commands directly to the kernel through the /proc filesystem. It is enabled via a kernel compile time option, CONFIG_MAGIC_SYSRQ, which seems to be standard on most distributions. First you must activate the magic SysRq option:
# reboot
bash: /sbin/reboot: Input/output error
The "magic SysRq key" provides a way to send commands directly to the kernel through the /proc filesystem. It is enabled via a kernel compile time option, CONFIG_MAGIC_SYSRQ, which seems to be standard on most distributions. First you must activate the magic SysRq option:
echo 1 > /proc/sys/kernel/sysrqWhen you are ready to reboot the machine simply run the following:
echo b > /proc/sysrq-trigger
Wednesday, February 15, 2017
Setup PHP Server
http://www.oracle.com/technetwork/articles/dsl/technote-php-instant-12c-2088811.html
# yum install httpd httpd-devel
# yum install php php-devel
Setup proxy for pecl
# dnf -y install openldap-clients mod_ldap openldap-devel openldap
connection_class = MyApp
extension_dir=/usr/lib64/php/modules
extension=mongodb.so
mongodb.debug=DEBUG
extension=oci8.so
# yum install httpd httpd-devel
# yum install php php-devel
Setup proxy for pecl
#
yum install php-pear
# pear config-set http_proxy http://username:xxxxx@proxy.goweekend.ca:8888
Trouble sooting
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.12.1: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0
-rwxr-xr-x. 1 root root 575176 Feb 15 14:12 oci8.so
# find . -print0 |xargs -0 -n 1 setfattr -h -x security.selinux
Install Mongodb and OCI8 Extension
Certain software are required to install mongodb
# dnf install gcc* -y
# dnf -y install re2c
# dnf -y install openssl-devel
# pecl install oci8
# pecl install mongodb
add "extension=mongodb.so" to /etc/php.ini
# dnf -y install openldap-clients mod_ldap openldap-devel openldap
# yum install php-ldap
# yum install mod_ssl openssl
# yum install mailx
# yum install sendmail
Add below snippet to /etc/php.ini
[OCI8]connection_class = MyApp
extension_dir=/usr/lib64/php/modules
extension=mongodb.so
mongodb.debug=DEBUG
extension=oci8.so
Thursday, February 9, 2017
PHP OCI8 Using Oracle Wallet
PHP OCI8 Using Oracle Wallet
http://www.c2b2.co.uk/middleware-blog/how-to-configure-php-to-use-the-oracle-wallet.php
http://www.c2b2.co.uk/middleware-blog/how-to-configure-php-to-use-the-oracle-wallet.php
Wednesday, February 8, 2017
Initialize LDOM Host
# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
# ldm add-vds primary-vds0 primary
# ldm add-vsw net-dev=vaggr1 primary-vsw0 primary
# ldm set-vcpu 4 primary
# ldm set-memory 1g primary
# ldm set-domain extended-mapin-space=on primary
# ldm add-config initial
# ldm list-config
factory-default [current]
initial [next]
# shutdown -y -g0 -i6
Enable vntsd
# svcs -l vntsd
# svcadm enable vntsd
# svcadm start vntsd
https://docs.oracle.com/cd/E38405_01/html/E38406/maximizenetperftask.html
# ldm add-vds primary-vds0 primary
# ldm add-vsw net-dev=vaggr1 primary-vsw0 primary
# ldm set-vcpu 4 primary
# ldm set-memory 1g primary
# ldm set-domain extended-mapin-space=on primary
# ldm add-config initial
# ldm list-config
factory-default [current]
initial [next]
# shutdown -y -g0 -i6
Enable vntsd
# svcs -l vntsd
# svcadm enable vntsd
# svcadm start vntsd
https://docs.oracle.com/cd/E38405_01/html/E38406/maximizenetperftask.html
Subscribe to:
Posts (Atom)