设为首页 收藏本站
查看: 1071|回复: 0

[经验分享] Solaris上利用pkgutil工具安装Apache、MySQL和PHP

[复制链接]

尚未签到

发表于 2018-11-28 10:34:45 | 显示全部楼层 |阅读模式
  
PHP
Solaris 2010-10-06 15:27:09 阅读38 评论0  字号: 订阅

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

  • Create user/group maysql
  • cp /opt/csw/mysql5/share/mysql/my-medium.cnf /opt/csw/mysql5/my.cnf
  • /opt/csw/mysql5/bin/mysql_install_db
  • chown -R mysql:mysql /opt/csw/mysql5/var/
  • /opt/csw/mysql5/share/mysql./mysql.server start    //svcadm enable cswmysql5
  • /opt/csw/mysql5/bin/mysqladmin -u root password 'edeletry53'

  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
  
7.启动Apache svcadm enable cswapache2
原文地址:http://user.qzone.qq.com/287786737/blog/1280138363






运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-640640-1-1.html 上篇帖子: php+Apache+mysql配置 下篇帖子: 如何在linux下配置apache+svn
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表