Showing posts with label [Apache]. Show all posts
Showing posts with label [Apache]. Show all posts

Saturday, November 16, 2013

[WAMP][solved] localhost in windows 7 not work


Step 1)  Visit : C:\Windows\System32\drivers\etc

Step 2)  Open the document named "hosts"


Step 3) Remove the # sign before 127.0.0.1    localhost and save.

From
# 127.0.0.1       localhost
to
  127.0.0.1       localhost



Step 4) Enter 127.0.0.1 or localhost at Address Bar in browser :



Work !

Thursday, May 23, 2013

[已解決] 安裝PHP後,APACHE不能開啟


回去攪APACHE 同PHP 的問題,
裝了RESTART APACHE 後,才知開不到,
找error log 說有個叫php5apache2_2.dll 的東東load不到,
上網google 下,竟然很少人知咩事,
ORZ, 
自己找方法!!

初初發現我PHP 太新,Apache 太舊,有個檔出了問題,
php5apache2_2.dll for Apache2.2
php5apache2.dll for Apache2.0
很多人求檔,但卻沒人提供原檔
最後我 Download 了Apache2.0 的windows binary package 拆開拿出來用...
但沒有用...

而幾小時後,
才知道是compiler PHP的compiler version 問題,
舊版PHP 用VC6寫,新的用VC9, 甚至VC11寫,
是PHP 太新,Apache 太舊,,不相容
我有2個解決方法,
1) upgrade Apache 2.0 to Apache 2.2
2) downgrade compiler to VC6

Downgrade PHP ? no la, that's not work .
電腦已有Visual C++ 2008, 要downgrade這個,會很痛苦的 >.<

最後裝了一個新的Apache version, 
SOLVED !

[PHP & Apache][Solved] PHP scripts does not work on apache

After I installed php, i found i can't see the php script works,
and finally I found a script work for me:


Add the scripts (2line )in Apache config file is okay
Path: C://Apache2.2/conf/httpd.conf
(<--- open the Apache directory you installed, then click conf folder, and add 2 lines at the end of the "httpd.conf" file.)

AddHandler application/x-httpd-php .php
AddType application/x-httpd-php .php



Ref:
http://forums.fedoraforum.org/showthread.php?t=178285

Wednesday, May 22, 2013

[Apache] Apache HTTP Server installation tutorial on windows platflat

Go to Offical Page of Apache, then go to the download page:
http://httpd.apache.org/download.cgi

Look for the "MSI installer" in the download page:

For me, I downloaded from here, that's same:
http://ftp.cuhk.edu.hk/pub/packages/apache.org/httpd/binaries/win32/

I marked 2 files, you select one of them to download is okay.
To identfy "no-ssl.msi" or "openssp.msi", It's depend on will you develop website with https function,
If the answer is no, download httpd-2.0.64-win32-x86-no_ssl.msi .


After downloaded the msi file, 
double click the msi file(msi installer) and follow the instructions of wizard is okay, then you can open a browser and input "http://127.0.0.1/" to test is the installation success.