nullTao | 净空无道 | Blog
自刨自吃,闲云野鹤,眼净心净,天宽地宽。
自刨自吃,闲云野鹤,眼净心净,天宽地宽。
Apr 9th
After installed Apache, MySQL, PHP on Windows 2008 R2 64-bit, I ‘m facing the strangest problem ever.
My OS is 64-bit, but Apache, MySQL, PHP are all of 32-bit version. Though MySQL has official 64-bit version released, but I don’t see any benefit while Apache and PHP have not.
When phpMyAdmin is installed and setup, I use Firefox to access it, it took a long time but no response. I read phpMyAdmin‘s document and it says:
When using the “cookie” authentication method, the mcrypt extension is strongly suggested for most users and is required for 64–bit machines. Not using mcrypt will cause phpMyAdmin to load pages significantly slower.
But I checked and checked and sure that I’ve installed mcrypt support successfully.
After all, I wrote a very simple test program contains only one line:
1$link = mysql_connect('localhost', 'root', '') or die('Could not connect: ' . mysql_error());The same thing happened again… and the error message says:
Warning: mysql_connect() [function.mysql-connect]: [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in E:\HTTPD\htdocs\test.php on line 2
Warning: mysql_connect() [function.mysql-connect]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in E:\HTTPD\htdocs\test.php on line 2
Fatal error: Maximum execution time of 30 seconds More >
Mar 3rd
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
Nov 11th
在色魔团伙上看到在讨论惨烈的小时候,将 re 贴记录下来:
生活还在延伸,悲剧未完待续……
Oct 31st
浏览器的首页问题让洒家头疼已久,最初的空白页面,觉得太浪费了,然后用 Google 吧,其实用途不大,后来升级到 Firefox 的 Fast Dial 插件,感觉好多了但是还没有到完美的地步。
实在不行,只能自己动手,丰衣足食,自己用 HTML 写一个首页吧,这样想怎么控制就怎么控制了:
然后配合 Firefox 的 New Tab Homepage 插件,让新开的标签页都能显示默认的起始页,而且反正都是静态的,不在乎速度的问题了。
PS:本贴发布后深受好评,已经有好几个朋友向俺索要源代码自己修改去了。
Sep 14th
I’ve upgrade my WAMP(Windows+Apache+MySQL+PHP) to lastest versions, but Apache crashes more often then it used to be due to incorrect configuring PHP.
Now I’ve finially got a stably working development environment. And here is some notes:
go-pear.bat dose not work.
When initializing as usual using go-pear.bat command, I got an error message:
So, go-pear.bar did not work for me, but: php -dphar.require_hash=0 PEAR\go-pear.phar is all right.
Xdebug makes Apache crashes everytime.
As I said, I’ve upgraded all components to it’s lastest version: Apache, version 2.2.13 form offical site, PHP, version VC9 x86 Thread Safe, MySQL, version 5.1.38-community.
Following Xdebug manual, I have to download the one matches the PHP version I’m using. So, I downloaded Xdebug 2.0.5 5.3 VC9 (32 bit), made modification to php.ini to enable Xdebug, and restart Apache.
From now on, Apache crashed everytime I call phpinof() function. I’ve tried some solution from Google ,but none of them works. Though, one page remains me of the version of PHP. And I found this on PHP for Windows download page:
Which version do I choose?
If you are using PHP with Apache 1 or Apache2 from apache.org you need More >
Aug 29th
忍不住了,还是要学习一下 Samson 的 Update 体了。
手机篇Jul 23rd
习惯于自己从源代码开始编译安装软件,现在要配置一个邮件服务器,以前用的 Qmail,感觉不是很好,sendmail 也被骂死了,决定改 Postfix 看看。
目的:搭建一个支持 POP3、IMAP、SMTP、WebMail 的邮件系统,支持虚拟域和虚拟账户。
操作系统:Slackware,所需软件(库):Postfix、Cyrus SASL、Courier Auth Lib、Courier IMAP server、Courier Maildrop、amavisd-new、Clam AntiVirus、MySQL、Apache、Extman/Extmail、RRDtool。
说明:
/home 下,比如 www、mailbox。/home 下,例如 MySQL、Apache、Postfix 等。Jul 23rd
I was in hell when trying to get LILO installed on a CCISS driver, which is how HP SmartArray RAID card recognized as. No matter I installed LILO to MBR or Boot Record, it always failed.
Here is my solution:
Change hugesmp.s to your kernel if necessary.
c0d0p2 means second partition of logical drive 0 on controller 0, which is my “/” partition.
/etc/lilo.conf. Change boot = /dev/sda to boot = /dev/cciss/c0d0p2.Reboot to check if everthing is right.
Jul 21st
执行 netstat -ap,看看已经打开被监听的端口中是否有下面的所有端口:
12345678910Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:3306 *:* LISTEN 3377/mysqld tcp 0 0 *:auth *:* LISTEN 3080/inetd tcp 0 0 *:smtp *:* LISTEN 29100/master tcp6 0 0 [::]:imaps [::]:* LISTEN 29020/couriertcpd tcp6 0 0 [::]:pop3s More >