[Typo3-debian] Provide a useful apache.conf - sendmail, cgi problems remaining

Christian Leutloff leutloff at debian.org
Tue Nov 30 10:23:31 CET 2004


Hi,

in the meantime I've got the quickstart db working on my own system. I'm using the following apache.conf (is part of typo3-db-quickstart_3.6.2-4_all.deb, now available from http://users.oche.de/~leutloff/debian/packages/):

<----------- schnipp
# Configuration for the apache web server                      -*- apache -*-

# inspired by /etc/phpldapadmin/apache.conf from the Debian package of
# phpldapadmin (version 0.9.4-10) maintained by Fabio Tranchitella
# <kobold at kobold.it>

# Define /typo3-quickstart alias
<IfModule mod_alias.c>
    Alias /typo3-quickstart /var/lib/typo3-db-quickstart
</IfModule>

# You can also use Typo3 as a VirtualHost
# <VirtualHost *:*>
#     ServerName typo3.example.com
#     ServerAdmin webmaster at example.com
#     DocumentRoot /var/lib/typo3-db-quickstart 
#     ErrorLog logs/typo3.example.com-error.log
#     CustomLog logs/typo3.example.com-access.log combined
# </VirtualHost>

<Directory /var/lib/typo3-db-quickstart/>

    DirectoryIndex index.php index.html
    Options +FollowSymLinks -Indexes
    AllowOverride None

    Order allow,deny
    Allow from all

    <IfModule mod_mime.c>

      <IfModule mod_php4.c>
        AddType application/x-httpd-php .php

        # enable PHP's safe mode.
        php_admin_value safe_mode on
        # UID/GID checks are bypassed when including files from this directory and its subdirectories
        php_admin_value safe_mode_include_dir /usr/share/typo3/latest/
        # Limit the files that can be opened by PHP to the specified directory-tree
        php_admin_value open_basedir /var/lib/typo3-db-quickstart/:/usr/share/typo3/:/etc/typo3-db-quickstart/
        # in safe mode programs that are not in this directory will not be started
        php_admin_value safe_mode_exec_dir /var/lib/typo3-db-quickstart/execdir/
        # list of directories where the require(), include() and fopen_with_path() functions look for files:
        php_admin_value include_path /usr/share/typo3/latest/:.
        #  The maximum size of an uploaded file:
        php_admin_value upload_max_filesize 10M

      </IfModule>

      <IfModule !mod_php4.c>
        <IfModule mod_actions.c>
          <IfModule mod_cgi.c>
            AddType application/x-httpd-php .php

            Action application/x-httpd-php /cgi-bin/php4
          </IfModule>
        </IfModule>
      </IfModule>

    </IfModule>

</Directory>
<----------- schnapp

My remaining problem is the missing detection of sendmail through the install tool (basic configuration). I provide symlinks from /var/lib/typo3-db-quickstart/execdir/ to the needed and existing binaries:

$ ll /var/lib/typo3-db-quickstart/execdir/
lrwxr-xr-x  1 leutloff users 18 2004-11-30 07:10 composite -> /usr/bin/composite*
lrwxr-xr-x  1 leutloff users 16 2004-11-30 07:10 convert -> /usr/bin/convert*
lrwxr-xr-x  1 leutloff users 17 2004-11-30 07:11 identify -> /usr/bin/identify*
lrwxr-xr-x  1 leutloff users 18 2004-11-30 07:11 sendmail -> /usr/sbin/sendmail*

The check for imagemagick is now working. But sendmail is not. What should I do? Ignore the problem, because a test function is provided?


Can anyone provide information on using CGI similar to the setup provided for mod_php4, please?


Any other suggestions for improving the apache.conf or the other setup of the package typo3-db-quickstart (depart from using the typo3-site-installer)?

Bye
Christian

-- 
Christian Leutloff, Aachen, Germany 
leutloff at sundancer.oche.de - http://users.oche.de/~leutloff/
Debian GNU/Linux - leutloff at debian.org - http://www.de.debian.org/



More information about the TYPO3-debian mailing list