需要安装的包
[root@db3-235 ~]# pkgin install ap22-php53-5.3.8nb1
8 packages to be installed: openldap-client-2.4.24 apr-1.4.5 apr-util-1.3.12nb1 xmlcatmgr-2.2nb1 php-5.3.8nb1 libxml2-2.7.8nb4 apache-2.2.21nb2 ap22-php53-5.3.8nb1 (14M to download, 54M to install)
[root@db3-235 ~]# pkgin install gd gd-devel zlib zlib-devel
5 packages to be installed: png-1.5.5 jpeg-8c freetype2-2.4.8 fontconfig-2.8.0nb1 gd-2.0.35nb8 (2618K to download, 8083K to install)
[root@db3-235 ~]# pkgin install libmcrypt
1 packages to be installed: libmcrypt-2.5.8 (187K to download, 581K to install)
[root@db3-235 ~]# pkgin install phpmyadmin
10 packages to be installed: mysql-client-5.5.16 php53-zlib-5.3.8 php53-mysql-5.3.8 php53-mcrypt-5.3.8 php53-mbstring-5.3.8 php53-json-5.3.8 php53-gettext-5.3.8nb1 php53-gd-5.3.8nb1 php53-bz2-5.3.8 phpmyadmin-3.4.8 (19M to download, 64M to install)
[root@db3-235 ~]# pkgin install mysql-server-5.5.16nb1
1 packages to be installed: mysql-server-5.5.16nb1 (24M to download, 163M to install)
[root@db3-235 ~]# pkgin install php53-mysqli-5.3.8
1 packages to be installed: php53-mysqli-5.3.8 (56K to download, 178K to install)
配置
apache:
vi /opt/local/etc/httpd/httpd.conf
LoadModule php5_module lib/httpd/mod_php5.so
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php .php3
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
php:
vi /opt/local/etc/php.ini
include_path = ".:/opt/local/lib/php"
extension=zlib.so
extension=mysql.so
extension=mysqli.so
extension=mcrypt.so
extension=mbstring.so
extension=json.so
extension=gettext.so
extension=gd.so
extension=bz2.so
zlib.output_compression = On
zlib.output_compression_level = 6
手动编译源码包的PHP扩展:
1.下载源码包,解压
2.竟然源码包目录,运行:phpize
./configure
64位的solaris系统可能会报错:
Warning: PHP Startup: Unable to load dynamic library '/root/php-protobuf-master/modules/protobuf.so' - ld.so.1: php: fatal: /root/php-protobuf-master/modules/protobuf.so: wrong ELF class: ELFCLASS32 in Unknown on line 0
需要使用如下命令configure
CFLAGS=-m64 CPPFLAGS=-m64 CCASFLAGS=-m64 ./configure
make
make test
make install
再把生成的扩展文件加入到php.ini里面
使用php -i查看是否成功加载扩展
重启apache或者php-fpm
phpmyadmin:
vi /opt/local/etc/httpd/httpd.conf
Include /opt/local/share/examples/phpmyadmin/apache.conf
启动apache:
/opt/local/sbin/httpd -k stop
/opt/local/sbin/httpd -k start
This package is SMF enabled, which means you can use SMF to 'enable','disable' or 'restart' the persistent daemon process, e.g.:
svcadm enable apache
The SMF manifest was automatically imported now.
See our wiki on what's SMF and how to use it to your advantage:http://wiki.joyent.com/display/smart/About+the+Service+Management+Facility
启动mysql:
/opt/local/bin/mysqld_safe &
/opt/local/bin/mysqladmin -u root password 'ivg1qaz2wsx'
wget http://pkgsrc.joyent.com/sdc6/2011Q3/gcc46_64/All/vsftpd-2.3.4.tgz
wget http://pkgsrc.joyent.com/sdc6/2011Q3/x86_64/All/php53-dom-5.3.8nb1.tgz
pkg_add php53-dom-5.3.8nb1.tgz
pkgin show-rev-deps php53-dom-5.3.8nb1
pkgin show-full-deps postgresql90-server
pkgin show-deps ap22-php5
pkgin show-keep
如果您喜欢本站,点击这儿可以捐赠本站
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别
这些信息可能会帮助到你: 联系作者 | 报毒说明
修改版本软件,加群提示等均为修改者自留,非本站信息,注意鉴别
评论(0)