Hello All, after having done an apt-get install phpgroupware on Woody, and having enabled libphp3.so module on httpd.conf Apache file, when connecting to http://server/phpgroupware, firebird/mozilla keeps telling me that :
>> the file "" is of type application/x-httpd-php and Mozilla Firebird does not know how to handle this file type. This file is located at http://server/phpgroupware/ What should Mozill Firebird do with this file ? (open with option // save it to disk option) << I have taken a look at the proposed /usr/share/doc/php/README.Debian but that did not help. I have also taken an example (dir.php3) and put it on the /usr/share/phpgroupware directory and loaded it via the browser (http://server/phpgroupware/dir.php3) and that did load the file and executed the php code. I have to agree that i'm a complete newbie to php and not very familiar with apache, so maybe the answer is right before my eyes. Just a little enlightment would be appreaciated.... thx in advance, Pedro Mullor <FYI> the following packages were installed : The following extra packages will be installed: apache apache-common cyrus-common cyrus-imapd libdbd-mysql-perl libexpat1 libgtk1.2 libgtk1.2-common libiodbc2 libmm11 libmysqlclient10 mysql-client mysql-common mysql-server php3 php3-cgi php3-cgi-ldap php3-imap php4-cgi php4-pgsql phpgroupware-admin phpgroupware-api phpgroupware-core phpgroupware-preferences phpgroupware-setup slapd wwwconfig-common The following NEW packages will be installed: apache apache-common cyrus-common cyrus-imapd libdbd-mysql-perl libexpat1 libgtk1.2 libgtk1.2-common libiodbc2 libmm11 libmysqlclient10 mysql-client mysql-common mysql-server php3 php3-cgi php3-cgi-ldap php3-imap php4-cgi php4-pgsql phpgroupware phpgroupware-admin phpgroupware-api phpgroupware-core phpgroupware-preferences phpgroupware-setup slapd wwwconfig-common 0 packages upgraded, 28 newly installed, 0 to remove and 1 not upgraded. </FYI> <HTTPD.conf> nova1:/etc/apache# cat httpd.conf|sed -e "/^#/d"|sed -e "/ *#/d"|sed -e "/^$/d" ServerType standalone ServerRoot /etc/apache LockFile /var/lock/apache.lock PidFile /var/run/apache.pid ScoreBoardFile /var/run/apache.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 100 LoadModule config_log_module /usr/lib/apache/1.3/mod_log_config.so LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so LoadModule mime_module /usr/lib/apache/1.3/mod_mime.so LoadModule negotiation_module /usr/lib/apache/1.3/mod_negotiation.so LoadModule status_module /usr/lib/apache/1.3/mod_status.so LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so LoadModule dir_module /usr/lib/apache/1.3/mod_dir.so LoadModule cgi_module /usr/lib/apache/1.3/mod_cgi.so LoadModule userdir_module /usr/lib/apache/1.3/mod_userdir.so LoadModule alias_module /usr/lib/apache/1.3/mod_alias.so LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so LoadModule access_module /usr/lib/apache/1.3/mod_access.so LoadModule auth_module /usr/lib/apache/1.3/mod_auth.so LoadModule expires_module /usr/lib/apache/1.3/mod_expires.so LoadModule unique_id_module /usr/lib/apache/1.3/mod_unique_id.so LoadModule setenvif_module /usr/lib/apache/1.3/mod_setenvif.so LoadModule php3_module /usr/lib/apache/1.3/libphp3.so ExtendedStatus On Port 80 User www-data Group www-data ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www <Directory /> Options SymLinksIfOwnerMatch AllowOverride None </Directory> <Directory /var/www/> Options Indexes Includes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir public_html </IfModule> <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS PROPFIND> Order allow,deny Allow from all </Limit> <Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK> Order deny,allow Deny from all </Limit> </Directory> <IfModule mod_dir.c> DirectoryIndex index.html index.php3 index.php index.htm index.shtml index.cgi </IfModule> AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> UseCanonicalName On TypesConfig /etc/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> MIMEMagicFile share/magic </IfModule> HostnameLookups Off ErrorLog /var/log/apache/error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %P %T" debug LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/apache/access.log combined ServerSignature On Alias /icons/ /usr/share/apache/icons/ <Directory /usr/share/apache/icons> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory /usr/lib/cgi-bin/> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory> <IfModule mod_autoindex.c> IndexOptions FancyIndexing NameWidth=* AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/deb.gif .deb AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README HeaderName HEADER </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz AddLanguage da .dk AddLanguage nl .nl AddLanguage en .en AddLanguage et .ee AddLanguage fr .fr AddLanguage de .de AddLanguage el .el AddLanguage it .it AddLanguage ja .ja AddCharset ISO-2022-JP .jis AddLanguage pl .po AddCharset ISO-8859-2 .iso-pl AddLanguage pt .pt AddLanguage pt-br .pt-br AddLanguage ltz .lu AddLanguage ca .ca AddLanguage es .es AddLanguage sv .se AddLanguage cz .cz <IfModule mod_negotiation.c> LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca es sv </IfModule> AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps AddType application/x-httpd-php .php AddType application/x-tar .tgz AddType image/bmp .bmp AddType text/x-hdml .hdml </IfModule> AddDefaultCharset on <IfModule mod_setenvif.c> BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 </IfModule> <IfModule mod_perl.c> Alias /perl/ /var/www/perl/ <Location /perl> SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI </Location> </IfModule> Alias /doc/ /usr/share/doc/ <Location /doc> order deny,allow deny from all allow from 127.0.0.0/255.0.0.0 Options Indexes FollowSymLinks MultiViews </Location> <IfModule mod_proxy.c> </IfModule> Include /etc/phpgroupware/apache.conf nova1:/etc/apache# </HTTPD.conf> <index.php> nova1:/etc/apache# cat /usr/share/phpgroupware/index.php <?php3 /**************************************************************************\ * phpGroupWare * * http://www.phpgroupware.org * * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ /* $Id: index.php,v 1.110.2.1 2002/03/05 22:28:55 jengo Exp $ */ $phpgw_info = array(); $GLOBALS['sessionid'] = @$GLOBALS['HTTP_GET_VARS']['sessionid'] ? @$GLOBALS['HTTP_GET_VARS']['sessionid'] : @$GLOBALS['HTTP_COOKIE_VARS']['sessionid']; if (! $GLOBALS['sessionid']) { Header('Location: login.php'); exit; } /* This is the preliminary menuaction driver for the new multi-layered design */ if (@isset($GLOBALS['HTTP_GET_VARS']['menuaction'])) { list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']); if (! $app || ! $class || ! $method) { $invalid_data = True; } } else { //$phpgw->log->message('W-BadmenuactionVariable, menuaction missing or corrupt: %1',$menuaction); //$phpgw->log->commit(); $app = 'home'; $invalid_data = True; } // FIX ME! Don't leave this, we need to create a common place where applications can access // things like the spell check class that the API has. (jengo) if ($app == 'phpgwapi') { $app = 'home'; $api_requested = True; } $GLOBALS['phpgw_info']['flags'] = array( 'noheader' => True, 'nonavbar' => True, 'currentapp' => $app ); include('./header.inc.php'); if ($app == 'home' && ! $api_requested) { Header('Location: ' . $GLOBALS['phpgw']->link('/home.php')); } if ($api_requested) { $app = 'phpgwapi'; } $GLOBALS['obj'] = CreateObject(sprintf('%s.%s',$app,$class)); $GLOBALS[$class] = $GLOBALS['obj']; if ((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) { // eval("\$GLOBALS['obj']->$method();"); execmethod($GLOBALS['HTTP_GET_VARS']['menuaction']); unset($app); unset($obj); unset($class); unset($method); unset($invalid_data); unset($api_requested); } else { if (! $app || ! $class || ! $method) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, menuaction missing or corrupt: %1', 'p1' => $menuaction, 'line' => __LINE__, 'file' => __FILE__ )); } if (! is_array($obj->public_functions) || ! $obj->public_functions[$method] && $method) { $GLOBALS['phpgw']->log->message(array( 'text' => 'W-BadmenuactionVariable, attempted to access private method: %1', 'p1' => $method, 'line' => __LINE__, 'file' => __FILE__ )); } $GLOBALS['phpgw']->log->commit(); $phpgw->redirect($GLOBALS['phpgw']->link('/home.php')); /* $_obj = CreateObject('home.home'); $_obj->get_list(); */ } if (! $GLOBALS['phpgw_info']['nofooter']) { $GLOBALS['phpgw']->common->phpgw_footer(); } ?> </index.php> -- Pedro Mullor <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]