[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/42355: www/drupal6 missing file renders install script unusable
>Synopsis: www/drupal6 missing file renders install script unusable
>Arrival-Date: Sat Nov 21 05:30:00 +0000 2009
>Originator: Marco Poli
>Release: 5.0.1 pkgsrc-current
NetBSD some.server.com 5.0.1 NetBSD 5.0.1 (XEN3_DOMU) #0: Thu Jul 30 00:31:11
Making a pgsql install of www/drupal6, I noticed that the install script
(available per instructions from http://localhost/drupal) would fail to
complete the "Set up database" step even if all the data was correct, with no
apparent error. Messing up some of the configuration data sucessfully got me
some descriptive errors from the install script, but getting all the data
correct would just give me nothing.
After a log search, found this in apache's error_log:
[Sat Nov 21 05:06:39 2009] [error] [client xxx.yyy.zzz.kkk] PHP Warning:
href='function.fopen'>function.fopen</a>]: failed to open stream: No such file
or directory in /usr/pkg/share/drupal/includes/install.inc on line 188,
Checking the /usr/pkg/share/drupal/sites/default directory I realised that the
default.settings.php file was missing in the pkgsrc installation, and instead,
a settings.php file was present. INSTALL.txt doc tells me that the first
settings.php should be generated from the default.settings.php file, but says
nothing about erasing the default.settings.php file.
echo "PKG_OPTIONS.drupal+=pgsql" >> /etc/mk.conf
echo "Include /usr/pkg/etc/drupal.conf >> /usr/pkg/etc/httpd/httpd.conf"
Launch a web browser and point to http://localhost/drupal
Get to the "Set up database" part and put in the correct database connection
But the real fix should be not deleting the default.settings.php file during
the install procedure.
Main Index |
Thread Index |