7.配置php。
首先安装几个模块
1)安装Libmcrypt
tar -zxvf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make && make install
2)安装mhash
tar -zxvf mhash-0.9.9.9.tar.gz cd mhash-0.9.9.9 ./configure #make && make install
3)安装mcrypt
tar -zxvf mcrypt-2.6.8.tar.gz cd mcrypt-2.6.8 LD_LIBRARY_PATH=/usr/local/lib ./configure make && make install
4)开始编译安装PHP,源代码是php-5.3.19.tar.gz。
tar -zxvf php-5.3.19.tar.gz cd php-5.3.19 ./configure --prefix=/usr/local/php \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-curl \ --with-gd \ --enable-mbstring \ --with-mcrypt \ --with-mhash \ --with-mysql=/usr/local/mysql \ --with-mysqli=/usr/local/mysql/bin/mysql_config \ --with-sqlite \ --with-sqlite3 \ --enable-pdo \ --with-pdo-mysql=/usr/local/mysql \ --with-pdo-sqlite \ --enable-json \ --enable-sysvshm \ --enable-phar \ --with-pear \ --with-mysql-sock=/var/lib/mysql/mysql.sock \ --with-openssl \ --enable-sockets \ --enable-zip \ --with-zlib \ --enable-libxml \ --disable-cli make && make install cp -f php.ini-production /usr/local/php/lib/php.ini
打开Apache的配置文件httpd,conf
vi /usr/local/apache/conf/httpd.conf
加入一句话
AddType application/x-httpd-php .php
重启apache即可。
8.安装exiftool。
tar -zxvf Image-ExifTool-7.67.tar.gz cd Image-ExifTool-7.67 perl Makefile.PL make && make install
8.安装openoffice的支持。
yum install openoffice.org*
重启操作系统
soffice "--accept=socket,host=localhost,port=2002;urp;" --headless