logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: [SOLVED] Minimalistic webServer, compiling PHP v5.3
Author
eWey



Joined: 29 Oct 2009
Posts: 3

PostPosted: Thu 29 Oct '09 23:59    Post subject: [SOLVED] Minimalistic webServer, compiling PHP v5.3 Reply with quote

Well first at all... you guys have a terrific site going on in here... lots and lots of help and people commited to bring solutions to others. That's just great.

I've surfed across hundreds of post to find a solution for my specific problem and that didn't happen, so I'm here to explain my situation:

I love that everything be as minimalistic as possible, so I always do manual installations of Apache, PHP and MySQL for my developments.

At the moment of this post this are my versions:

- Apache v2.2.13 (ASF)
- PHP v5.2.11 (with APC, dBase, LDap, MySQL and OCI8)
- MySQL v5.1.39

And as everyone in here, that version combo causes a crash, so I've just downgraded the libmySQL.dll with the one bundled with PHP (libmySQL.dll v5.0.51a), so it's working.

That served me to develop a webApp with ExtJS v2, but the innevitable upgrade to ExtJS v3 is imminent. And the improvements in PHP v5.3 looks terrific for my style of coding (Namespacing, Lambada functions and the mod for Ternary Operator).

I've seen that support for dBase was dropped and for my project is just VITAL, so I've come across the idea of building myself my own trimmed version of PHP v5.3 with native support for the extensions loaded and drop some other that I don't need (odbc, Phar, etc...) that'll make it safer and maybe faster.

For the moment this is my tree:

Code:

.
 ---apache
|    ---bin
|   |       httpd.exe
|   |       libapr-1.dll
|   |       libapriconv-1.dll
|   |       libaprutil-1.dll
|   |       libhttpd.dll
|   |
|    ---conf
|   |       httpd.conf
|   |       mime.types
|   |
|   \---modules
|           mod_dir.so
|           mod_mime.so
|
 ---mysql
|   |   my.ini
|   |
|    ---bin
|   |       libmySQL.dll (v5.0.51a)
|   |       mysqld.exe
|   |
|    ---data
|   |   \---mysql
|   |          * Tables to make MySQL function properly *
|   |
|   \---share
|        ---charsets
|       |       Index.xml
|       |
|       \---english
|               errmsg.sys
|
 ---oracle
|   |   oci.dll
|   |   oraociicus10.dll
|   |
|   \---network
|       \---admin
|               TNSNAMES.ora
|
 ---php
|   |   php.ini
|   |   php5apache2_2.dll
|   |   php5ts.dll
|   |
|   \---ext
|           php_apc.dll
|           php_dbase.dll
|           php_ldap.dll
|           php_mysql.dll
|           php_oci8.dll
|
 ---tmp
|       apache.log
|       apache.pid
|       mysql.log
|       mysql.pid
|
\---www
    * my webroot *



At last I load the libraries into Apache with:

Code:

LoadFile /server/mysql/bin/libmysql.dll
LoadFile /server/oracle/oci.dll
LoadModule php5_module /server/php/php5apache2_2.dll
    PHPIniDir /server/php


...so I don't have to copy over any place when updating, the question in here (once you knew my setup) how to compile (or where to find the info+tools) PHP v5.3 with support for dBase (dropping many built-in stuff that I don't need and use MySQLnd) plus to be fully compatible with ApacheLounge httpd server (VC9 as I've read), besides weight loss: 5.3mb for php is way too much compared with the 1.3mb on the v4.4 (the first one I've used).


???


Thanks in advance at least for reading all thit bs! But I feel like exploding when all this time is passing and I can't find a solution for my needs, so advice plz!!!



Edgar.


Last edited by eWey on Tue 03 Nov '09 19:55; edited 1 time in total
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 30 Oct '09 12:07    Post subject: Reply with quote

if you don't want the built-in stuff in PHP you have to compile PHP yourself.
See http://wiki.php.net/internals/windows/stepbystepbuild
Back to top
eWey



Joined: 29 Oct 2009
Posts: 3

PostPosted: Fri 30 Oct '09 19:32    Post subject: Reply with quote

James Blond wrote:

if you don't want the built-in stuff in PHP you have to compile PHP yourself.
See http://wiki.php.net/internals/windows/stepbystepbuild


Good!!!

You're kinda angel, the instructions are for dummies like me Razz

Just one more question... Does it work with ApcheLounges's httpd?


TIA!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Sat 31 Oct '09 13:11    Post subject: Reply with quote

Sure, if you compile PHP with VS9 aka VS 2008 it shall work. On the http://windows.php.net/download/ there is a VS9 build whoch wirks for me with AL apache.

Only issue: on computers where isn't a compiler installed and it is below Vista or server 2008 you have to install the Microsoft 2008 C++ Runtime (x86). But that is no real issue if you know it.


If you have trouble there is a mailing "Windows Internals list" is on http://php.nlledet/mailing-lists.php
Back to top
eWey



Joined: 29 Oct 2009
Posts: 3

PostPosted: Tue 03 Nov '09 19:54    Post subject: Reply with quote

James Blond wrote:
Sure, if you compile PHP with VS9 aka VS 2008 it shall work. On the http://windows.php.net/download/ there is a VS9 build whoch wirks for me with AL apache.


That great, I'm downloading VS'08 from my MSDN

James Blond wrote:
Only issue: on computers where isn't a compiler installed and it is below Vista or server 2008 you have to install the Microsoft 2008 C++ Runtime (x86).


I'm kinda of confident when runtimes are installed, so dependencies are fullfilled.

Well, I think this is done...

Thankyou for your kind help.
Back to top


Reply to topic   Topic: [SOLVED] Minimalistic webServer, compiling PHP v5.3 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software