博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
LAMP学习环境
阅读量:2357 次
发布时间:2019-05-10

本文共 2770 字,大约阅读时间需要 9 分钟。

学习环境安装,有几种

1.WAMPServer  

  http://www.wampserver.com/en/

  wampserver 2.5 (PHP5.5)

  不能在windowsxp上面安装

可以在windows server2008上面安装

由于原先已经有了一个apache服务器,也已经有了一个mysql server;

所以apache不使用80端口而是8072(8070已经被apache占用);

mysql使用端口3308(原先的mysql使用端口3306)

配置文件

httpd.conf

#Listen 12.34.56.78:80Listen 0.0.0.0:8072Listen [::0]:8072ServerAdmin cajan2@163.comServerName localhost:8072
AllowOverride none Require all denied Allow from all
  

my.ini

[client]port		= 3308# The MySQL server[wampmysqld]port		= 3308# Change your locale here !#lc-messages=fr_FRlc-messages=en_US[mysqld]port=3308
config.inc.php

$cfg['Servers'][$i]['user'] = 'root';$cfg['Servers'][$i]['password'] = '';/* Server parameters */$cfg['Servers'][$i]['host'] = '127.0.0.1';$cfg['Servers'][$i]['port'] ='3308';

2.

appserv

http://appservnetwork.com/

  2.5.10

AppServ 2.5.10

  • Apache 2.2.8
  • PHP 5.2.6
  • MySQL 5.0.51b
  • phpMyAdmin-2.10.3

apache

  8070

MySQL 

  root/root

 

revoke all on books.* from bookorama;revoke all on books.* from bookadmin;grant select,insert,update,delete,index,alter,create,drop on books.* to sally@localhost;grant select,insert,update,delete,index,alter,create,drop on books.* to bookorama@localhost identified by 'bookoroma123';grant select,insert,update,delete,index,alter,create,drop on books.* to bookorama identified by 'bookoroma';show grants;查看其他 MySQL 用户权限:show grants for bookorama@localhost;use mysql;UPDATE mysql.user SET password=PASSWORD('xxxxxxx') WHERE user='root';UPDATE mysql.user SET password=PASSWORD('bookoroma123') WHERE user='bookorama' AND host='localhost';UPDATE mysql.user SET password=PASSWORD('') WHERE user='bookorama' AND host='localhost';
   

php作为apache的一个扩展模块,修改apache或者php的配置文件,都需要重启apache。

学习书籍

PHP和MySQL Web开发(第四版)

(验证不通过)

(经过验证是可行的)

开发工具:

-CTAGS
  ctags -R -f .tag
  发现一个问题:inc文件,无法使用ctags获取函数的位置,只能适用于php文件。inc文件还是要靠右键跳转(这是另外一个插件)

 

cd $php_home

php go-pear.phar

Configuration written to C:\Windows\pear.ini...Would you like to alter php.ini 
? [Y/n] : yphp.ini
include_path updated.Current include path : .;C:\php\pearConfigured directory : D:\wamp\bin\php\php5.5.12\pearCurrently used php.ini (guess) : D:\wamp\bin\php\php5.5.12\php.ini** WARNING! Old version found at D:\wamp\bin\php\php5.5.12, please remove it orbe sure to use the new d:\wamp\bin\php\php5.5.12\pear.bat commandThe 'pear' command is now at your service at d:\wamp\bin\php\php5.5.12\pear.bat* WINDOWS ENVIRONMENT VARIABLES *For convenience, a REG file is available under D:\wamp\bin\php\php5.5.12\PEAR_ENV.reg .This file creates ENV variables for the current user.Double-click this file to add it to the current user registry.
pear list

pear list-all

pear install Mail_Mime

pear install MDB2

上面安装可能不会成功,就到pear网站上面下载这些pakcages

http://pear.php.net/packages.php

转载地址:http://uojtb.baihongyu.com/

你可能感兴趣的文章
How to Install PHP 5 for Iis 6 on Windows Xp and 2003 - wikiHow
查看>>
Robust and High Performance PHP with IIS: Using FastCGI | PHP Everywhere
查看>>
Linkers 连接器 - 上地驿站 - CSDNBlog
查看>>
2.2 Sinos 开发工具简介 - Sinos 操作系统 - CSDNBlog
查看>>
若用MASM写操作系统的启动部分如何实现? 其他开发语言 / 汇编语言 - CSDN社区 community.csdn.net
查看>>
用MASM、TC2.0 写一个简单的x86引导程序 - lvjinhua的专栏 - CSDNBlog
查看>>
操作系统以外的硬盘空间-利用DOS/WINDOWS9X的隐含扇区保护数据 - 企鹅人生 - CSDNBlog
查看>>
用BoundsChecker检测内存泄漏 (zz) - 空穴来风 - C++博客
查看>>
汇编和调用C函数 其他开发语言 / 汇编语言 - CSDN社区 community.csdn.net
查看>>
在 Visual C++ 中使用内联汇编2(转) - 堕落の空间 - 上海大学乐乎博客
查看>>
C语言编译产生的.OBJ文件和汇编编译产生的.OBJ文件,如何连接_百度知道
查看>>
.obj,.lib,.dll,.h之间的相互关系。
查看>>
【格式转换程序软件集】---[A2B]---集中收集-不断更新[2008-3-29] 软件 软件 杭州志彬电脑维修网
查看>>
亲手打造一个QQ恶作剧程序http://www.host01.com/article/InterNet/00100002/0542318402151263_2.htm
查看>>
xxx2xxx转换工具邪恶八进制收集整理上传专用主题(不断更新)https://forum.eviloctal.com/viewthread.php?tid=14426
查看>>
Link.exe中的常用参数 - 天杀的Blog
查看>>
PE工具 编译工具(Compilers)_★〓劳尔工作室〓★
查看>>
保护模式
查看>>
利用bochs(虚拟机)调试自写os代码http://www.yuanma.org/data/2006/1021/article_1694.htm
查看>>
自己动手写操作系统--"Hello, OS world!"http://blog.csdn.net/zieckey/archive/2007/05/15/1609908.aspx
查看>>