slackware设置LAMP - digwtx's Blog
slackware设置LAMP
Apache2:
設定檔為/etc/httpd/httpd.conf,而網頁放置在/srv/httpd/htdocs/目錄中
替Apache2加上執行檔後啟動
# chmod +x /etc/rc.d/rc.httpd
# /etc/rc.d/rc.httpd start
打開Firefox在網址列打上http://localhost/,假如成功的話,會出現It works!
Mysql5:
先 vi /etc/rc.d/rc.mysqld 瞧瞧,會看到一堆英文......裡面有這兩行
# su - mysql
# mysql_install_db
給它照著打一遍
然後
# mv /etc/my-small.cnf /etc/my.cnf (my-small.cnf不一定適合你,請依需求自己換為my-huge.cnf,my-large.cnf或my-medium.cnf)
# chown -R mysql:mysql /var/lib/mysql/
啟動Mysql
# chmod +x /etc/rd.d/rc.mysqld
# /etc/rc.d/rc.mysqld start
接下來創個資料庫試試看,有沒有發現資料庫是Ro呀 ^^
# mysqladmin -u root password <Your_Pass_Word>
# mysqladmin -u root -p create ragnarok
測試一下有沒有乖乖的做事吧!
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.37 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
看到mysql>的提示符號就知道正常工作嚕
PHP5:
PHP5的設定檔php.ini和mod_php.conf都在/etc/httpd目錄下
# cd /etc/httpd/
# mv php.ini-recommended php.ini
# mv mod_php.conf.example mod_php.conf
# vi /etc/httpd/httpd.conf,去掉第472行的註解#,然後在DirectoryIndex index.html的後面加上 index.htm index.php,如下
#Include /etc/httpd/mod_php.conf
改為
Include /etc/httpd/mod_php.conf
.
DirectoryIndex index.html
改為
DirectoryIndex index.html index.htm index.php
然後重啟Apache2
# /etc/rc.d/rc.httpd restart
接下來測試PHP5有沒有正常
# vi /srv/httpd/htdocs/test.php,輸入以下內容
然後Firefox網址列打上http://localhost/test.php,假如出現PHP的訊息頁就是成功了
2022年8月16日 21:34
The Nagaland 11th grade Important Question Paper 2023 was released in May of the previous year, and the exams were held in March. The 11th grade examinations were held in March this year, as they were the year before, and we anticipate that the May announcement of the Nagaland 11th Important Question Paper 2023 will be the same. NBSE Plus One Previous Paper 2023 Therefore, following the release of the Nagaland 11th Model Paper, all students who took these examinations and are currently anticipating the NBSE +2 Important Question Paper 2023 of these exams may check their Nagaland 11th Important Question Paper 2023 by utilising the official web portal site of this board.
2022年9月11日 13:16
The most recent free-to-play first-person shooter game that can be played on both mobile devices and desktop PCs is called Blockpost. This game is a superb illustration of how cubic 3D game graphics and first-person shooter (FPS) gameplay can coexist seamlessly. With gamers from around the world, you will participate in fierce online firefights.
2022年10月07日 17:24
We get a lot of fun out of the various internet games available nowadays.
2023年1月10日 22:11
Slackware is a great choice for setting up a LAMP server. It is a very stable and secure operating system, and the package manager peter veres photography artist makes it easy to install all of the necessary software. Apache, MySQL, and PHP will all run perfectly on Slackware, and you will have a robust and reliable server that can handle any load.
2023年5月19日 16:39
I think this is one of the more important information for me personally.
2023年7月19日 17:45
We have a great time playing all of the numerous games that are available to us on the internet. In the normal flow of things to happen
2023年7月19日 17:48
The various internet games that are accessible to us are a great source of entertainment, and we spend a lot of time participating in them. As is customary and appropriate, the following will occur:
2023年7月20日 18:13
We have a terrific time taking part in all of the different games that we can access over the internet since there are so many of them. In accordance with the usual course of events to take place