导航:首页 > 编程语言 > php编译删除

php编译删除

发布时间:2022-09-27 19:06:12

php编译器的问题

如果仅仅是简单的编辑,建议使用dreamweaver MX,更简单的就是记事本
想要看到内容,就要配置php服务器,下面是win2000+IIs5配置过程:
1 下载一个php的安装包,压缩到指定目录
2 打开IIS配置 ->属性->主目录->配置->应用程序映射->添加
可执行文件:你的php.exe路径
注意,如果你的路径包含program files,一定要把整个路径用双引号括起来。

扩展名:.php

3 将PHP目录里的php.ini-recommended拷到WinNT目录,改名为php.ini

---------------------------------------------------------------

IIS的设置
开始==〉程序==〉管理工具==〉internet管理服务器==〉右键你的站点==〉属性==〉ISAPI筛选器==〉添加==〉筛选器名称==〉PHP==〉可执行文件==〉在你php文件夹的sapi子文件夹中php4isapi.dll==〉确定 然后还在属性页的主目录页==〉应用程序设置==〉配置==〉添加==〉可执行文件==〉在你php文件夹的sapi子文件夹中php4isapi.dll(注意文件类型选择*.dll)==〉扩展名==〉.php==〉确定 关闭属性页
开始==〉程序==〉管理工具==〉服务==〉找到IIS Admin Service==>右键==〉重新启动
如果你的php.ini已经设置好了的话,应该可以用了
注意你的站点的文档目录是不是c:\inetpub\wwwroot
存放的时候注意好了
当你选用php4isapi.dll作为编译器的时候
每次改动php.ini都要重新启动IIS Admin Service 服务
配置才能生效

linux 自己编译的php php.ini 修改删除均无效

--with-config-file-path=/usr/local/php/etc

看到了么?配置文件在这里

Ⅲ 如何重新编译一下PHP

whereis mysql

ps aux | grep mysql (这是看mysql的进程,看他的进程是在那启的有时候可以找到安装的目录)

实在不行切换到root下,# find / -name mysqld

如果你是想删除mysql重新装的话就
# rpm -qa | grep mysql

mod_auth_mysql-2.6.1-2.2
php-mysql-5.3.9-3.15
mysql-devel-5.1.77-1.CenOS 5.2

mysql-5.0.77-1.CenOS 5.2
mysqlclient10-5.0.77-1.CentOS 5.2
libdbi-dbd-mysql-0.6.5-10.CentOS 5.2

# rpm -e mysqlclient

或者
# yum -y remove mysql

Ⅳ PHP编译时的curl扩展如何删除

删除相应的库文件 再把配置文件里的curl的相关配置删除

Ⅳ 自己源码编译安装的PHP如何卸载

直接在 FTP工具地址中删除,望采纳

Ⅵ 怎么彻底删除linux下编译安装的apache和php

啊 这个很容易删除吧.
源码编译安装,都会通过--prefix 参数安装目录的.
先停止所有服务直接把安装目录文件夹删除,然后再到/etc配置文件下删除配置文件 就可以了...

然后再通过find命令确定一下就可以了..一般都没这必要.只要删除安装目录和配置文件就可以了..

Ⅶ ThinkPHP,删了几回~runtime.php以后不在出现了……

~runtime.php是TP的编译缓存文件,是ThinkPhp自动进行的工作。一般来说,这个文件可以直接删除,并不影响项目的运行。

编译缓存文件默认生成在项目的Runtime目录下面,我们可以在App/Runtime目录下面看到有一个~runtime.php文件,这个就是编译缓存文件。

如果你使用了模式扩展的话,编译缓存文件名称可能会有所变化,例如,如果你当前用的是REST模式,那么生成的编译缓存文件则会变成~rest_runtime.php。

注意:环境改变后需要删除编译缓存文件,也就是说你不能把本地生成的编译缓存拷贝到服务器或者其他环境直接使用。

Ⅷ 编译PHP提示出错找不到libc-client.无法编译PHP怎么办

I. 安装devel库
yum install pam-devel libc-client libc-client-devel -y
如果使用了yum安装了libc-client,那么在以后编译参数--with-imap=/usr/local/php-imap中的路径应该删除,即--with-imap。
如果这样还不能解决,那么就需要手动编译imap2007f了!
II. 手动编译imap2007f

在/usr/src目录下运行以下脚本,将会在/usr/local/php-imap目录下生成imap需要的库
#!/bin/sh
# Script for PHP-IMAP installation. 0.1b
# Written by Martynas Bendorius (smtalk)
CWD=`pwd`
OS=`uname`
#Is it a 64-bit OS?
B64=0
B64COUNT=`uname -m | grep -c 64`
if [ "$B64COUNT" -eq 1 ]; then
B64=1
LD_LIBRARY_PATH=/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
fi
if [ ! -e /usr/include/krb5.h ] && [ -e /etc/redhat-release ]; then
echo "Installing krb5-devel"
yum -y install krb5-devel
fi
VERSION=2007f
PROTOCOL=ftp
URL="${PROTOCOL}://ftp.cac.washington.e/imap/imap-${VERSION}.tar.Z"
FILENAME=imap-${VERSION}
TARBALL=${FILENAME}.tar.Z
echo "Downloading ${TARBALL}..."
wget -O ${TARBALL} ${URL}
tar xzf ${TARBALL}
cd ${FILENAME}
echo "Installing ${FILENAME}..."
if [ ${OS} = "FreeBSD" ]; then
if [ ${B64} -eq 0 ]; then
make bsf
else
make bsf EXTRACFLAGS=-fPIC
fi
else
perl -pi -e 's#SSLDIR=/usr/local/ssl#SSLDIR=/etc/pki/tls#' src/osdep/unix/Makefile
perl -pi -e 's#SSLINCLUDE=\$\(SSLDIR\)/include#SSLINCLUDE=/usr/include/openssl#' src/osdep/unix/Makefile
perl -pi -e 's#SSLLIB=\$\(SSLDIR\)/lib#SSLLIB=/usr/lib/openssl#' src/osdep/unix/Makefile
if [ ${B64} -eq 0 ]; then
make slx
else
make slx EXTRACFLAGS=-fPIC
fi
fi
echo "Copying files to /usr/local/php-imap"
mkdir -p /usr/local/php-imap/include
mkdir -p /usr/local/php-imap/lib
chmod -R 077 /usr/local/php-imap
cp -f c-client/*.h /usr/local/php-imap/include/
cp -f c-client/*.c /usr/local/php-imap/lib/
cp -f c-client/c-client.a /usr/local/php-imap/lib/libc-client.a
cd ..
rm -rf ${FILENAME}
if [ -d /usr/lib/x86_64-linux-gnu ] && [ ! -d /usr/kerberos/lib ]; then
mkdir -p /usr/kerberos
ln -s /usr/lib/x86_64-linux-gnu /usr/kerberos/lib
fi

exit 0;

Ⅸ 如何用PHP代码删除templates_c下的编译文件

clear_compiled_tpl
清除已编译模板
void
clear_compiled_tpl
(string
tpl_file)
This
clears
the
compiled
version
of
the
specified
template
resource,
or
all
compiled
template
files
if
one
is
not
specified.
This
function
is
for
advanced
use
only,
not
normally
needed.
清除指定模板资源的编译版本,如果不指定则清除所有已编译模板。除非特殊的需要,一般情况下不需要使用该函数。
(Fwolf:这个函数并不会删除模板本身,而是删除templates_c目录中存放的编译后生成的文件,这些编译后的文件会在下一次页面调用的时候再一次被生成。)
Example
13-9.
clear_compiled_tpl
例子
13-9.
清除已编译模板
//
clear
a
specific
template
resource
//
清除指定模板资源的编译文件
$smarty->clear_compiled_tpl("index.tpl");
//
clear
entire
compile
directory
//
清除所有已编译的模板文件
$smarty->clear_compiled_tpl();
来自smarty的手册:
http://www.phpzc.com/smarty/api.clear.compiled.tpl.html

Ⅹ 编译PHP提示出错找不到libc-client.无法编译PHP怎么办

I. 安装devel库
yum install pam-devel libc-client libc-client-devel -y
如果使用了yum安装了libc-client,那么在以后编译参数--with-imap=/usr/local/php-imap中的路径应该删除,即--with-imap。
如果这样还不能解决,那么就需要手动编译imap2007f了!
II. 手动编译imap2007f
脚本取自 forum.directadmin.com/showthread.php?t=45434
在/usr/src目录下运行以下脚本,将会在/usr/local/php-imap目录下生成imap需要的库
#!/bin/sh
# Script for PHP-IMAP installation. 0.1b
# Written by Martynas Bendorius (smtalk)
CWD=`pwd`
OS=`uname`
#Is it a 64-bit OS?
B64=0
B64COUNT=`uname -m | grep -c 64`
if [ "$B64COUNT" -eq 1 ]; then
B64=1
LD_LIBRARY_PATH=/lib64:/usr/lib64:/usr/local/lib64:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
fi
if [ ! -e /usr/include/krb5.h ] && [ -e /etc/redhat-release ]; then
echo "Installing krb5-devel"
yum -y install krb5-devel
fi
VERSION=2007f
PROTOCOL=ftp
URL="${PROTOCOL}://ftp.cac.washington.e/imap/imap-${VERSION}.tar.Z"
FILENAME=imap-${VERSION}
TARBALL=${FILENAME}.tar.Z
echo "Downloading ${TARBALL}..."
wget -O ${TARBALL} ${URL}
tar xzf ${TARBALL}
cd ${FILENAME}
echo "Installing ${FILENAME}..."
if [ ${OS} = "FreeBSD" ]; then
if [ ${B64} -eq 0 ]; then
make bsf
else
make bsf EXTRACFLAGS=-fPIC
fi
else
perl -pi -e 's#SSLDIR=/usr/local/ssl#SSLDIR=/etc/pki/tls#' src/osdep/unix/Makefile
perl -pi -e 's#SSLINCLUDE=\$\(SSLDIR\)/include#SSLINCLUDE=/usr/include/openssl#' src/osdep/unix/Makefile
perl -pi -e 's#SSLLIB=\$\(SSLDIR\)/lib#SSLLIB=/usr/lib/openssl#' src/osdep/unix/Makefile
if [ ${B64} -eq 0 ]; then
make slx
else
make slx EXTRACFLAGS=-fPIC
fi
fi
echo "Copying files to /usr/local/php-imap"
mkdir -p /usr/local/php-imap/include
mkdir -p /usr/local/php-imap/lib
chmod -R 077 /usr/local/php-imap
cp -f c-client/*.h /usr/local/php-imap/include/
cp -f c-client/*.c /usr/local/php-imap/lib/
cp -f c-client/c-client.a /usr/local/php-imap/lib/libc-client.a
cd ..
rm -rf ${FILENAME}
if [ -d /usr/lib/x86_64-linux-gnu ] && [ ! -d /usr/kerberos/lib ]; then
mkdir -p /usr/kerberos
ln -s /usr/lib/x86_64-linux-gnu /usr/kerberos/lib
fi

exit 0;
III. 开始编译
下面是编译PHP的参数,如果出现问题,请参考编译PHP5.6 和 PHP编译错误的解决办法。
./configure --prefix=/usr/local/php --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --with-pgsql --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --enable-exif --enable-bcmath --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --enable-ftp --with-imap=/usr/local/php-imap --with-imap-ssl --with-kerberos --with-gettext --with-xmlrpc --with-xsl --enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www --disable-fileinfo
IV. 其他问题
在本次编译中,老高又遇到了几个怪事
set --enable-opcache=no
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
这个问题还是库文件的链接问题
解决:
echo /usr/local/lib > /etc/ld.so.conf.d/local.conf
ldconfig -v
让编译的PHP支持memcache

阅读全文

与php编译删除相关的资料

热点内容
股票涨跌源码怎么看 浏览:575
加密软件做法 浏览:54
美国程序员有多少中国人 浏览:739
人民日报app里怎么看新闻早班车 浏览:584
忘了app怎么办 浏览:528
如何用云服务器做云平台 浏览:298
非箍筋加密区剪力 浏览:116
利联科技服务器卡怎么办 浏览:383
js和python哪个好 浏览:460
c盘的哪些文件夹没用 浏览:80
文件为什么会超出在线解压限制 浏览:588
python类实例化对象 浏览:794
硬盘dos外部命令 浏览:792
做算法还是开发 浏览:872
按键精灵自定义图层命令 浏览:353
魅蓝3手机音视频文件夹 浏览:945
安卓手机制表怎么换行 浏览:215
墙柱搭接箍筋怎么加密 浏览:456
怎么加密不让人打开 浏览:336
2g3g算法 浏览:206