Installation of PHP modules

61 views
Skip to first unread message

charleskcmo

unread,
Nov 15, 2009, 9:14:38 PM11/15/09
to phpDays - php5 framework
In the installation guide, it says, quote,

"# PHP 5.2.6 or newer with modules: php5-mysql, php5-sqlite, pdo, pdo-
mysql, pdo-sqlite (also recommend: php5-syck, php5-curl, php5-xdebug,
php-apc, php5-memcache)"

I have installed PHP 5.3.0 but I couldn't find the aforementioned
modules in the zip file. I have done some researched on google but
couldn't find a reliable resource.

Any idea I can find these modules?

Thank you,
Charles

Pro PHP

unread,
Nov 16, 2009, 6:07:37 AM11/16/09
to phpDays - php5 framework
I use PHP 5.3.0 in Windows and PHP 5.2.10 in Linux.

In Linux all this modules installed easy by command "sudo aptitude
install <module_name>" (sudo aptitude install php5-sqlite).

In Windows You need install this modules by hands. I use PHP
installation, and on setup screen select all extensions for my work
(listen above).

Thanks you for you question!

See:
* http://ua.php.net/manual/en/pdo.installation.php
* http://ua.php.net/manual/en/mysql.installation.php

Charles Mo

unread,
Nov 16, 2009, 3:35:01 PM11/16/09
to php...@googlegroups.com
I am using Windows on my PC.

I have tried the PHP 5.3.0 installer, and have chosen to install all
modules. However, I still couldn't find the modules in questions.

====
php5-mysql (can't find it. Can only find php_mysql.dll)
php5-sqlite (can't find it. Can only find php_sqlite.dll)
pdo, pdo-mysql, pdo-sqlite (can't find them, can only find
php_pdo_mysql.dll, php_pdo_sqlite.dll, and some others php_pdo_*.dll files)
php5-curl (can't find it. Can only find php_curl.dll)

php5-syck, php5-xdebug, php-apc, php5-memcache (can't find these files.
Found some source codes on PECL, but couldn't find reliable .dll files. Is a
compilation needed? If so, why not post the compiled .dll files to our
project home?)
====

Sorry if I am asking the obvious.

-c

Anton Danilchenko

unread,
Nov 17, 2009, 2:45:27 AM11/17/09
to php...@googlegroups.com
php5-syck, php-apc - standart PHP5 classes.

php5-xdebug,  php5-memcache - find instruction about this modules (in google) to compile in Windows, or download already compiled DLL libraries.

Also describe this problem and its resolution in our documentation please.

16 ноября 2009 г. 22:35 пользователь Charles Mo <charl...@gmail.com> написал:

Charles Mo

unread,
Nov 18, 2009, 6:39:26 PM11/18/09
to php...@googlegroups.com

I am writing this message from the standpoint of a Windows user.

 

It seems like the PECL makers don’t provide .dll files for Windows anymore.  You’ll have to compile (build) the source files yourself.

http://www.wampserver.com/phorum/read.php?2,51829,51842

 

Even the official PHP site indicates that, quote, “DLL for PECL extension is currently unavailable”.

http://www.php.net/manual/en/http.install.php

 

However, compiling source codes seems NOT an option. They removed the guide to compile PHP from sources on Windows, saying it is outdated. That means they don’t encourage (or at least pay attention to) Windows users.

http://www.php.net/manual/en/install.windows.building.php

 

From the list of extension modules, the following modules are still missing in PHP 5.3.0:

php_syck.dll

php_apc.dll

php_xdebug.dll

php_memcache.dll

http://php.net/manual/en/install.windows.extensions.php

Therefore, I don’t think php5-syck and php-apc are standard (or core) PHP5 classes, at least from the stand point of a Windows user. Please correct me if I am wrong.

 

I have searched for some possible source for the .dll files, but unfortunately the somewhat official sites has been out of service for some time.

http://pecl4win.php.net

 

After hours of Google search, I have found the unlisted uri from the PHP site for

php_apc.dll

php_xdebug.dll

php_memcache.dll

http://downloads.php.net/pierre/

 

However, I can only rely on an amateur website for

php_syck.dll

http://hi.baidu.com/zhangsilly/blog/item/17aecf2f8bbe3d301e3089f4.html

 

I will have to try to use these .dll files for now, but I am really concerned if something would break sooner or later.

 

By the way, anyone is using Windows for development? If so, can you shed some light on this issue?

 

--Charles

 


Elina Zverinskaia

unread,
Nov 19, 2009, 2:11:41 AM11/19/09
to php...@googlegroups.com
Hi,

I agree with Charles Mo. I also work on Windows. I couldn't install those units. So I had to edit some files to include ("require") this files from lib directory.

Some other trouble by the installation: in Apache (WAMP) mod_rewrite is off by default. So it should be turned on, so that rewriting rules from htaccess file work. Should I add it to installation instructions, Anton?

Bye,
Elina

2009/11/19 Charles Mo <charl...@gmail.com>

Ira Go

unread,
Nov 20, 2009, 3:22:15 AM11/20/09
to phpDays - php5 framework
Charles,
It's quite risky to use a dll from a strange site. What was the
problem with compiling syck?
The source code for syck is here: http://github.com/indeyets/syck/downloads
I tried to build the syck library and it was pretty much
straightforward. I'm using Mingw and msys but I'm not a Windows user
and do not run php on it. Could you state the problem more clearly and
maybe some of us could help.

Charles Mo

unread,
Nov 20, 2009, 3:35:19 PM11/20/09
to php...@googlegroups.com
Ira,

Simply put, I do not know how to compile the source code of any PECL
modules, such as syck, to DLL files in Windows environment.

Charles

-----Original Message-----
From: php...@googlegroups.com [mailto:php...@googlegroups.com] On Behalf
Of Ira Go
Sent: Friday, November 20, 2009 12:22 AM
To: phpDays - php5 framework
Subject: Re: Installation of PHP modules

Ira Go

unread,
Nov 22, 2009, 2:46:16 AM11/22/09
to phpDays - php5 framework
Here is a detailed description how to compile php and its extensions
on Windows:
http://wiki.php.net/internals/windows/stepbystepbuild

As it turned out, Mingw is not compatible. I'm trying to build
php_syck using Visual Studio and it requires some tweaking. Here is
what's been done so far:
- copied syck/ext/php into _php-tree_/ext/syck and syck/lib into _php-
tree_/ext/syck/lib (or pecl/syck and pecl/syck/lib)
- added config.w32 and included _php-tree_/main/config.w32.h in one of
the headers
I'll post the files if it works.




Anton Danilchenko

unread,
Nov 22, 2009, 3:57:12 PM11/22/09
to php...@googlegroups.com
All work without this modules. But if you use this modules on live server - this very good for fast executing.

I install all this modules on Linux from aptitude. On Windows system need compile modules, or not use this modules. I not install this modules on My Windows system and see that all work well.

2009/11/22 Ira Go <let...@gmail.com>

Ira Go

unread,
Nov 24, 2009, 3:14:33 AM11/24/09
to phpDays - php5 framework
If anyone is interested, here is how to install syck on Windows.

1. Follow the instruction ( http://wiki.php.net/internals/windows/stepbystepbuild
) up to "Adding PECL extensions".
2. Get syck's source code from github.com:
git clone git://github.com/indeyets/syck.git
(Might useful: http://github.com/guides/using-git-and-github-for-the-windows-for-newbies
)
3. Copy src/syck/ext/php to C:\php-sdk\php53dev\vc9\x86\php5.3-xyz\ext
\syck.
Copy the content of src/syck/lib into C:\php-sdk\php53dev
\vc9\x86\php5.3-xyz\ext\syck\lib
4. Create two files config.h and config.w32 (see below) in C:\php-sdk
\php53dev\vc9\x86\php5.3-xyz\ext\syck
5. Run bison in the C:\php-sdk\php53dev\vc9\x86\php5.3-xyz\ext\syck
\lib directory (could not figure out how to create additional rules
for windows' makefile and it's just one line anyway), you can use
bison that comes with binary-tools:
bison -v -t -d -p syck -o gram.c gram.y
6. At this point start following the instructions again starting with
#5 of "Adding PECL extensions"
7. #7 should be:
configure --disable-all --enable-cli --with-syck=shared
(use "shared" to create a dll, without it syck will be compiled
into php.exe)
8. finish the instructions.
That's all. Have fun.

Ira Go

unread,
Nov 24, 2009, 3:28:46 AM11/24/09
to phpDays - php5 framework
Forgot to include the files. Put these files into the C:\php-sdk
\php53dev\vc9\x86\php5.3-xyz\ext\syck directory.

config.h:

#if PHP_WIN32
# include "config.w32.h"
#endif

config.w32:

// $Id:$
// vim:ft=javascript

ARG_WITH("syck", "syck support", "no");

if (PHP_SYCK != "no" ) {
EXTENSION("syck", "phpext.c");
ADD_FLAG("CFLAGS_SYCK", "/D HAVE_CONFIG_H ");
ADD_FLAG("CFLAGS_SYCK", "/I " + configure_module_dirname + "\\lib
");
ADD_FLAG("CFLAGS_SYCK", "/I " + configure_module_dirname + " ");
ADD_SOURCES(configure_module_dirname + "\\lib",
"emitter.c handler.c node.c syck.c syck_st.c gram.c \
bytecode.c yaml2byte.c token.c implicit.c", "syck");
AC_DEFINE("HAVE_SYCK", 1, "syck support");
}

Anton Danilchenko

unread,
Nov 24, 2009, 3:23:08 PM11/24/09
to php...@googlegroups.com
Very good. if it work well - please add this instruction to our documentation. Need create separate page for specifical Windows settings.

2009/11/24 Ira Go <let...@gmail.com>

Charles Mo

unread,
Nov 27, 2009, 9:37:48 PM11/27/09
to php...@googlegroups.com
Thanks Ira. I will try it out and see if it works.

Reply all
Reply to author
Forward
0 new messages