PHP is one of the most widely used scripting language on Web. PHP official site is located at According to
What is PHP?
PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.
It is so popular that Usage Stats for March 2006 is 21,439,178 Domains and 1,277,736 IP Addresses!!
Following is installation procedure for PHP on Cygwin/Windows XP.
Please Note: This section discuss information, specific to
SVTechie.COM only. Your requirement may differ significantly, hence
please use any information , presented here on your own risk. This
website and author are no way responsible for damage caused.
Acknowledgement :
Make sure resolv (Part of minires module - also install minires-devel module) is installed.
This was not included during Cygwin Installation but is needed for PHP installation
download and unpack php-5.1.2.tar.gz; it will unpack php-5.1.2 directory. (tar xvfz php-xxx.tar.gz)
configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --without-pear --enable-mbstring --with-mysql-dir={your mysql installation} --with-zlib
Above may not work and needed to be fixed. Major issue is that in Apache2 build, server executables have name httpd.exe but since it is apache2, script looks for httpd2.exe. Modify apxs to point to correct location.
I have seen cygwin apache core dump in following scenario
- Remote login and try to start apache
- Version difference between common installation files between PHP/Apache. It is the case when you install Apache with some files and then upgrade cygwin and then install PHP...
- Sometimes core dump is if you install apache using methods specified on SVTechie as some optimizations (in Apache) doesn't go well with PHP
You may want to start server on local machine, or install apache prebuilt in the cygwin package.
cannot start apache with php..cont.
'Guest' 2006-07-24 01:27:02
"if you install apache using methods specified on SVTechie as some optimizations (in Apache) doesn't go well with PHP
"
what does this mean?
what i did just following the docs in your web site.
for those who use linux box you just need to install xampp in /usr/opt dir and use ./lampp start...you will have a perfect platform for testing and enjoying the usage of php +mysql + phpmyadmin + ssl + proftp etc...
Can't find apxs executable...
jbrancier 2010-10-14 19:21:46
This isn't in my Cygwin distribution, and I couldn't find it in the Cygwin setup???
I looked where apache2 was installed, actually, I looked in the entire Cygwin directory. No hits.
Does anyone have a link for a download?
Thanks, Jeff
make problem? maybe
jbrancier 2010-10-15 14:30:54
After several attempts to configure, I got it OK (I think). Made the mods to the Makefile, when making I got pages and pages of lines like the following:
Somthing to worry about? Fix?
tmp/ccc4fO2E.s:244527: Warning: .stabs: description field '1a349' too big, try a different debug format
tmp/ccc4fO2E.s:244528: Warning: .stabs: description field '1a34a' too big, try a different debug format
tmp/ccc4fO2E.s:244529: Warning: .stabs: description field '1a34b' too big, try a different debug format
tmp/ccc4fO2E.s:244541: Warning: .stabs: description field '1a84c' too big, try a different debug format
tmp/ccc4fO2E.s:244542: Warning: .stabs: description field '1a84c' too big, try a different debug format
tmp/ccc4fO2E.s:244543: Warning: .stabs: description field '1a84c' too big, try a different debug format
tmp/ccc4fO2E.s:244544: Warning: .stabs: description field '1a84c' too big, try a different debug format
tmp/ccc4fO2E.s:244547: Warning: .stabn: description field '1a84c' too big, try a d...
mysql in ./configure
jbrancier 2010-10-15 19:17:24
Can I assume that (assuming the option is supported) to include mysql in my PHP5 build, I'll need to rebuild this all over again?