diff --git a/class/core/site_api.py b/class/core/site_api.py index 6dd972390..f1a216828 100755 --- a/class/core/site_api.py +++ b/class/core/site_api.py @@ -384,6 +384,7 @@ class site_api: for val in phpVersions: tmp = {} if val == '00': + tmp['version'] = '00' tmp['name'] = '纯静态' data.append(tmp) diff --git a/plugins/php/conf/php56.ini b/plugins/php/conf/php56.ini index 4c0f40a47..7cb362d53 100644 --- a/plugins/php/conf/php56.ini +++ b/plugins/php/conf/php56.ini @@ -154,7 +154,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path = "MD:/bin/tmp/session" +session.save_path = "/tmp/session" session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index 58357f0f9..66f469231 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -37,6 +37,8 @@ cd $sourcePath/php/php-5.6.36 && ./configure \ --exec-prefix=$serverPath/php/56 \ --with-config-file-path=$serverPath/php/56/etc \ --with-zlib-dir=$serverPath/lib/zlib \ +--with-mysql \ +--with-mysqli \ --without-iconv \ --enable-zip \ --enable-mbstring \ @@ -45,7 +47,7 @@ cd $sourcePath/php/php-5.6.36 && ./configure \ --enable-soap \ --enable-posix \ --enable-fpm \ -&& make && make install +&& make && make install && make clean #------------------------ install end ------------------------------------# } diff --git a/plugins/phpmyadmin/conf/phpmyadmin.conf b/plugins/phpmyadmin/conf/phpmyadmin.conf new file mode 100755 index 000000000..ac208afaa --- /dev/null +++ b/plugins/phpmyadmin/conf/phpmyadmin.conf @@ -0,0 +1,27 @@ +server +{ + listen 888; + server_name www.bt.cn; + index index.html index.htm index.php; + root {$SERVER_PATH}/phpmyadmin; + + #error_page 404 /404.html; + include enable-php-{$PHP_VER}.conf; + + location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ + { + expires 30d; + } + + location ~ .*\.(js|css)?$ + { + expires 12h; + } + + location ~ /\. + { + deny all; + } + + access_log off; +} \ No newline at end of file diff --git a/plugins/phpmyadmin/index.html b/plugins/phpmyadmin/index.html index fff3a1856..eca939dfd 100755 --- a/plugins/phpmyadmin/index.html +++ b/plugins/phpmyadmin/index.html @@ -1,8 +1,10 @@