[maplab-users] maplab-2.2 install
Paul Spencer
pspencer at dmsolutions.ca
Tue Nov 23 09:02:56 EST 2004
Hi Roman, answers inline ...
tatel at euskalnet.net wrote:
> Hi list,
>
> This is my first post. I'm trying to install maplab-2.2 on a Debian
> Woody box. I tried twice, following INSTALL-LINUX.TXT, but I'm getting
> "Internal server errors". It seems that .phtml files need execution
> perms? After doing find . -name '*.phtml' -exec chmod u+x {} \; these
> internal errors are missing... but maybe there is a mistake somewhere on
> my install.
>
> 1) untarred maplab-2.2.tar.gz on /~my/public_html as normal user (me)
> 2) cd /~my/public_html/maplab2.2
> 3) su
> 4) chown -R me.www-data data (www-data is apache user, of course)
> 5) chown me.www-data projects
> 6) cd config
> 7) chown me.www-data maplab.xml mapbrowse.xml mapedit.xml gmapfactory.xml
> 8)exit
> 9) chmod -R g+w ../data
> 10) chmod g+w ../projects
> 11) chmod g+w maplab.xml mapbrowse.xml mapedit.xml gmapfactory.xml
>
> 12) Pointing web browser to
> http://localhost/~me/maplab2.2/maplab/htdocs/ gives me a 404 error
> because a) it's no maplab2.2 but maplab-2.2 and b) directory /maplab/
> does not exist.
>
> 13) Pointing web browser to http://localhost/~me/maplab-2.2/htdocs/ I
> get the maplab index page, but only toolbar is displayed, because
> appframeset.phtml has not execution permission. (Internal server error)
>
> 14) Clicking "Open XML configuration tool" icon gives me another server
> error, because edit_xml_frameset.phtml has not execution permission, so
> I changed all .phtml files permissions to execute them.
>
>
> So questions are:
>
> a) What directory would you recommend to install maplab? I guess this
> would means to add an Alias in httpd.conf if not under /var/www or
> /public_html
you can install anywhere. It is recommended to install somewhere
outside of your doc_root and then either create an alias or symlink
i.e.
install to /opt/maplab2.2
ln -s /opt/maplab2.2/htdocs /var/www/html/maplab
or ...
install to /home/me/maplab2.2
ln -s /home/me/maplab2.2/htdocs /home/me/public_html/maplab
>
> b) It's OK to install maplab as root?
should not be needed and probably shouldn't be done
>
> c) Do I need to give execution permissions for all .phtml files really?.
> I wonder why these come without it.
no you do not and you should not. You need to modify your Apache
configuration file to add phtml extension to your php cgi configuration.
In my configuration, it looks like:
AddType application/x-httpd-php4 .php .php3 .phtml
Action application/x-httpd-php4 /cgi-bin/php4
DirectoryIndex index.php index.phtml index.php3
Yours may be different, but the important part is the AddType line
>
> d) May be SuEXEC is involved? I guess yes because apache can execute
> .phtml files even if they have only user execution permission. But I
> have not any VirtualHost directive... (I think)
no. Don't do this. You need to associate phtml files with the php cgi.
>
> Best regards,
>
> Roman
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users
>
Cheers
Paul
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Maplab-users
mailing list