You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Crawford <rc...@unexmail.ucdavis.edu> on 2003/06/12 21:40:59 UTC

[users@httpd] CGI Still not working

I have two servers, Trinity and Neo.  Trinity is our development server, 
and Neo is our production server.  Both are identical, as far as I can see; 
both run Apache 2.0.44, JRun 4SP1a, ColdfusionMX updater 3.  Both have Perl 
5.6.1 installed.  But for some reason, Perl CGI pages are interpreted 
properly on Neo, while they are not on Trinity -- when I view a Perl page 
from Trinity, all I see is the source code.

The Apache configuration on each server is identical -- I copied down the 
httpd.conf file from Neo to Trinity, making appropriate changes in the 
ServerName fields and so on.

When I started Apache on Trinity with the apachectl start command, I was 
told that several of the modules listed in the LoadModule section were 
already built in to Apache, so they didn't need to be loaded; I've 
commented out those LoadModule lines in the httpd.conf file on 
Trinity.  So, even though the LoadModule lines are commented out in the 
httpd.conf file on Trinity, the functionality *should* be there, right?


FWIW, here are the LoadModule sections from both Trinity and Neo...


===========================================================

# TRINITY's httpd.conf file

#LoadModule access_module modules/mod_access.so
#LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule include_module modules/mod_include.so
#LoadModule log_config_module modules/mod_log_config.so
#LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
#LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
#LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule dir_module modules/mod_dir.so
#LoadModule imap_module modules/mod_imap.so
#LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule perl_module modules/mod_perl.so


===========================================================

# NEO's httpd.conf file

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule perl_module modules/mod_perl.so


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CGI Still not working

Posted by Richard Crawford <rc...@unexmail.ucdavis.edu>.
I'm installing a newer version of Perl on Trinity.  I've noticed that they 
have different installations of Perl, in different locations.  I'm hoping 
that installing Perl 5.8.0 on Trinity will help.


At 06:20 PM 6/13/2003 +0200, you wrote:
>Do they both have the exact same filesystem layout, including symlinks &c?
>Is it possible that some paths might be wrong in the config file? Can you
>get CGI's to execute at all, by tweaking the configuration? Eg. add Options
>+ExecCGI on the document root, or by installing a vanilla Apache.
>
>I'm out of ideas..


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CGI Still not working

Posted by Robert Andersson <ro...@profundis.nu>.
Richard Crawford wrote:

> I agree, it does sound odd.  I tried inserting a deliberate syntax error
> and restarted httpd, and it failed to start.  I know, therefore, that I'm
> using the right configuration file.

Do they both have the exact same filesystem layout, including symlinks &c?
Is it possible that some paths might be wrong in the config file? Can you
get CGI's to execute at all, by tweaking the configuration? Eg. add Options
+ExecCGI on the document root, or by installing a vanilla Apache.

I'm out of ideas..


Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CGI Still not working

Posted by Richard Crawford <rc...@unexmail.ucdavis.edu>.
>At 05:53 AM 6/13/2003 +0200, Robert Andersson wrote:
> > The Apache configuration on each server is identical -- I copied down the
> > httpd.conf file from Neo to Trinity, making appropriate changes in the
> > ServerName fields and so on.
>
>Sounds odd. Make sure you are editing/using the right config file. Insert an
>obvious syntax error in the file, and restart to make sure.


Robert,

I agree, it does sound odd.  I tried inserting a deliberate syntax error 
and restarted httpd, and it failed to start.  I know, therefore, that I'm 
using the right configuration file.

I suppose it's possible that there's an error with Solaris.  Both Trinity 
and Neo are using Solaris 9, but they were built at different times 
(Trinity was rebuilt from scratch recently).

Richard


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] CGI Still not working

Posted by Robert Andersson <ro...@profundis.nu>.
Richard Crawford wrote:
> The Apache configuration on each server is identical -- I copied down the
> httpd.conf file from Neo to Trinity, making appropriate changes in the
> ServerName fields and so on.

Sounds odd. Make sure you are editing/using the right config file. Insert an
obvious syntax error in the file, and restart to make sure.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org