Skip to content
ShaoPin Cheng
  • 首頁
  • 贊助協作
  • 足球賽事表
  • 帳號資訊
    • 登入
    • 註冊
    • 帳號資訊
      • 訂單
      • 數位產品下載
      • 地址
      • 購物車
    • 登出
    • 遺失密碼
  • Blog
AIX

AIX 7.1 +...

  • 2013 年 2 月 21 日2021 年 3 月 17 日
  • by cjt74392

The following experience, it took me a lot of time …..may help you.

1.Download PHP 5.2.14 (Other version NOT successed)

2.AIX 7.1 need  vi /include/gd_io.h , typedef struct gdIOCtx add void *data;  

3.Edit PHP Makefile add this
   PHP_CLI_OBJS = sapi/cli/php_cli.lo sapi/cli/php_http_parser.lo sapi/cli/php_cli_server.lo $(PHP_BINARY_OBJS)
PHP_CGI_OBJS = sapi/cgi/cgi_main.lo sapi/cgi/fastcgi.lo main/internal_functions.lo

4.Edit PHP sapi/apache2handler/php_functions.c (becouse we use Apache 2.4  NOT 2.2)
   –       AP_DECLARE_DATA extern unixd_config_rec unixd_config;
   +       AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
   –       snprintf(tmp, sizeof(tmp), “%s(%d)/%d”, unixd_config.user_name, unixd_config.user_id, unixd_config.group_id);
   +       snprintf(tmp, sizeof(tmp), “%s(%d)/%d”, ap_unixd_config.user_name, ap_unixd_config.user_id, ap_unixd_config.group_id);

5.Link some file ….

   ls -s /opt/freeware/bin/pg_config /usr/bin/pg_config
   ls -s /opt/freeware/bin/mysql_config /usr/bin/mysql_config
   ln -s /opt/freeware/lib/libcrypto.so.0.9.8 /opt/freeware/lib/libcrypto.so    (OpenSSL ver cant greater than 0.9.8)

6.Configure PHP 5.2.14 with

./configure –prefix=/opt/freeware –with-apxs2=/opt/freeware/bin/apxs –with-zlib –with-zlib-dir=/opt/freeware –with-gd=/opt/freeware –with-freetype-dir=/opt/freeware –with-png-dir=/opt/freeware –with-mysql=/usr/local/mysql –with-mcrypt=/opt/freeware –enable-mbstring –with-gettext=/opt/freeware –with-libxml-dir=/opt/freeware/lib –enable-sockets –with-pcre-dir=/opt/freeware –with-snmp=/opt/freeware –with-openssl=/opt/freeware –with-bz2=/opt/freeware –with-jpeg-dir=/opt/freeware –enable-bcmath –enable-calendar –enable-maintainer-zts –disable-static –enable-shared –enable-ftp –with-curl=/opt/freeware –with-pdo-mysql=/usr/local/mysql –with-t1lib=/opt/freeware –with-libmbfl –with-iconv=/opt/freeware –with-iconv-dir=/opt/freeware –with-xpm-dir=/opt/freeware –enable-json –with-mysqli=/usr/local/mysql/bin/mysql_config –with-pgsql=/opt/freeware/bin/pg_config –with-pdo-pgsql=/opt/freeware/bin/pg_config

7.Make and Copy module
make
cp .libs/libphp5.so /xxx/xxx/apache/modules/  (xxx depend on your apache config)

Other note — Upgrading to 2.4 from 2.2
http://httpd.apache.org/docs/2.4/upgrading.html

近期文章

  • XRDP 中文支援相關設定
  • 如何陪伴小一新鮮人,快樂學習健康成長
  • (三國)我今天的手稿創作 Paper painting.
  • AIX 7.1 + Apache 2.4 + PHP libphp5.so with PDO
  • Highcharts for Nagios

近期留言

  • 「Unknown」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「David Yu」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「紹斌」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「Henrik」於〈Nagios Check_as400 PlugIn〉發佈留言
  • 「Unknown」於〈考取CISA的經驗〉發佈留言

彙整

  • 2025 年 6 月
  • 2016 年 9 月
  • 2014 年 11 月
  • 2013 年 2 月
  • 2012 年 10 月
  • 2012 年 9 月
  • 2012 年 8 月
  • 2012 年 6 月
  • 2012 年 5 月
  • 2011 年 11 月
  • 2011 年 10 月
  • 2011 年 8 月
  • 2011 年 4 月
  • 2011 年 3 月
  • 2011 年 2 月
  • 2011 年 1 月
  • 2010 年 10 月

分類

  • AIX
  • AS400
  • CISA
  • GLPI
  • Nagios
  • RHCE
  • Win 7
  • 個人未分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
Theme by Colorlib Powered by WordPress