Yips Version Admin

(click to open)

Quick Page Table of Contents

Scanning…

YiPs Version Administration

Notes to help administrators track changes to the YiPS site.

  • Justin
  • Brian
  • Alan
  • Tony (IBM)

Yips conf:

  • httpd.conf — Apache configuration
  • fastcgi.conf — Apache fastcgi configuration (PHP, mama, etc.)
  • mama.conf — FastCGI tool to start stand-alone servers (node, python, etc.)

2015/02/13

Critical storage. Removed many log files, other (97% → 84%)

  • details
    1) PHP wiki no longer throwing log errors ... fix big /var/php.log
    2) zendsvr6/httpd.conf has 7 day limit log files ... fix very big logs
    LogMaint logs/access_log 7 0
    LogMaint logs/error_log 7 0
    LogMaint logs/error_zfcgi 7 0
    3) removed ZENDSVR and /usr/local/zendsvr mostly gone
    do not delete /www/zendsvr or /www/zendsvr6, 
    mostly symbolic links to zendsvr6, 
    but left /www/zendsvr for some ftp scripts (mine)
    

2015/01/15

Site is now running Zend Server 8.0.1. During installation zendsvr/htdocs was transfered to /zendsvr6/htdocs. Wiki has been updated to work and is landing page (mostly works). Joomla has not yet been repaired. Find different /zendsvr6/htdocs/index.html when switch is needed.

  • find big pase files
    find . -type f -size +30000k -print 
    

2013/02/14

Changes to make next upgrade easier …

> wiki changed to have demos in /www/zendsvr/htdocs/Samples
> wiki changed to more paths rely on wiki/local/config.php
> removed bad db2 driver /usr/local/zendsvr/lib/libdb400.a 

2013/01/31

Changes to make more mobile device friendly …

> less content HomePage and SideBar
> some wiki images moved to /www/zendsvr/htdocs/assets/images
  others needed to stay in Group attach directory (Yips install PHP applications)
> collecting running php examples to /www/zendsvr/htdocs/Samples (future zip file)

2012/06/04

Added autostart for MySql IPL — works better over Zend version of start ….

> CRTJOBD JOBD(ZENDSVR/ADC_MYSQLD) JOBQ(ZENDSVR/ZSVR_JOBQ) TEXT('Ranger start MySql ZENDSVR') USER(MYSQL) 
  RQSDTA('QSH CMD(''/QOpenSys/usr/bin/sh -c "sleep 60; /usr/local/mysql/bin/mysqld_safe  --user=mysql"'')')
> ADDAJE SBSD(ZENDSVR/ZENDSVR) JOB(ADC_MYSQLJ) JOBD(ZENDSVR/ADC_MYSQLD)
> STRSBS SBSD(ZENDSVR/ZENDSVR)

IF you ever wish to remove permanently ...
> ENDSBS SBS(ZENDSVR) OPTION(*IMMED)
> RMVAJE SBSD(ZENDSVR/ZENDSVR) JOB(ADC_MYSQLJ)
> DLTJOBD JOBD(ZENDSVR/ADC_MYSQLD)

Also set autostart of ZENDSVR instance …

How to make your HTTP server instance auto-start: Go into the admin interface for your iSeries. 
http://iseries.example.com:2001 Click IBM Web Administration for iSeries Click on the "Manage" tab (if you're not already there) 
Select the server instance that you want to autostart. (You can do this by clicking on "All Servers" 
then selecting the one you want and clicking "manage details", or you can use the pull-down box, etc.) 
Select Server Properties -> General Server Configuration On this screen, there's a choice for "Autostart". 
It can be set to "Global", "Yes" or "No". If you want this session to start when TCP/IP starts, select "Yes". 
If you don't, select "No". Don't forget to apply your changes. 

2011/06/06

The new zend server console is accessed for ZENDSVR library:

go zendsvr/zsmenu

However, mysql start from hand seems to work best.

SBMJOB CMD(QSH CMD('/QOpenSys/usr/bin/sh -c "/usr/local/mysql/bin/mysqld_safe  --user=mysql" 2>&1')) JOB(MYSQL) JOBD(ZENDSVR/ZSVR_JOBD)

2011/12/02

YiPs site slowed down due few old PHP applications constantly writing PHP 5.3 deprecated messages into php error log. I modified offending PHP scripts with error_reporting(E_ALL ^ E_DEPRECATED), but choose NOT to edit php.ini file error_reporting.

FYI — I have only anecdotal evidence, but this may be useful for PHP sites “slowing down” …

call qp2term
echo start > /usr/local/zendsvr/var/log/php.log
Interesting ... 
... site immediately ran faster after cleared log
... appears "hung" php.cgi children popped back to life
... useful to folks running PHP sites on IBM i?

2011/11/29 - Short of it …

  • ZENDSVR (80) - new Apache on port 80
    • STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)
    • go zendsvr/zsmenu
  • SEAL1 (moved to 10088), ZENDSVR (89), PASE Apache (8000) - deprecated
    • endTCPSVR SERVER(*HTTP) HTTPSVR(SEAL1)
    • endTCPSVR SERVER(*HTTP) HTTPSVR(ZENDCORE)
    • go zendcore/zcmenu → 5. Service Management menu → 2. Stop Zend Core Subsystem
  • Things i am slightly worried about …
    • how did sandbox clean-up work??? … need something more from old Zend Core?
    • some old .htaccess changed because php_var and such not work FastCGI … site works .. but still ???
    • did i open authority “too far” grant authorization for QTMHHTTP … i think not???
    • wiki .htaccess change lead to some “short links” orphaned
      • have been fixing using a /wiki/name/name/index.php header location reroute … works so far

2011/11/29 - Zend Server 5.1.1 Upgrade

  • Zend Server management
    • go zendsvr/zsmenu → 5. Service Management menu → 1. Start Zend Server Subsystem
  • New Apache instance ZENDSVR - can start/stop independent zsmenu
    • STRTCPSVR SERVER(*HTTP) HTTPSVR(ZENDSVR)
    • /www/zendsvr - all subdirectories are active including /conf, /log, /htdocs
      • /www/zendsvr/htdocs - DocumentRoot was altered match old SEAL1 (index.html, etc.), but all “new” stuff can be hosted here
    • /www/zendcore - still using these directories (see below)
      •  /www/zendsvr/conf/httpd.conf - alias for /www/zendcore products
        # yips beg
        <Directory /www/zendcore/htdocs>
            Options FollowSymLinks
            Order allow,deny
            Allow from all
            AllowOverride all
        </Directory>
        
        <Location /wiki> 
            Options FollowSymLinks
            Order allow,deny
            Allow from all
        </Location>
        Alias /wiki "/www/zendcore/htdocs/wiki"
        
        <Location /news> 
            Options FollowSymLinks
            Order allow,deny
            Allow from all
        </Location>
        Alias /news "/www/zendcore/htdocs/news"
        
        ... and so on ... 
        
  • Site error logging
    • /www/zendsvr/logs — active Apache logs
    • /usr/local/zendsvr/var/log/php.log — active PHP error logging
      • still number of deprecated message due to PHP 5.3 — need PHP product updates i suspect
  • Upgraded Joomla
    • new version for PHP 5.3 due to deprecated PHP functions (eregi, etc.)
    • was a very simple zip file style upgrade
  • .htaccess removed/changed - multiple
    • Zend Server is FastCGI, therefore no longer support php_var and related
    • site still seems to work with less complex .htaccess(es)
    • BBClone counting page hits not active everywhere — think need something in php.ini?
  • MySql upgraded
    • SBMJOB CMD(QSH CMD(‘/QOpenSys/usr/bin/sh -c “/usr/local/mysql/bin/mysqld_safe —user=mysql” 2>&1′))
      • starting by hand works (sbmjob), Zend menus something goes wrong (Zend Core also, not just new Zend Server)
    • /usr/local/mysql - programs upgraded to 5.1.50 (i think)
    • /usr/local/mysqldata - all data left intact (old data, new mysql engine)
      • no idea what is up with other versions /usr/local (mysql-yips, mysql2, mysqldata-yips)
  • I5 Toolkit has been replaced (totally)
    • site is now running new XMLSERVICE (Ranger) + PHP toolkit wrapper (Alan)
    • couple of one line changes needed to the PHP RPG demo in VLC (see demo source)

2011/11/29 - Deprecated Zend Core

  • Deprecated ZendCore management
    • go zendcore/zcmenu → 5. Service Management menu → 2. Stop Zend Core Subsystem
  • Deprecated Apache instance SEAL1
    • endTCPSVR SERVER(*HTTP) HTTPSVR(SEAL1)
      • httpd.conf changed to listen on port 10088 (not 80), if started by accident
    • /www/seal1 - no longer in use
  • Deprecated Apache instance ZENDCORE
    • endTCPSVR SERVER(*HTTP) HTTPSVR(ZENDCORE)
    • /www/zendcore - still using these directories
  • Deprecated PASE Apache (port 8000)

  • MySql - rockmelon
  • zs5 gui - yips4321
  • zs6 gui - yips4321
  • wiki - yips4321

Links: PHP, RUBY, RPG, NodeJs, PASE, Apache, DB, XMLSERVICE, General