[mapserver-users] Installing php on RH 7.3
woodbri at swoodbridge.com
woodbri at swoodbridge.com
Tue Oct 29 19:10:28 PST 2002
Dylan,
Thanks, I type this configuration also, but I have multiple extension
on the AddType line. I will try putting them on separate lines in the
morning when I have access to the server again.
-Stephen
On 29 Oct 2002 at 18:35, Dylan Keon wrote:
> Steve,
>
> Here are the relevant lines from my httpd.conf. Different than yours,
> so you might give them a try. Note that I have the AddHandler line
> commented out in my httpd.conf, and have NO "AddType php-script" lines
> configured.
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .phtml
> AddType application/x-httpd-php-source .phps
>
> Action application/x-httpd-php /cgi-bin/php
>
> HTH,
> --Dylan
>
>
>
>
> woodbri at swoodbridge.com wrote:
> > Hi all,
> >
> > I need some help on this guys. I am trying to install Mapserver on
> > RH 7.3 and while I can get the mapserver build and install, I can
> > not get PHP to work as a CGI so I can run mapscript.
> >
> > I have built it as a CGI and installed it in the cgi-bin directory
> > and configured httpd.conf to run .php and .phtml files via /cgi-
> > bin/php, but when I try to run any php file I get the following
> > error:
> >
> > Parse error: parse error, unexpected T_STRING in
> > /var/www/cgi-bin/php on line 4397
> >
> > So it looks like php is trying to load /var/www/cgi-bin/php as the
> > text file to parse and execute.
> >
> > On RH 7.3, I have uninstalled the PHP rpms, I have manually built
> > apache and installed it over the rpm version, I have commented out
> > all php related lines in the apache config so I only have:
> >
> > AddType php-script .php .phtml
> > AddHandler php-script /cgi-bin/php
> >
> > and restarted apache and I continue to get the same error above!
> >
> > I could really use some help on this.
> >
> > Thanks,
> > -Steve W.
>
>
More information about the MapServer-users
mailing list