open SUSE 安裝LAMP(Linux + Apache + MySql + PHP)
作業系統版本:open SUSE 11.4
安裝MySql
yast2 -i mysql mysql-client mysql-community-server
設定MySql帳密
# mysql_secure_installation
安裝Apache2
yast2 -i apache2
瀏覽器測試服務是否啟動
localhost
ifconfig查詢自己的IP位置
127.0.0.1
安裝PHP5
yast2 -i apache2-mod_php5
apache 啟動
/etc/init.d/apache2 start
或只是
systemctl start apache2.service
安裝php5模組
# yast2 -i php5-mysql php5-bcmath php5-bz2 php5-calendar php5-ctype php5-curl php5-dom php5-ftp php5-gd php5-gettext php5-gmp php5-iconv php5-imap php5-ldap php5-mbstring php5-mcrypt php5-odbc php5-openssl php5-pcntl php5-pgsql php5-posix php5-shmop php5-snmp php5-soap php5-sockets php5-sqlite php5-sysvsem php5-tokenizer php5-wddx php5-xmlrpc php5-xsl php5-zlib php5-exif php5-fastcgi php5-pear php5-sysvmsg php5-sysvshm
apache 重新啟動
/etc/init.d/apache2 restart
或是
systemctl restart apache2.service
網頁放置:
/srv/www/htdocs
留言
張貼留言