5. 根据自己需求,找到对应版本的php-json库
下载地址: wgethttp://pkgs.fedoraproject.org/repo/pkgs/php-json/php-json-ext-1.2.1.tar.bz2/e06e701412a055f3372775216ec3d604/php-json-ext-1.2.1.tar.bz2
6. 之前的LAMP平台准备好,重启mysqld and httpd服务器,
接着执行相关操作,安装php-json扩展
#解压文件,并进行到目录 # tar -xjf php-json-ext-1.2.1.tar.bz2 #进入当前路径,并使用当前系统phpize刷新configure文件 # cd php-json-ext-1.2.1 # phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 #可以看到以configure等文件已经刷新到当前的时间了. # ll total 1468 -rw-r--r-- 1 10008 10008 66540 Jun 18 12:13 acinclude.m4 -rw-rw-r-- 1 10008 10008 298049 Jun 18 12:13 aclocal.m4 drwxr-xr-x 2 root root 4096 Jun 18 12:13 autom4te.cache drwxrwxr-x 2 10008 10008 4096 Jun 18 12:13 build -rwxr-xr-x 1 10008 10008 42037 Jun 18 12:13 config.guess -rw-rw-r-- 1 10008 10008 1610 Mar 31 2006 config.h.in -rw-rw-r-- 1 10008 10008 2139 Jan 31 2006 config.m4 -rwxr-xr-x 1 10008 10008 30253 Jun 18 12:13 config.sub -rwxrwxr-x 1 10008 10008 658032 Jun 18 12:13 configure #进行默认当前路径编译,可以看到会生成一个我们需要的模块 # ./configure # make Libraries have been installed in: /root/php-json-ext-1.2.1/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. (It is safe to ignore warnings about tempnam and tmpnam). #由此我们可以知道,其实YUM安装的LAMP创建的模块放置在/usr/lib64/php/modules/,上面的configure记录也不太可靠. # make install Installing shared extensions: /usr/lib64/php/modules/ # ll /usr/lib64/php/modules/json.so -rwxr-xr-x 1 root root 92750 Jun 18 12:14 /usr/lib64/php/modules/json.so |
7. php-json 验证
做完进行数据确认,是运维良好的习惯。重启httpd服务器以加载PHP配置,通过简单的phpinfo函数,
以确认已经支持json
spacer.gif@这是就不放图,大家都知道,需要通过php页面,了解此处php已经支持相关模块
################################分界线##########################################
8. 实际安装bugfree软件
#解压目录,并移到httpd DocumentRoot下,再通过浏览器访问以下路径:
# unzip bugfree3.0.4.zip
# mv bugfree3.0.4 /var/www/html/bugfree
# chown -R apache.apache /var/www/html/bugfree
9. 访问下面连接,即可进行页面安装工作,根据自己情况调整
http://192.168.0.107/bugfree/install
bugfree安装十分简单,只需要三个步骤即可.
9.1 环境检查,如果有不符合的内容,按要求添加即可.
上面如果没有安装要求准备LAMP的软件,在环境检查时会报错的。
9.2 在数据库创建相应用户,界面会往自动调用,往里面创建表格.
细看一下那个创建数据表的文件,所创建的表格绝大部分是INNODB存储引擎创建的表格.
create database bugfree;
grant all privileges on bugfree.* to bugfree@localhost identified by "xxxx";
9.3 填写数据库连接信息,可以让应用与数据库交互
9.4 经过几分钟等待,就可以完成安装.