由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - How To Install Linux, Apache, MySQL, PHP (LAMP)
相关主题
Question about Apache & permissionapache问题请教
error in connecting PHP with MySQLproblem: apache web server
请推荐好的web hosting service,要求如下:怎么在Apache tomcat6下装php5?
google app engine和amazon aws做网站how to configure apache to support mobile browsing traffic?
有成功集合过Apache2和PHP4的大侠吗?Apache PHP 和MySQL 的版本问题
Can not start Apache 2 with 用户认证. :-(求教 php中的js语句不work
[转载] start apache server , httpd? apachectl?新浪互联星空网站的体系结构(转)
Apache 1.3.33 + PHP 4.3.10 @ Redhat 9???LAMP
相关话题的讨论汇总
话题: php话题: install话题: apache话题: apt话题: mysql
进入BuildingWeb版参与讨论
1 (共1页)
c********1
发帖数: 421
1
About LAMP
LAMP stack is a group of open source software used to get web servers up and
running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the
virtual private server is already running Debian, the linux part is taken
care of. Here is how to install the rest.
Set Up
Before running through the steps of this tutorial, make sure that all of
your repositories are up to date:
apt-get update
apt-get upgrade
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
apt-get install php5 php-pear php5-suhosin php5-mysql
service apache2 restart
c********1
发帖数: 421
c********1
发帖数: 421
3
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' ;
FLUSH PRIVILEGES;
exit
sudo vi /etc/mysql/my.cnf
comment out the line: bind-address = 127.0.0.1
:wq
service mysql restart
c********1
发帖数: 421
4
version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2 (and how to fix the GPG key
error)
BY CHRIS · SEPTEMBER 1, 2013
Please note: This works fine. But this package will also upgrade your apache
to version 2.4 which has different config files than apache 2.2 and even
deletes stuff, like /etc/apache2/sites-available/default when upgrading.
This may result in a loss of your apache settings (vhost, mod_rewrite stuff
etc.). Be aware of that ! This shit cost me a full weekend. :(
This affects only upgrades, not fresh installs for sure.
Update on that issue: This is a known bug, I’ll keep this post updated…
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716880
There’s a nice method to install the very latest version of PHP 5.5 on
Debian Wheezy 7.0 or 7.1 with some bash commands.
1. Add these package sources to your sources.list file: Enter the file via
sudo nano /etc/apt/sources.list
and add these lines at the end of the file (right click pastes):
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
Save and close (CTRL-X, “y”, ENTER).
2. Do an update:
sudo apt-get update
You’ll get an error message in the last line of the update progress now.
3. It’s not possible to install PHP now, as Debian just gave an error and
said that these new sources are not verified and blah blah, the public key
is not available… I find this process highly unintutive and I really don’t
know why it’s so complicated to update PHP, but well, that’s how it is…
Method #1
The last line of this error message contains a key, like “E9C74FEEA2098A6E
”. Copy that key (mark the string with the mouse usually copies it into the
clipboard) and run these commands to verifiy the new package sources (and
put YOUR key in here):
gpg --keyserver packages.dotdeb.org --recv-key E9C74FEEA2098A6E
gpg -a --export E9C74FEEA2098A6E | sudo apt-key add -
Method #2 (thanks Petr for bringing this in!)
wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
4. Do an update again:
sudo apt-get update
5. Install the latest version of PHP 5:
sudo apt-get install php5
6. Check the installed version of PHP 5 (phpinfo() will still show old PHP
version until apache restart):
php -v
Finally, restart the apache:
sudo service apache2 restart
By the way, it’s not possible (as far as I know) to install PHP 5.5 on
Debian 6 (without compiling source code manually).
By the way #2, I’ve also written a tutorial on “How to setup latest
version of PHP 5.5 on Ubuntu 12.04 LTS“, which is different from this here.
c********1
发帖数: 421
5
http://www.dev-metal.com/setup-latest-version-php-5-5-debian-wh
How to install/setup latest version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2
(and how to fix the GPG key error)
BY CHRIS · SEPTEMBER 1, 2013
Please note: This works fine. But this package will also upgrade your apache
to version 2.4 which has different config files than apache 2.2 and even
deletes stuff, like /etc/apache2/sites-available/default when upgrading.
This may result in a loss of your apache settings (vhost, mod_rewrite stuff
etc.). Be aware of that ! This shit cost me a full weekend. :(
This affects only upgrades, not fresh installs for sure.
Update on that issue: This is a known bug, I’ll keep this post updated…
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=716880
There’s a nice method to install the very latest version of PHP 5.5 on
Debian Wheezy 7.0 or 7.1 with some bash commands.
1. Add these package sources to your sources.list file: Enter the file via
sudo nano /etc/apt/sources.list
and add these lines at the end of the file (right click pastes):
deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all
Save and close (CTRL-X, “y”, ENTER).
2. Do an update:
sudo apt-get update
You’ll get an error message in the last line of the update progress now.
3. It’s not possible to install PHP now, as Debian just gave an error and
said that these new sources are not verified and blah blah, the public key
is not available… I find this process highly unintutive and I really don’t
know why it’s so complicated to update PHP, but well, that’s how it is…
Method #1
The last line of this error message contains a key, like “E9C74FEEA2098A6E
”. Copy that key (mark the string with the mouse usually copies it into the
clipboard) and run these commands to verifiy the new package sources (and
put YOUR key in here):
gpg --keyserver packages.dotdeb.org --recv-key E9C74FEEA2098A6E
gpg -a --export E9C74FEEA2098A6E | sudo apt-key add -
Method #2 (thanks Petr for bringing this in!)
wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
4. Do an update again:
sudo apt-get update
5. Install the latest version of PHP 5:
sudo apt-get install php5
6. Check the installed version of PHP 5 (phpinfo() will still show old PHP
version until apache restart):
php -v
Finally, restart the apache:
sudo service apache2 restart
By the way, it’s not possible (as far as I know) to install PHP 5.5 on
Debian 6 (without compiling source code manually).
By the way #2, I’ve also written a tutorial on “How to setup latest
version of PHP 5.5 on Ubuntu 12.04 LTS“, which is different from this here.
d****i
发帖数: 4809
6
赞科普贴,你跑的distro是Debian? PHP功能强大又简单,框架无穷多,符合多快好省
的建设社会主义精神,哈哈

and

【在 c********1 的大作中提到】
: About LAMP
: LAMP stack is a group of open source software used to get web servers up and
: running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the
: virtual private server is already running Debian, the linux part is taken
: care of. Here is how to install the rest.
: Set Up
: Before running through the steps of this tutorial, make sure that all of
: your repositories are up to date:
: apt-get update
: apt-get upgrade

e*9
发帖数: 2289
7
用哪个版本的linux(red hat, ubuntu)都行?
d****i
发帖数: 4809
8
sure of course. But bear in mind that RHEL/CentOS and Ubuntu/Debian have
different package management system. Also, conf files for various software
for these two types of Linux are also located in different directories.

【在 e*9 的大作中提到】
: 用哪个版本的linux(red hat, ubuntu)都行?
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
LAMP有成功集合过Apache2和PHP4的大侠吗?
调整配置太麻烦了Can not start Apache 2 with 用户认证. :-(
问三道PHP/Linux/Apache/MySQL相关的题目[转载] start apache server , httpd? apachectl?
有没有比较php和.net的比较全面的文章?Apache 1.3.33 + PHP 4.3.10 @ Redhat 9???
Question about Apache & permissionapache问题请教
error in connecting PHP with MySQLproblem: apache web server
请推荐好的web hosting service,要求如下:怎么在Apache tomcat6下装php5?
google app engine和amazon aws做网站how to configure apache to support mobile browsing traffic?
相关话题的讨论汇总
话题: php话题: install话题: apache话题: apt话题: mysql