[support] Install script does not appear
Ron Siven
r.siven at mchsi.com
Sat Feb 3 00:35:52 UTC 2007
On Friday 02 February 2007 10:07 am, Metzler, David wrote:
> Based on this, I'm betting the AllowOverrides All directive is not set
> for your drupal directory in the apache vhosts.conf or httpd.conf. It
> looks like you've got some pretty odd PHP.ini settings going on, much of
> it with things like magic quotes, etc. Drupal sets some of these via
> the .htaccess file, but AllowOverrides All needs to be set in order for
> these to work.
>
> Dave
> -----Original Message-----
> From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
> Behalf Of Ron Siven
> Sent: Thursday, February 01, 2007 10:56 PM
> To: support at drupal.org
> Cc: Anton
> Subject: Re: [support] Install script does not appear
>
> On Thursday 01 February 2007 4:07 pm, Anton wrote:
> > On 01/02/07, Ron Siven <r.siven at mchsi.com> wrote:
> > > I think Apache, MySQL and PHP are all installed correctly
> >
> > This is something you need to confirm.
> >
> > create a web page on your server called test.php that does has this in
>
> it:
> > <?php
> > phpinfo();
> > ?>
> >
> > If the page doesn't load or you just see that source code in your
> > browser you still haven't configured PHP properly.
> >
> > --
> > Cheers
> > Anton
>
> Okay, done...and it loads. I can see a big long page with a ton of info
> about
> php.
>
> That confirms that php is working, right?
>
> So, I guess we've determined that Apache and php are working. Any
> thoughts on
> MySQL? Could it be something to do with MySQL 5.0?
>
> I just looked in the /var/log/httpd/error_log, and I see a whole lot of
> errors
> like:
>
> PHP Warning: Table 'drupal.access' doesn't exist\nquery:
>
> SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM access WHERE type =
> 'host' AND LOWER('192.168.2.102') LIKE LOWER(mask)
> ORDER
> BY status DESC LIMIT 0, 1 in /var/www/html/includes/database.mysql.inc
> on
> line 172
> [Fri Feb 02 00:49:56 2007] [error] [client 192.168.2.102] PHP Warning:
> session_start()
> [<ahref='function.session-start'>function.session-start</a>]:
> Cannot find save handler user in /var/www/html/includes/bootstrap.inc on
> line
> 811
>
> and a whole lot more...
> --
> [ Drupal support list | http://lists.drupal.org/ ]
Dave,
You were right. It was set to None. I changed it to All, restarted httpd,
and still no joy.
Here's a snippet from the http.conf:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Here's my .htaccess from /var/www/html/:
#
# Apache/PHP/Drupal settings:
#
# Protect files and directories from prying eyes.
<FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|
tpl(\.php)?|xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
Order allow,deny
</FilesMatch>
# Don't show directory listings for URLs which map to a directory.
Options -Indexes
# Follow symbolic links in this directory.
Options +FollowSymLinks
# Customized error messages.
ErrorDocument 404 /index.php
# Set the default handler.
DirectoryIndex index.php
# Override PHP settings. More in sites/default/settings.php
# but the following cannot be changed at runtime.
# PHP 4, Apache 1.
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
</IfModule>
# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
# Enable expirations.
ExpiresActive On
# Cache all files for 2 weeks after access (A).
ExpiresDefault A1209600
# Do not cache dynamically generated pages.
ExpiresByType text/html A1
</IfModule>
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# If your site can be accessed both with and without the prefix www. you
# can use one of the following settings to force user to use only one
option:
#
# If you want the site to be accessed WITH the www. only, adapt and
# uncomment the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule .* http://www.example.com/ [L,R=301]
#
# If you want the site to be accessed only WITHOUT the www. prefix, adapt
# and uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# and uncomment the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule .* http://example.com/ [L,R=301]
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
#RewriteBase /drupal
# Rewrite old-style URLs of the form 'node.php?id=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^id=([^&]+)$
#RewriteRule node.php index.php?q=node/view/%1 [L]
# Rewrite old-style URLs of the form 'module.php?mod=x'.
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{QUERY_STRING} ^mod=([^&]+)$
#RewriteRule module.php index.php?q=%1 [L]
# Rewrite current-style URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
# $Id: .htaccess,v 1.81 2007/01/09 09:27:10 dries Exp $
More information about the support
mailing list