打印

[原创] lamp 安装过程,有不对之处请指正

lamp 安装过程,有不对之处请指正

login as: root
root@192.168.0.114's password:
Last login: Mon Jul 16 05:47:25 2007
[root@bogon ~]#
[root@bogon ~]#
[root@bogon ~]# cd / [root@bogon /]# cd mnt
[root@bogon mnt]# ll
total 8
drwxr-xr-x 2 root root 4096 Jul 8 01:42 cd
[root@bogon mnt]# mount /dev/cdrom /mnt/cd/ mount: block device /dev/cdrom is write-protected, mounting read-only
[root@bogon mnt]# ll cd
total 3852
drwxr-xr-x 3 root root 6144 Mar 18 04:43 Cluster
drwxr-xr-x 3 root root 6144 Mar 18 04:43 ClusterStorage
-rw-r--r-- 1 root root 8446 Jan 25 08:38 EULA
-rw-r--r-- 1 root root 8446 Feb 9 03:58 eula.en_US
-rw-r--r-- 1 root root 18416 Dec 1 2006 GPL
drwxr-xr-x 4 root root 2048 Mar 18 04:43 images
drwxr-xr-x 2 root root 2048 Mar 18 04:43 isolinux
-rw-r--r-- 1 root root 15844 Feb 8 15:16 README-as.html
-rw-r--r-- 1 root root 16795 Feb 8 15:16 README-bn.html
-rw-r--r-- 1 root root 11106 Feb 8 15:16 README-de.html
-rw-r--r-- 1 root root 8223 Feb 8 15:16 README-en
-rw-r--r-- 1 root root 10684 Feb 8 15:16 README-en.html
-rw-r--r-- 1 root root 11068 Feb 8 15:16 README-es.html
-rw-r--r-- 1 root root 11521 Feb 8 15:16 README-fr.html
-rw-r--r-- 1 root root 15918 Feb 8 15:16 README-gu.html
-rw-r--r-- 1 root root 15874 Feb 8 15:16 README-hi.html
-rw-r--r-- 1 root root 11009 Feb 8 15:16 README-it.html
-rw-r--r-- 1 root root 12138 Feb 8 15:16 README-ja.html
-rw-r--r-- 1 root root 17557 Feb 8 15:16 README-kn.html
-rw-r--r-- 1 root root 11425 Feb 8 15:16 README-ko.html
-rw-r--r-- 1 root root 19092 Feb 8 15:16 README-ml.html
-rw-r--r-- 1 root root 16076 Feb 8 15:16 README-mr.html
-rw-r--r-- 1 root root 15000 Feb 8 15:16 README-or.html
-rw-r--r-- 1 root root 15733 Feb 8 15:16 README-pa.html
-rw-r--r-- 1 root root 11259 Feb 8 15:16 README-pt_BR.html
-rw-r--r-- 1 root root 13336 Feb 8 15:16 README-ru.html
-rw-r--r-- 1 root root 17676 Feb 8 15:16 README-si.html
-rw-r--r-- 1 root root 16846 Feb 8 15:16 README-ta.html
-rw-r--r-- 1 root root 15975 Feb 8 15:16 README-te.html
-rw-r--r-- 1 root root 9877 Feb 8 15:16 README-zh_CN.html
-rw-r--r-- 1 root root 9509 Feb 8 15:16 README-zh_TW.html
-rw-r--r-- 1 root root 165142 Feb 8 15:16 RELEASE-NOTES-as.html
-rw-r--r-- 1 root root 167823 Feb 8 15:16 RELEASE-NOTES-bn.html
-rw-r--r-- 1 root root 101803 Feb 8 15:16 RELEASE-NOTES-de.html
-rw-r--r-- 1 root root 74003 Feb 8 15:16 RELEASE-NOTES-en
-rw-r--r-- 1 root root 90454 Feb 8 15:16 RELEASE-NOTES-en.html
-rw-r--r-- 1 root root 98730 Feb 8 15:16 RELEASE-NOTES-es.html
-rw-r--r-- 1 root root 101233 Feb 8 15:16 RELEASE-NOTES-fr.html
-rw-r--r-- 1 root root 159985 Feb 8 15:16 RELEASE-NOTES-gu.html
-rw-r--r-- 1 root root 159436 Feb 8 15:16 RELEASE-NOTES-hi.html
-rw-r--r-- 1 root root 99388 Feb 8 15:16 RELEASE-NOTES-it.html
-rw-r--r-- 1 root root 111276 Feb 8 15:16 RELEASE-NOTES-ja.html
-rw-r--r-- 1 root root 178444 Feb 8 15:16 RELEASE-NOTES-kn.html
-rw-r--r-- 1 root root 103821 Feb 8 15:16 RELEASE-NOTES-ko.html
-rw-r--r-- 1 root root 197034 Feb 8 15:16 RELEASE-NOTES-ml.html
-rw-r--r-- 1 root root 158262 Feb 8 15:16 RELEASE-NOTES-mr.html
-rw-r--r-- 1 root root 179204 Feb 8 15:16 RELEASE-NOTES-or.html
-rw-r--r-- 1 root root 148581 Feb 8 15:16 RELEASE-NOTES-pa.html
-rw-r--r-- 1 root root 98366 Feb 8 15:16 RELEASE-NOTES-pt_BR.html
-rw-r--r-- 1 root root 126621 Feb 8 15:16 RELEASE-NOTES-ru.html
-rw-r--r-- 1 root root 162604 Feb 8 15:16 RELEASE-NOTES-si.html
-rw-r--r-- 1 root root 171699 Feb 8 15:16 RELEASE-NOTES-ta.html
-rw-r--r-- 1 root root 157585 Feb 8 15:16 RELEASE-NOTES-te.html
-rw-r--r-- 1 root root 84449 Feb 8 15:16 RELEASE-NOTES-zh_CN.html
-rw-r--r-- 1 root root 84935 Feb 8 15:16 RELEASE-NOTES-zh_TW.html
-rw-r--r-- 1 root root 1519 Feb 9 03:58 RPM-GPG-KEY-fedora
-rw-r--r-- 1 root root 1076 Feb 9 03:58 RPM-GPG-KEY-fedora-test
-rw-r--r-- 1 root root 1175 Feb 9 03:58 RPM-GPG-KEY-redhat-auxiliary
-rw-r--r-- 1 root root 1706 Feb 9 03:58 RPM-GPG-KEY-redhat-beta
-rw-r--r-- 1 root root 1990 Feb 9 03:58 RPM-GPG-KEY-redhat-former
-rw-r--r-- 1 root root 1164 Feb 9 03:58 RPM-GPG-KEY-redhat-release
drwxr-xr-x 3 root root 337920 Mar 18 04:43 Server
-r--r--r-- 1 root root 14628 Mar 18 04:43 TRANS.TBL
drwxr-xr-x 3 root root 6144 Mar 18 04:43 VT
[root@bogon mnt]# rpm -qa | grep mysql
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/sqlite-
sqlite-3.3.6-2.i386.rpm sqlite-devel-3.3.6-2.i386.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-
mysql-5.0.22-2.1.i386.rpm
mysql-bench-5.0.22-2.1.i386.rpm
mysql-connector-odbc-3.51.12-2.2.i386.rpm
mysql-devel-5.0.22-2.1.i386.rpm
mysql-server-5.0.22-2.1.i386.rpm
mysql-test-5.0.22-2.1.i386.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.22-2.1.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libmysqlclient.so.15 is needed by mysql-server-5.0.22-2.1.i386
libmysqlclient.so.15(libmysqlclient_15) is needed by mysql-server-5.0.22-2.1.i386
libmysqlclient_r.so.15 is needed by mysql-server-5.0.22-2.1.i386
libmysqlclient_r.so.15(libmysqlclient_15) is needed by mysql-server-5.0.22-2.1.i386
mysql = 5.0.22-2.1 is needed by mysql-server-5.0.22-2.1.i386
perl(DBI) is needed by mysql-server-5.0.22-2.1.i386
perl-DBD-MySQL is needed by mysql-server-5.0.22-2.1.i386
perl-DBI is needed by mysql-server-5.0.22-2.1.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-
perl-5.8.8-10.i386.rpm
perl-Archive-Tar-1.30-1.fc6.noarch.rpm
perl-Bit-Vector-6.4-2.2.2.1.i386.rpm
perl-BSD-Resource-1.28-1.fc6.1.i386.rpm
perl-Carp-Clan-5.3-1.2.1.noarch.rpm
perl-Compress-Zlib-1.42-1.fc6.i386.rpm
perl-Convert-ASN1-0.20-1.1.noarch.rpm
perl-Crypt-SSLeay-0.51-11.el5.i386.rpm
perl-Date-Calc-5.4-1.2.2.1.i386.rpm
perl-DateManip-5.44-1.2.1.noarch.rpm
perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
perl-DBD-Pg-1.49-1.fc6.i386.rpm
perl-DBI-1.52-1.fc6.i386.rpm
perl-Digest-HMAC-1.01-15.noarch.rpm
perl-Digest-SHA1-2.11-1.2.1.i386.rpm
perl-HTML-Parser-3.55-1.fc6.i386.rpm
perl-HTML-Tagset-3.10-2.1.1.noarch.rpm
perl-IO-Socket-INET6-2.51-2.fc6.noarch.rpm
perl-IO-Socket-SSL-1.01-1.fc6.noarch.rpm
perl-IO-String-1.08-1.1.1.noarch.rpm
perl-IO-Zlib-1.04-4.2.1.noarch.rpm
perl-LDAP-0.33-3.fc6.noarch.rpm
perl-libwww-perl-5.805-1.1.1.noarch.rpm
--More--
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
warning: /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libmysqlclient.so.15 is needed by perl-DBD-MySQL-3.0007-1.fc6.i386
libmysqlclient.so.15(libmysqlclient_15) is needed by perl-DBD-MySQL-3.0007-1.fc6.i386
perl(DBI) is needed by perl-DBD-MySQL-3.0007-1.fc6.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/lib
Display all 272 possibilities? (y or n)
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-
perl-5.8.8-10.i386.rpm
perl-Archive-Tar-1.30-1.fc6.noarch.rpm
perl-Bit-Vector-6.4-2.2.2.1.i386.rpm
perl-BSD-Resource-1.28-1.fc6.1.i386.rpm
perl-Carp-Clan-5.3-1.2.1.noarch.rpm
perl-Compress-Zlib-1.42-1.fc6.i386.rpm
perl-Convert-ASN1-0.20-1.1.noarch.rpm
perl-Crypt-SSLeay-0.51-11.el5.i386.rpm
perl-Date-Calc-5.4-1.2.2.1.i386.rpm
perl-DateManip-5.44-1.2.1.noarch.rpm
perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
perl-DBD-Pg-1.49-1.fc6.i386.rpm
perl-DBI-1.52-1.fc6.i386.rpm
perl-Digest-HMAC-1.01-15.noarch.rpm
perl-Digest-SHA1-2.11-1.2.1.i386.rpm
perl-HTML-Parser-3.55-1.fc6.i386.rpm
perl-HTML-Tagset-3.10-2.1.1.noarch.rpm
perl-IO-Socket-INET6-2.51-2.fc6.noarch.rpm
perl-IO-Socket-SSL-1.01-1.fc6.noarch.rpm
perl-IO-String-1.08-1.1.1.noarch.rpm
perl-IO-Zlib-1.04-4.2.1.noarch.rpm
perl-LDAP-0.33-3.fc6.noarch.rpm
perl-libwww-perl-5.805-1.1.1.noarch.rpm
perl-libxml-perl-0.08-1.2.1.noarch.rpm
perl-Net-DNS-0.59-1.fc6.i386.rpm
perl-Net-IP-1.25-2.fc6.noarch.rpm
perl-Net-SSLeay-1.30-4.fc6.i386.rpm
perl-Net-Telnet-3.03-5.noarch.rpm
perl-NKF-2.07-1.1.fc6.i386.rpm
perl-SGMLSpm-1.03ii-16.2.1.noarch.rpm
perl-Socket6-0.19-3.fc6.i386.rpm
perl-String-CRC32-1.4-2.fc6.i386.rpm
perl-suidperl-5.8.8-10.i386.rpm
perl-URI-1.35-3.noarch.rpm
perl-XML-Dumper-0.81-2.fc6.noarch.rpm
perl-XML-Grove-0.46alpha-29.1.1.noarch.rpm
perl-XML-LibXML-1.58-5.i386.rpm
perl-XML-LibXML-Common-0.13-8.2.2.i386.rpm
perl-XML-NamespaceSupport-1.09-1.2.1.noarch.rpm
perl-XML-Parser-2.34-6.1.2.2.1.i386.rpm
perl-XML-SAX-0.14-5.noarch.rpm
perl-XML-Simple-2.14-4.fc6.noarch.rpm
perl-XML-Twig-3.26-1.fc6.noarch.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-5.8.8-10.i386.rpm
warning: /mnt/cd/Server/perl-5.8.8-10.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package perl-5.8.8-10 is already installed
[root@bogon mnt]#
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-DBI-1.52-1.fc6.i386.rpm
warning: /mnt/cd/Server/perl-DBI-1.52-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
warning: /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
libmysqlclient.so.15 is needed by perl-DBD-MySQL-3.0007-1.fc6.i386
libmysqlclient.so.15(libmysqlclient_15) is needed by perl-DBD-MySQL-3.0007-1.fc6.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-
mysql-5.0.22-2.1.i386.rpm
mysql-bench-5.0.22-2.1.i386.rpm
mysql-connector-odbc-3.51.12-2.2.i386.rpm
mysql-devel-5.0.22-2.1.i386.rpm
mysql-server-5.0.22-2.1.i386.rpm
mysql-test-5.0.22-2.1.i386.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-l-5.0.22-2.1.i386.rpm
error: open of /mnt/cd/Server/mysql-l-5.0.22-2.1.i386.rpm failed: No such file or directory
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl-DBD-MySQL is needed by mysql-server-5.0.22-2.1.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-devel-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-devel-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql-devel ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm
warning: /mnt/cd/Server/perl-DBD-MySQL-3.0007-1.fc6.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-DBD-MySQL ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm warning: /mnt/cd/Server/mysql-server-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql-server ########################################### [100%]
[root@bogon mnt]#


[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-
mysql-5.0.22-2.1.i386.rpm
mysql-bench-5.0.22-2.1.i386.rpm
mysql-connector-odbc-3.51.12-2.2.i386.rpm
mysql-devel-5.0.22-2.1.i386.rpm
mysql-server-5.0.22-2.1.i386.rpm
mysql-test-5.0.22-2.1.i386.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/mysql-bench-5.0.22-2.1.i386.rpm
warning: /mnt/cd/Server/mysql-bench-5.0.22-2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql-bench ########################################### [100%]
[root@bogon mnt]#

---------------------ok
[root@bogon mnt]# chkconfig --list mysql
error reading information on service mysql: No such file or directory
[root@bogon mnt]# chkconfig --list mysqld
mysqld 0ff 1ff 2ff 3:off 4:off 5:off 6:off
[root@bogon mnt]# service mysqld start
Initializing MySQL database: WARNING: The host 'bogon' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h bogon password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[ OK ]
Starting MySQL: [ OK ]
[root@bogon mnt]# netstat -tulpn | grep mysql
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2979/mysqld
[root@bogon mnt]# mysqladmin -u root password 'linux'
[root@bogon mnt]# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[root@bogon mnt]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 5.0.22

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> quit
Bye
[root@bogon mnt]#
[root@bogon mnt]# chk
chkconfig chkfontpath
[root@bogon mnt]# chkconfig --level 35 mysqld on
[root@bogon mnt]# chkconfig --list |grep mysqld
mysqld 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@bogon mnt]#




apache安装


[root@bogon mnt]# rpm -qa |grep httpd
httpd-2.2.3-6.el5
system-config-httpd-1.3.3.1-1.el5
[root@bogon mnt]# rpm -Uvh /mnt/cd/Server/httpd-
httpd-2.2.3-6.el5.i386.rpm httpd-manual-2.2.3-6.el5.i386.rpm
httpd-devel-2.2.3-6.el5.i386.rpm
[root@bogon mnt]# rpm -Uvh /mnt/cd/Server/httpd-2.2.3-6.el5.i386.rpm
warning: /mnt/cd/Server/httpd-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
package httpd-2.2.3-6.el5 is already installed
[root@bogon mnt]# rpm -Uvh /mnt/cd/Server/httpd-devel-2.2.3-6.el5.i386.rpm
warning: /mnt/cd/Server/httpd-devel-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
apr-devel is needed by httpd-devel-2.2.3-6.el5.i386
apr-util-devel is needed by httpd-devel-2.2.3-6.el5.i386
[root@bogon mnt]# rpm -Uvh /mnt/cd/Server/httpd-manual-2.2.3-6.el5.i386.rpm
warning: /mnt/cd/Server/httpd-manual-2.2.3-6.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:httpd-manual ########################################### [100%]
[root@bogon mnt]#

[root@bogon mnt]#
[root@bogon mnt]# chkconfig --list |grep httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@bogon mnt]# service httpd start
Starting httpd: [ OK ]
[root@bogon mnt]# chkconfig --level 35 httpd on
[root@bogon mnt]# chkconfig --list |grep httpd
httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
[root@bogon mnt]#
[root@bogon mnt]# iptables -F
[root@bogon mnt]# iptables -X
[root@bogon mnt]#清空防火墙


php安装


[root@bogon mnt]# rpm -qa |grep php
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-
php-5.1.6-5.el5.i386.rpm php-mysql-5.1.6-5.el5.i386.rpm
php-bcmath-5.1.6-5.el5.i386.rpm php-ncurses-5.1.6-5.el5.i386.rpm
php-cli-5.1.6-5.el5.i386.rpm php-odbc-5.1.6-5.el5.i386.rpm
php-common-5.1.6-5.el5.i386.rpm php-pdo-5.1.6-5.el5.i386.rpm
php-dba-5.1.6-5.el5.i386.rpm php-pear-1.4.9-4.noarch.rpm
php-devel-5.1.6-5.el5.i386.rpm php-pgsql-5.1.6-5.el5.i386.rpm
php-gd-5.1.6-5.el5.i386.rpm php-snmp-5.1.6-5.el5.i386.rpm
php-imap-5.1.6-5.el5.i386.rpm php-soap-5.1.6-5.el5.i386.rpm
php-ldap-5.1.6-5.el5.i386.rpm php-xml-5.1.6-5.el5.i386.rpm
php-mbstring-5.1.6-5.el5.i386.rpm php-xmlrpc-5.1.6-5.el5.i386.rpm
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
php-cli = 5.1.6-5.el5 is needed by php-5.1.6-5.el5.i386
php-common = 5.1.6-5.el5 is needed by php-5.1.6-5.el5.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-cli-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-cli-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
php-common = 5.1.6-5.el5 is needed by php-cli-5.1.6-5.el5.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-common-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-common-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-common ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-cli-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-cli-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-cli ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-mysql-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-mysql-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
php-pdo is needed by php-mysql-5.1.6-5.el5.i386
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-pdo-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-pdo-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-pdo ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-mysql-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-mysql-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-mysql ########################################### [100%]
[root@bogon mnt]# rpm -ivh /mnt/cd/Server/php-devel-5.1.6-5.el5.i386.rpm
warning: /mnt/cd/Server/php-devel-5.1.6-5.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:php-devel ########################################### [100%]
[root@bogon mnt]#
[root@bogon mnt]#
[root@bogon mnt]# cd / [root@bogon /]# vi /etc/httpd/ conf/ conf.d/ logs/ modules/ run/ [root@bogon /]# vi /etc/httpd/conf/ httpd.conf magic
[root@bogon /]# vi /etc/httpd/conf/httpd.conf
[root@bogon /]# vim /etc/httpd/conf/httpd.conf
[root@bogon /]# cd /var/ account/ db/ lib/ mail/ racoon/ www/ cache/ empty/ local/ nis/ run/ yp/ crash/ games/ lock/ opt/ spool/ cvs/ gdm/ log/ preserve/ tmp/ [root@bogon /]# cd /var/www/ cgi-bin/ error/ html/ icons/ manual/ [root@bogon /]# cd /var/www/html/ [root@bogon html]# ll
total 0
现在是空目录
[root@bogon html]# vi 1.php
[root@bogon html]# pwd
/var/www/html
[root@bogon html]# cat 1.php
<?
phpinfo();
?>

[root@bogon html]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@bogon html]#

TOP

很详细。RPM安装过程。
欢迎大家到认证区参与考试题目知识探讨,提问有奖励,解答更有奖励。
友情点击:最近在忙的事情!

TOP

本功能由奇虎搜索实现

相关主题

标题 作者 最后发表
[站外] 20081129 一个人总要走陌生的路 哲学   [转帖] 栀子花香 2008-11-29
[站外] Just a Problem Jamb   [转帖] pameaborems 2008-11-30
[站外] 免费程序指导   [转帖] willyenillye 2008-11-30
点击阅读更多关于的相关帖子  更多相关主题