Solaris 2010-10-06 15:27:09 閱讀38 評論0 字號:大中小 訂閱 1.安裝Apache /opt/csw/bin/pkgutil -i apache2 4.安裝Apache支持PHP的模塊 /opt/csw/bin/pkgutil -i ap2_modphp5 PHP
出現如下提示,輸入Y
22 packages to fetch. Do you want to continue?[Y,n]
出現如下類似提示,輸入y,確認安裝提示中的包
Do you want to continue with the installation of <CSWWoldpart>
在安裝過程中可以看到如下提示,指明瞭配置文件和var location的路徑
This installation has a new config and var location in:
/etc/opt/csw/apache2 and /var/opt/csw/apache2
2.安裝PHP /opt/csw/bin/pkgutil -i php5
出現如下提示,輸入Y
43 packages to fetch. Do you want to continue?[Y,n]
出現如下類似提示,輸入y,確認安裝提示中的包
Do you want to continue with the installation of <CSWfconfig>
3.安裝並啓動MySQL 安裝MySQL
/opt/csw/bin/pkgutil -i mysql5
出現如下提示,輸入Y
8 packages to fetch. Do you want to continue?[Y,n]
出現如下類似提示,輸入y,確認安裝提示中的包
Do you want to continue with the installation of <CSWmysql5>
運行quick_start-csw腳本
/opt/csw/mysql5/share/mysql/quick_start-csw
出現如下提示,輸入回車,確認data directory
Data directory: The default is /var/opt/csw/mysql5.
Accept the default or enter a directory[?,q]
出現如下提示,輸入回車,確認my.cnf的路徑
my.cnf pathname: The default is either to use the supplied file in
the base directory or to create one in the base directory from
the small memory footprint sample. If your enter a pathname,
it will be used to create the options file in the base directory.
my.cnf: The default is /etc/opt/csw/mysql5/my.cnf
Accpet the default or enter a pathname [?,q]
出現如下提示,輸入y
Continue with installation or quit [y,n,?,q]
啓動MySQL
svcadm enable cswmysql5
修改MySQL的root用戶密碼
/opt/csw/mysql5/bin/mysqladmin -u root password 'root'
運行mysql_secure_installation腳本、
/opt/csw/mysql5/bin/mysql_secure_installation -u root -p
Enter current password for root (enter for none):
此處是輸入密碼,但是終端上不會顯示密碼內容
Change root password? [Y/n] n
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] n
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
5.安裝PHP的模塊 php5_mysql
/opt/csw/bin/pkgutil -i php5_mysql
Do you want to install these conflicting files[y,n,?,q] y
Do you want to continue with the installation of <CSWphp5mysql> [y,n,?] y
php5_gd
/opt/csw/bin/pkgutil -i php5_gd
Do you want to install these conflicting files[y,n,?,q] y
Do you want to continue with the installation of <CSWphp5gd> [y,n,?] y
php5_ldap
/opt/csw/bin/pkgutil -i php5_ldap
Do you want to install these conflicting files[y,n,?,q] y
Do you want to continue with the installation of <CSWphp5ldap> [y,n,?] y
6.修改 /etc/opt/csw/apache2/httpd.conf <IfModule dir_module>
DirectoryIndex index.csw.html index.html index.php
</IfModule>
7.啓動Apache svcadm enable cswapache2
原文地址:http://user.qzone.qq.com/287786737/blog/1280138363
Solaris上利用pkgutil工具安裝Apache、MySQL和PHP
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Redhat環境MySQL+Apache+PHP環境配置
znlingdong
2019-02-23 13:29:59
PHP+jQuery實現即點即改功能示例
ztblog
2019-02-24 12:43:05
PHP+jQuery實現雙擊修改table表格功能示例
ztblog
2019-02-24 12:43:05
PHP基於mcript擴展實現對稱加密功能示例
ztblog
2019-02-24 12:43:05
eAccelerator 配置參數詳解
小紅帽子
2019-02-23 13:37:48
6:多源複製的實現
shixiazhoujun
2019-02-24 13:04:18
7:基於語句和行復制的優缺點
shixiazhoujun
2019-02-24 13:04:18
詳解MySQL執行原理、邏輯分層、更改數據庫處理引擎
laozhang
2019-02-24 12:43:05
MySQL中InnoDB和MyISAM的差別
jackieban
2019-02-23 13:57:24
SQL mapper文件的審計
橡皮高
2019-02-23 13:51:10
數據庫管理工具 Navicat使用教程:SQL Server中的磁盤加密
Aote222
2019-02-23 13:34:13
一個苦逼菜鳥安裝Apache的艱辛歷程
心碎小胖子
2019-02-23 13:34:47