[Mapserver-users] PHP problem

Jehng-Jung Kao jjkao at ensys.ev.nctu.edu.tw
Wed Apr 9 11:37:26 EDT 2003


> > I successfully installed
> >    (--with-regex=system; actually, this option does
> >    not work with apache-1.3.27, it will automatically change it
> >    back to 'php' with this option.
> >    I finally get it working by editing the 'configure' file
> >    to force it use 'system.')
> > 
> 
> AFAIK the --with-regex=system doesn't work with Apache *only*when* you
> also compile using --with-apxs.  However, for php_mapscript you need PHP
> compiled as a CGI which means that you should not use --with-apxs.  If
> you don't use --with-apxs to configure your PHP then it should honour
> your request to use the system regex.

Yes, I do compile with '--with-apxs' option.   THank you.
I will re-compile without it, although I like the apxs option.
 
> > Also, I notice that while I execute the php file on IE,
> >   the /usr/local/lib/php.ini was not loaded, although phpinfo() shows
> >   the correct configure file path to "/usr/local/lib."
> >   (quite strange to me.)
> > 
> 
> Is the php.ini file ( and the directories leading to it) readable by the
> user running the apache process?  

yes.  it is readable.
 
> Also, it is possible that your phpinfo() script gets run by a PHP SAPI
> module that was already preinstalled on your system, which is different
> from the php that you run at the command line.  To verify that, check
> that you see "Server API:  CGI" in your phpinfo output.

It shows "Server API: Apache."

-- jjkao




More information about the mapserver-users mailing list