search
Homephp教程php手册PHP安装攻略linux五

PHP安装攻略linux五

Jun 13, 2016 am 10:29 AM
linuxphpredhatusecompanyBagCanInstallStrategyWayyesof

PM包的安装方式是REDHAT公司自创的。使用这种安装方式可以极其方便地对应用程序进行安装。现在许多的LINUX发行公司也在他们的产品中加进了RPM的安装方式,这样RPM包的安装也成为了LINUX程序安装的一个标准。
  在进行RPM包的安装工作之前,我们要对RPM的一些命令形式和参数进行熟悉。在LINUX的文字界面下,输入以下命令:
rpm -help
  可以看到有许多的参数。使用以下命令可以使HELP文件分屏显示:
rpm -help |more
  在RPM众多参数之中,最常见的是-e 、-ivh 、-ql。
  这三个命令分别是删除已安装的RPM包,安装RPM包,查询已安装的RPM包。明白这三个命令的使用之后,我们就可以进行程序的安装了。
  首先,我们需要找到安装文件,也就是要安装的RPM包。这个包可以在许多的FTP站点获和,在许多公司发行的LINUX版本中也可以发现这些RPM包。切记,在进行安装之前必须保证自己的ROOT身份。只有是ROOT身分才可以进行硬件的加载,程序的安装等操作。我们以安装php-3.0.7.i386.rpm包为例,讲解如何进行安装。在命令行中,键入以下命令开始进行PHP的安装:
rpm -ivh php-3.0.7.i386.rpm
  你会看到一个进度条,这是用来表示安装进度的。当进度条走到尽头的时候,php-3.0.7.i386.rpm就安装完了。
  在这个PHP的RPM包中,由于支持的选项比较少,一般不能够符合我们的要求。那么我们同样可以对PHP进行定制和编译(只适合使用REDHAT6.1的用户)。
具体步骤如下:
  首先获取PHP源码包,解压后进入该包内。
修改/usr/sbin/目录下的apxs文件。将:
my $CFG_LIBEXECDIR =modules; #substituted via APACI install
修改为:
my $CFG_LIBEXECDIR =/usr/lib/apache; #substituted via APACI install


检查freetype-devel包是否安装,如未安装,请按以下命令安装:
rpm -I freetype-devel-1.3.6.i386.rpm
开始配置,这一步的操作可以参照前面编译的选项做,推荐使用以下选项:
./configure--with-apxs=/usr/sbin/apxs--with-mysql--with-ldap--with-config-file-path=/etc/httpd/conf
  然后,使用以下命令编译并安装新的PHP。
Make
Make install
  将源文件目录中的php3.ini-dist文件拷贝到/etc/httpd/conf目录下,并更名为php3.ini。使用以下命令重启APACHE服务。
/etc/rc.d/init.d/httpb tart
  这时候,新的PHP版本就生效了。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment