Classicnewcar.us


red hat cheat sheet - Video Search Engine at Search com

red hat cheat sheet - Video Search Engine at Search com

by Srinivas G · Published January 31, 2014 · Updated August 5, 2016  Check list to move Partition from one frame to another frame: – 1. Which server we are moving (hostname, partition ID, Serial number)2. Details of the frames and the serial numbers.3. Resources (CPU, RAM, Processors) availability4. LPAR must not own any physical adapters and must use the VIO Server for network and Disk access(LPM can’t be done on Standalone LPAR , would be VIO Client )5. MSP(Mover Service Partition) should set on using HMC in the VIO Server .6. LPM required PowerVM Enterprise Edition. Login in to the HMC Find out the Frames first , where to move the LPAR [ Here Server-9119 – FHA-SNOYYYYY  Frame to Server-9119-FHA-SNOXXXXX ]Partition name –AIX_LPAR_22Partition id – 12Click on Server-9119-FHA-SNOYYYYY   -> select the partition (check for hostname & partition ID )Right click Click operations ->Mobility -> migrate -> migration starts 1 . Migration information –> next 2. Profile name –> next 3. Remote HMC –> here same HMC so no need to change anything next  4. destination –> here u need to select destination frame name SNOXXXXX5. Validation Error / warnings –> if u get errors check properly … if u get warnings neglect  6. Mover service partitions –> ( this should be enable on both sides of the frame vio’s –> go to the frame , select vio , right click , check mark in move partitions ) 7. Vlan configuration –> next 8.Virtual storage adapters -> next9. shared processor pools 10.wait time –> change wait  time as 20 or 30 mins 11. summary –> it will  show the summary  ( check properly , if it everything ok ) -> nextProcess starts 0 t0 100% After that Login in to the server & check the serial number , processing units , memory … Srinivas GSrinivas having multiple years of experience in IBM AIX and LINUX administration, and currently supporting an enterprise UNIX network for a Major multinational Firm. He has completed his formal certifications for AIX(100 & 223) & Linux(RHCE). And very passionate to share his everyday learning with his peers and unixadminschool.com readers. June 27, 2015  by Ramdev · Published June 27, 2015 · Last modified July 23, 2016 July 26, 2015  by Ramdev · Published July 26, 2015 · Last modified August 23, 2015 June 12, 2014  by Ramdev · Published June 12, 2014 · Last modified July 2, 2015 Follow:A WebSite of iGURKUL Educational Solutions Name(required) Email(required) Learning Request(required) Are you Looking for (required) Paid Training Free Training



by Ramdev · Published September 29, 2012 · Updated July 2, 2015  The Internet World , we live today ,completely filled with web pages and applications. In the initial days, web sites were just limited to static html pages and the traditional web servers like Apache fulfilled the purpose. But now the current trend is dynamic web pages which change their content as per the interaction with the user. And the basic requirement to handle those dynamic pages and web services is the platform stack i.e. A platform where a group of technologies ( operating System , Database , web server and scripting language) work together to give the desired results.    Right now in the industry, we have several solutions for the web server platform stack and they are classified into two categories as shown here.    From all the given solutions, LAMP stack was treated as most reliable and developer friendly solution because of following reasons1. LAMP stack is a open source solution2. LAMP stack is continuously improving3. LAMP stack is light weight on the Web Servers compared to others. LAMP stands for:1. Linux, the operating system2. Apache HTTP server, the web server3. MySQL, the database management system or database server (sometimes substituted with PostgreSQL) 4. PHP, the scripting language (sometimes substituted with other scripting/programming languages – Python, Perl, Ruby)  This Post completely gives you hands on expertise about “installation of a Webbased application ( i.e. WordPress) on top of LAMP stack”. I am assuming that you already had your linux server ready ( in this example i have used redhat enterprise linux 6.3 as base os)Note: WordPress is a popular web based application which will allow us create our own blogs. And gurkulindia’s unixadminschool is an example for wordpress blog.  1.Checking available YUM Groups for installationTo configure the LAMP stack we need to have following packages installed on the server[root@gurkulrhel2 ~]# yum grouplist|egrep -i “web|mysql|php”Unable to read consumer identity MySQL Database client MySQL Database server PHP Support Web Server Web Servlet Engine Web-Based Enterprise Management2.Install required YUM groups related to MYSQL, WEBSERVER and PHP[root@gurkulrhel2 ~]# yum -y install @”Web Server” @”MySQL Database” @”PHP Support”Loaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessPackage webalizer-2.21_02-3.3.el6.x86_64 already installed and latest versionPackage mod_perl-2.0.4-10.el6.x86_64 already installed and latest versionPackage crypto-utils-2.4.1-24.2.el6.x86_64 already installed and latest versionPackage mod_wsgi-3.2-1.el6.x86_64 already installed and latest versionPackage 1:php-pear-1.9.4-4.el6.noarch already installed and latest versionResolving Dependencies–> Running transaction check—> Package httpd.x86_64 0:2.2.15-15.el6_2.1 will be updated—> Package httpd.x86_64 0:2.2.15-15.0.1.el6_2.1 will be an update–> Processing Dependency: httpd-tools = 2.2.15-15.0.1.el6_2.1 for package: httpd-2.2.15-15.0.1.el6_2.1.x86_64—> Package httpd-manual.noarch 0:2.2.15-15.el6_2.1 will be updated:::: Output Truncated :::::—> Package httpd-tools.x86_64 0:2.2.15-15.el6_2.1 will be updated—> Package httpd-tools.x86_64 0:2.2.15-15.0.1.el6_2.1 will be an update—> Package php-cli.x86_64 0:5.3.3-3.el6_2.8 will be updated—> Package php-cli.x86_64 0:5.3.3-14.el6_3 will be an update—> Package php-common.x86_64 0:5.3.3-3.el6_2.8 will be updated—> Package php-common.x86_64 0:5.3.3-14.el6_3 will be an update–> Finished Dependency ResolutionDependencies Resolved======================================================================== Package Arch Version Repository Size========================================================================Updating: httpd x86_64 2.2.15-15.0.1.el6_2.1 ol6_latest 812 k httpd-manual noarch 2.2.15-15.0.1.el6_2.1 ol6_latest 780 k mod_ssl x86_64 1:2.2.15-15.0.1.el6_2.1 ol6_latest 87 k php x86_64 5.3.3-14.el6_3 ol6_latest 1.1 M php-gd x86_64 5.3.3-14.el6_3 ol6_latest 104 k php-pdo x86_64 5.3.3-14.el6_3 ol6_latest 73 k php-xml x86_64 5.3.3-14.el6_3 ol6_latest 101 kUpdating for dependencies: httpd-tools x86_64 2.2.15-15.0.1.el6_2.1 ol6_latest 69 k php-cli x86_64 5.3.3-14.el6_3 ol6_latest 2.2 M php-common x86_64 5.3.3-14.el6_3 ol6_latest 522 kTransaction Summary=====================================================================Upgrade 10 Package(s)Total download size: 5.8 MDownloading Packages:(1/10): httpd-2.2.15-15.0.1.el6_2.1.x86_64.rpm | 812 kB 00:03(2/10): httpd-manual-2.2.15-15.0.1.el6_2.1.noarch.rpm | 780 kB 00:03(3/10): httpd-tools-2.2.15-15.0.1.el6_2.1.x86_64.rpm | 69 kB 00:00(4/10): mod_ssl-2.2.15-15.0.1.el6_2.1.x86_64.rpm | 87 kB 00:01(5/10): php-5.3.3-14.el6_3.x86_64.rpm | 1.1 MB 00:04(6/10): php-cli-5.3.3-14.el6_3.x86_64.rpm | 2.2 MB 00:07(7/10): php-common-5.3.3-14.el6_3.x86_64.rpm | 522 kB 00:02(8/10): php-gd-5.3.3-14.el6_3.x86_64.rpm | 104 kB 00:00(9/10): php-pdo-5.3.3-14.el6_3.x86_64.rpm | 73 kB 00:00(10/10): php-xml-5.3.3-14.el6_3.x86_64.rpm | 101 kB 00:00———————————————————————-Total 154 kB/s | 5.8 MB 00:38warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEYRetrieving key from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6Importing GPG key 0xEC551F03: Userid: “Oracle OSS group (Open Source Software group) “ From : http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : php-common-5.3.3-14.el6_3.x86_64 1/20 Updating : php-cli-5.3.3-14.el6_3.x86_64 2/20 Updating : httpd-tools-2.2.15-15.0.1.el6_2.1.x86_64 3/20 Updating : httpd-2.2.15-15.0.1.el6_2.1.x86_64 4/20 Updating : 1:mod_ssl-2.2.15-15.0.1.el6_2.1.x86_64 5/20 Updating : php-5.3.3-14.el6_3.x86_64 6/20:::: Output Truncated :::::Verifying : php-xml-5.3.3-3.el6_2.8.x86_64 16/20 Verifying : httpd-tools-2.2.15-15.el6_2.1.x86_64 17/20 Verifying : php-gd-5.3.3-3.el6_2.8.x86_64 18/20 Verifying : php-pdo-5.3.3-3.el6_2.8.x86_64 19/20 Verifying : httpd-manual-2.2.15-15.el6_2.1.noarch 20/20Updated: httpd.x86_64 0:2.2.15-15.0.1.el6_2.1 httpd-manual.noarch 0:2.2.15-15.0.1.el6_2.1 mod_ssl.x86_64 1:2.2.15-15.0.1.el6_2.1 php.x86_64 0:5.3.3-14.el6_3 php-gd.x86_64 0:5.3.3-14.el6_3 php-pdo.x86_64 0:5.3.3-14.el6_3 php-xml.x86_64 0:5.3.3-14.el6_3Dependency Updated: httpd-tools.x86_64 0:2.2.15-15.0.1.el6_2.1 php-cli.x86_64 0:5.3.3-14.el6_3 php-common.x86_64 0:5.3.3-14.el6_3Complete![root@gurkulrhel2 ~]#[root@gurkulrhel2 gurkulblog]# yum -y install php-mysqlLoaded plugins: product-id, refresh-packagekit, security, subscription-managerUpdating certificate-based repositories.Unable to read consumer identitySetting up Install ProcessResolving Dependencies–> Running transaction check—> Package php-mysql.x86_64 0:5.3.3-14.el6_3 will be installed–> Finished Dependency ResolutionDependencies Resolved=================================================================== Package Arch Version Repository Size===================================================================Installing: php-mysql x86_64 5.3.3-14.el6_3 ol6_latest 79 kTransaction Summary===================================================================Install 1 Package(s)Total download size: 79 kInstalled size: 215 kDownloading Packages:php-mysql-5.3.3-14.el6_3.x86_64.rpm | 79 kB 00:00Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : php-mysql-5.3.3-14.el6_3.x86_64 1/1Installed products updated. Verifying : php-mysql-5.3.3-14.el6_3.x86_64 1/1Installed: php-mysql.x86_64 0:5.3.3-14.el6_3Complete!1. Testing Regular HTTP connection[root@gurkulrhel2 ~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.orig[root@gurkulrhel2 ~]# vi /etc/httpd/conf/httpd.conf[root@gurkulrhel2 ~]# sdiff -s /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.orighttpd.conf entry after Modification | httpd entry before modificationServerName 192.168.1.53:80          | #ServerName www.example.com:80[root@gurkulrhel2 ~]# service httpd startStarting httpd: [ OK ]   2. Testing HTTP with PHP page2.a. Configure /etc/php.ini for host, default_user and default_pw information. Below will be the changes to the file before and afterroot@gurkulrhel2 gurkulblog]# sdiff -s /etc/php.ini.orig /etc/php.inimysqli.default_host =       | mysqli.default_host = gurkulrhel2mysqli.default_user =       | mysqli.default_user = gurkuladminmysqli.default_pw =         | mysqli.default_pw = gurkuladmin2.b. create a test php file, to display the current php version[root@gurkulrhel2 ~]# cd /var/www/html[root@gurkulrhel2 html]# cat > phpinfo.phpphpinfo(); ?> — to save the file2.c Test the sample webpage for the PHP data  1. Creating for MYSQL admin user[root@gurkulrhel2 ~]# useradd gurkuladmin[root@gurkulrhel2 ~]# passwd gurkuladminChanging password for user gurkuladmin.New password:Retype new password:passwd: all authentication tokens updated successfully.[root@gurkulrhel2 ~]# ssh gurkuladmin@localhostThe authenticity of host ‘localhost (::1)’ can’t be established.RSA key fingerprint is 5f:c1:36:f4:37:b4:ed:73:20:d3:06:32:0a:97:1d:60.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added ‘localhost’ (RSA) to the list of known hosts.gurkuladmin@localhost’s password:[gurkuladmin@gurkulrhel2 ~]$ exitlogoutConnection to localhost closed.[root@gurkulrhel2 ~]# 2. Creating WordPress admin user[root@gurkulrhel2 ~]# useradd wpadm[root@gurkulrhel2 ~]# passwd wpadmChanging password for user wpadm.New password:Retype new password:1. Copy the default small system mysql configuration ( /usr/share/mysql/my-small.cnf ) to /etc/my.cnf[root@gurkulrhel2 etc]# cp /usr/share/mysql/my-small.cnf /etc/my.cnfcp: overwrite `/etc/my.cnf’? y2. Start the mysqld service[root@gurkulrhel2 etc]# service mysqld startInitializing MySQL database: Installing MySQL system tables…120929 13:21:22 [Warning] ‘–skip-locking’ is deprecated and will be removed in a future release. Please use ‘–skip-external-locking’ instead.OKFilling help tables…120929 13:21:29 [Warning] ‘–skip-locking’ is deprecated and will be removed in a future release. Please use ‘–skip-external-locking’ instead.OKTo start mysqld at boot time you have to copysupport-files/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following commands:/usr/bin/mysqladmin -u root password ‘new-password’/usr/bin/mysqladmin -u root -h gurkulrhel2 password ‘new-password’Alternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended for production servers.See the manual for more instructions.You can start the MySQL daemon with:cd /usr ; /usr/bin/mysqld_safe &You can test the MySQL daemon with mysql-test-run.plcd /usr/mysql-test ; perl mysql-test-run.plPlease report any problems with the /usr/bin/mysqlbug script! [ OK ]Starting mysqld: [ OK ][root@gurkulrhel2 etc]#3. Enable the mqsqld service to start during the system startup[root@gurkulrhel2 etc]# chkconfig mysqld on[root@gurkulrhel2 etc]# chkconfig –list mysqldmysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off[root@gurkulrhel2 etc]#4. Grant MYSQL DB permissions to the gurkuladmin user, so that gurkuladmin can manage the database going forward [root@gurkulrhel2 mysql]# mysql -p -h gurkulrhel2Enter password: < Entering root password>Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 33Server version: 5.1.61 Source distributionCopyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.mysql>mysql> grant all privileges on *.* to gurkuladmin@localhost identified by ‘gurkuladmin’;Query OK, 0 rows affected (0.00 sec)mysql> grant all privileges on *.* to gurkuladmin@gurkulrhel2 identified by ‘gurkuladmin’;Query OK, 0 rows affected (0.00 sec)mysql> delete from mysql.user where User=”;Query OK, 2 rows affected (0.01 sec)mysql> show grants for gurkuladmin@localhost;+——————————————————————————+| Grants for gurkuladmin@localhost |+——————————————————————————+| GRANT ALL PRIVILEGES ON *.* TO ‘gurkuladmin’@’localhost’ IDENTIFIED BY PASSWORD ‘*A961986EE691D9EF5898071F4A7F0F850A97CE26’ |+—————————————————————————–+1 row in set (0.00 sec)mysql> show grants for gurkuladmin@gurkulrhel2;+—————————————————————————–+| Grants for gurkuladmin@gurkulrhel2 |+—————————————————————————–+| GRANT ALL PRIVILEGES ON *.* TO ‘gurkuladmin’@’gurkulrhel2’ IDENTIFIED BY PASSWORD ‘*A961986EE691D9EF5898071F4A7F0F850A97CE26’ |+—————————————————————————–+1 row in set (0.00 sec)mysql>5. Testing Database Privileges as gurkuladmin user[gurkuladmin@gurkulrhel2 ~]$ mysql -pEnter password: < enter gurkuladmin unix password>Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 34Server version: 5.1.61 Source distributionCopyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.mysql> show grants;+———————————————————————————-+| Grants for gurkuladmin@localhost |+———————————————————————————-+| GRANT ALL PRIVILEGES ON *.* TO ‘gurkuladmin’@’localhost’ IDENTIFIED BY PASSWORD ‘*A961986EE691D9EF5898071F4A7F0F850A97CE26’ |+———————————————————————————+1 row in set (0.00 sec)mysql> show databases;+——————–+| Database |+——————–+| information_schema || mysql || test |+——————–+3 rows in set (0.01 sec)mysql> exitBye[gurkuladmin@gurkulrhel2 ~]$1. Download the WordPress application from wordpress.org[gurkuladmin@gurkulrhel2 ~]$ wget http://wordpress.org/latest.zip–2012-09-29 16:18:56– http://wordpress.org/latest.zipResolving wordpress.org… 72.233.56.139, 72.233.56.138Connecting to wordpress.org|72.233.56.139|:80… connected.HTTP request sent, awaiting response… 200 OKLength: unspecified [application/zip]Saving to: âlatest.zipâ[ ] 4,920,954 273K/s in 19s2012-09-29 16:19:22 (250 KB/s) – âlatest.zipâ[gurkuladmin@gurkulrhel2 ~]$ lslatest.zip[gurkuladmin@gurkulrhel2 ~]$ unzip latest.zip[gurkuladmin@gurkulrhel2 ~]$ lslatest.zip wordpress[gurkuladmin@gurkulrhel2 ~]$ du -h latest.zip4.7M latest.zip2. Configure MYSQL as per WordPress requirements – i.e. Database , Database user and Privileges[gurkuladmin@gurkulrhel2 ~]$ mysql -pEnter password:Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 35Server version: 5.1.61 Source distributionCopyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.mysql> create database gurkulblog;Query OK, 1 row affected (0.01 sec)mysql> grant all privileges on gurkulblog.* to wpadm@gurkulrhel2 identified by ‘wpadm’;Query OK, 0 rows affected (0.01 sec)mysql> exitBye3. Just bounce the httpd to make sure all the changes we made were effective[root@gurkulrhel2 gurkulblog]# service httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ] [gurkuladmin@gurkulrhel2 wordpress]$ cp wp-config-sample.php wp-config.php[root@gurkulrhel2 gurkulblog]# sdiff -s wp-config-sample.php wp-config.phpdefine(‘DB_NAME’, ‘database_name_here’);   | define(‘DB_NAME’, ‘gurkulblog‘);define(‘DB_USER’, ‘username_here’);        | define(‘DB_USER’, ‘wpadm‘);define(‘DB_PASSWORD’, ‘password_here’);    | define(‘DB_PASSWORD’, ‘wpadm‘);define(‘DB_HOST’, ‘localhost’);            | define(‘DB_HOST’, ‘gurkulrhel2‘);[root@gurkulrhel2 gurkulblog]#Once done,  now you can login as blogadmin/blogadmin to administrate the site. And you can actually view your wordpress blog from the below addresshttp://192.168.1.53/gurkulblog  ( Remember this is just intranet site and visible only within your network.)   That’s it . Now you know how to configure the LAMP stack, at the same time you know how to configure your own webserver for the wordpress blog.Just let me know what you think about this topic. Your comments are the cookies for us. Tags: configurationlinuxlinux learninglinux networkinglinux traininglinux trooubleshootinglinuxadminRedhat linuxRamdevI have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/ June 18, 2011  by Ramdev · Published June 18, 2011 · Last modified July 2, 2015 February 17, 2013  by Ramdev · Published February 17, 2013 · Last modified July 22, 2016 March 19, 2016  by Ramdev · Published March 19, 2016 · Last modified March 18, 2016 Thanks for nice and helpful article..Thanks for the tut really gr8 ones out there thanks a lot @hemant and @peacengell – Thanks for the feedback.Hi Ramdev, its an nice artical anywayz need some help from you, m pretty new to unix world and on some of our servers messages file is not getting updated would you plz help me out on this? It would be a great help..@Santhosh – please check if syslogd running in the server…. >> # ps -ef|grep syslogd  if not running start with  >> # svcadm  online  svc:/system/system-log:default if already running then test that it is working properly with the logger command >>># logger -p daemon.notice “test”and check the /var/adm/messages.  if the rtest message not logged, check the /etc/syslog.conf file and  replicate the settings similar to a working machine.@Ramdev: Hi ramdev b4 getting to u i hav tried restarting the “systemlog service” but we are getting another alert as ” syslogd going down on signal 15 ” in the monitoring tool & it stops updating at some point of time. And syslogd is running and even the service is online but still the message file is not getting updated. Test message is getting logged using “logger” but no further messages are logged and also their is enough space for /var on the systems.         The patch level on most of the systems is 5.10 Generic_127112-08 would this be a reason this,,Hi Santhosh, I couldn’t guess that current patch level causing the issue. But if you look at the post http://wp.me/p1EO9J-Pw , you can see a procedure to trace the process that sends shutdown signal to syslogd. Just initialize the truss as mentioned in the post on troubled machine and check the truss o/p/.very useful topic for Linux admins. thanks Ramdev.Hi Sir, very good article, but in my case wordpress aplication is not getting installed, i am having some thoughts, 1. where should i keep all the wordpress file i.e in /var/www/html or /var/www…… 2.do we need to edit the httpd.conf file 3. do we need to change the permisssions on wordpress directory. other everything i was able to install, but in browser it is not coming(wordpress)Hi Ashish, what exactly the error message you have?If you want to work with default location and configuration, you can simply copy the wordpress files under /var/www/html. ( you can check this value as DocumentRoot under httpd.conf). Otherwise , you can place any other place you need but you have to change the httpd.conf’s DocumentRoot parameter to reflect that location. You don’t need to change the wordpress permission.I don’t have words to say. You got the best articles. Really Appreciated[…] Read – Configuring LAMP STACK for Web Applications in RHEL6- cookbook […]Follow:A WebSite of iGURKUL Educational Solutions Name(required) Email(required) Learning Request(required) Are you Looking for (required) Paid Training Free Training





#Contact US #Terms of Use #Privacy Policy #Earnings Disclaimer