[mapserver-users] MapServer configure question with PHP/MapScript Module

李杨 gisyangli at gmail.com
Tue Aug 7 07:36:07 PDT 2012


Hi, Everyone.

I want to compile mapserver from source.

Both the mapserver readme.configure file and the instuctionpost here (
http://www.mapserver.org/installation/php.html) tell me
"pass the *–with-php=DIR* argument to the configure script",

As the guide say, the "DIR" will be PHP sourcecode folder, but in  my
ubuntu 12.04 platform, it take aPHP5, no need to compile PHP from source.
So I am confused, which folder should I assign?

by the way, I "locate php5" on the shell and got the result below:
/etc/php5
/etc/apache2/mods-available/php5.conf
/etc/apache2/mods-available/php5.load
/etc/apache2/mods-enabled/php5.conf
/etc/apache2/mods-enabled/php5.load
/etc/apparmor.d/abstractions/php5
/etc/cron.d/php5
/etc/php5/apache2
/etc/php5/cli
/etc/php5/conf.d
/etc/php5/apache2/conf.d
/etc/php5/apache2/php.ini
/etc/php5/cli/conf.d
/etc/php5/cli/php.ini
/etc/php5/conf.d/curl.ini
/etc/php5/conf.d/mysql.ini
/etc/php5/conf.d/mysqli.ini
/etc/php5/conf.d/pdo.ini
/etc/php5/conf.d/pdo_mysql.ini
/usr/bin/php5
/usr/lib/php5
/usr/lib/apache2/modules/libphp5.so
/usr/lib/php5/20090626
/usr/lib/php5/libexec
/usr/lib/php5/maxlifetime
/usr/lib/php5/20090626/curl.so
/usr/lib/php5/20090626/mysql.so
/usr/lib/php5/20090626/mysqli.so
/usr/lib/php5/20090626/pdo.so
/usr/lib/php5/20090626/pdo_mysql.so
/usr/share/php5
/usr/share/apport/package-hooks/source_php5.py
/usr/share/doc/libapache2-mod-php5
/usr/share/doc/php5-cli
/usr/share/doc/php5-common
/usr/share/doc/php5-curl
/usr/share/doc/php5-mysql
/usr/share/doc/php5-common/CODING_STANDARDS.gz
/usr/share/doc/php5-common/CREDITS
/usr/share/doc/php5-common/EXTENSIONS.gz
/usr/share/doc/php5-common/NEWS.Debian.gz
/usr/share/doc/php5-common/README.Debian.gz
/usr/share/doc/php5-common/README.Debian.security
/usr/share/doc/php5-common/README.EXT_SKEL.gz
/usr/share/doc/php5-common/README.PHP4-TO-PHP5-THIN-CHANGES.gz
/usr/share/doc/php5-common/README.SELF-CONTAINED-EXTENSIONS.gz
/usr/share/doc/php5-common/README.SVN-RULES.gz
/usr/share/doc/php5-common/README.Zeus.gz
/usr/share/doc/php5-common/TODO.gz
/usr/share/doc/php5-common/changelog.Debian.gz
/usr/share/doc/php5-common/copyright
/usr/share/doc/php5-common/examples
/usr/share/doc/php5-common/test-results.txt.gz
/usr/share/doc/php5-common/examples/php.ini-development
/usr/share/lintian/overrides/libapache2-mod-php5
/usr/share/lintian/overrides/php5-cli
/usr/share/lintian/overrides/php5-common
/usr/share/man/man1/php5.1.gz
/usr/share/php5/php.ini-production
/usr/share/php5/php.ini-production-dist
/usr/share/php5/php.ini-production.cli
/var/cache/apt/archives/libapache2-mod-php5_5.3.10-1ubuntu3.2_amd64.deb
/var/cache/apt/archives/php5-cli_5.3.10-1ubuntu3.2_amd64.deb
/var/cache/apt/archives/php5-common_5.3.10-1ubuntu3.2_amd64.deb
/var/cache/apt/archives/php5-curl_5.3.10-1ubuntu3.2_amd64.deb
/var/cache/apt/archives/php5-mysql_5.3.10-1ubuntu3.2_amd64.deb
/var/lib/php5
/var/lib/dpkg/info/libapache2-mod-php5.conffiles
/var/lib/dpkg/info/libapache2-mod-php5.list
/var/lib/dpkg/info/libapache2-mod-php5.md5sums
/var/lib/dpkg/info/libapache2-mod-php5.postinst
/var/lib/dpkg/info/libapache2-mod-php5.postrm
/var/lib/dpkg/info/libapache2-mod-php5.prerm
/var/lib/dpkg/info/libapache2-mod-php5.triggers
/var/lib/dpkg/info/php5-cli.list
/var/lib/dpkg/info/php5-cli.md5sums
/var/lib/dpkg/info/php5-cli.postinst
/var/lib/dpkg/info/php5-cli.postrm
/var/lib/dpkg/info/php5-cli.prerm
/var/lib/dpkg/info/php5-common.conffiles
/var/lib/dpkg/info/php5-common.list
/var/lib/dpkg/info/php5-common.md5sums
/var/lib/dpkg/info/php5-common.postrm
/var/lib/dpkg/info/php5-curl.conffiles
/var/lib/dpkg/info/php5-curl.list
/var/lib/dpkg/info/php5-curl.md5sums
/var/lib/dpkg/info/php5-mysql.conffiles
/var/lib/dpkg/info/php5-mysql.list
/var/lib/dpkg/info/php5-mysql.md5sums

Best Regards,



-- 
Yang Li
GIS Developer
P.R.China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120807/066ddcff/attachment.html>


More information about the mapserver-users mailing list