1.安装Apache /opt/csw/bin/pkgutil -i apache2
出现如下提示,输入Y
22 packages to fetch. Do you want to continue?[Y,n]
出现如下类似提示,输入y,确认安装提示中的包
Do you want to continue with the installation of
在安装过程中可以看到如下提示,指明了配置文件和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 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
运行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 4.安装Apache支持PHP的模块 /opt/csw/bin/pkgutil -i ap2_modphp5
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 [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 [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 [y,n,?] y 6.修改 /etc/opt/csw/apache2/httpd.conf DirectoryIndex index.csw.html index.html index.php