Ticket #69 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Install problem, cant create database tables

Reported by: glcustoms@gmail.com Assigned to: hannes
Priority: normal Milestone: 5.0 Stable
Component: Installer Version: 5.0 RC5
Severity: major Keywords:
Cc: Pending: 0

Description

After several install attempts, I get this error : require_once(includes/config/settings.tmpl) [function.require-once]: failed to open stream I know what the error means, and it doesnt make scense as the files are there. I am having trouble getting the data wrote to those files though. I have set the permissions to full 777 from within the server itself. I even tried manually editing the files with the required info as asked during the installer, No luck, the info wont pass to them, and the database tables never populate. Do you have a link or something I could read? I'd really like to use this board. Thanks

Attachments

install.diff (5.6 kB) - added by hannes on 2008-02-02 11:06:31.
Patch to exit installer gracefully on problems with file permissions

Change History

2008-02-01 21:20:30 changed by hannes

  • status changed from new to assigned.

2008-02-01 21:23:51 changed by hannes

Did the error about the missing settings.tmpl file show right at the first installation attempt or really after several ones? Did you ever see the first installer page at all or did it throw the error immediately?

(follow-up: ↓ 4 ) 2008-02-02 05:45:40 changed by anonymous

It showed up on the first attempt after going all the way through the install process. And everything was always the same result each time, even after manually adding required info to settings.tmpl and uploading it. Could it be my server? Here is the build info:

Server OS: Linux 2.6.9-55.0.6.ELsmp Database: MySQL 5.0.45-community HTTP Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 Front Page/?5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP Version: 5.2.5 (Zend: 2.2.0)

(in reply to: ↑ 3 ) 2008-02-02 05:46:31 changed by glcustoms

Replying to anonymous: Last post was me. Sorry

It showed up on the first attempt after going all the way through the install process. And everything was always the same result each time, even after manually adding required info to settings.tmpl and uploading it. Could it be my server? Here is the build info: Server OS: Linux 2.6.9-55.0.6.ELsmp Database: MySQL 5.0.45-community HTTP Server: Apache/1.3.39 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 Front Page/?5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.7a PHP Version: 5.2.5 (Zend: 2.2.0)

2008-02-02 11:06:31 changed by hannes

  • attachment install.diff added.

Patch to exit installer gracefully on problems with file permissions

2008-02-02 11:24:07 changed by hannes

Alright, I think I've been able to reproduce the error. It occurs if you're trying to set up file permissions via the installer and it fails. Then, it'll not write the settings and set up the database, but it will delete the template files, leaving the includes/config directory almost empty (save for two files). Then, it'll claim to have been set up correctly.

The actual reason for this is that the system user which the webserver is running under (usually something like www-data) doesn't own the files, so it can't change its permissions. To solve this:

  • wipe the directory completely
  • extract the archive again
  • apply the attached patch to install.php
  • either change ownership of the files to the user the webserver is running under or set the permissions manually (in the latter case, follow the instructions found on File Permissions)
  • run the installer (if you've set the permissions manually in the previous step, don't select this box)

Let me know if this worked for you or if there've been other problems.

2008-02-09 17:29:26 changed by hannes

  • status changed from assigned to closed.
  • resolution set to fixed.

As there hasn't been any activity on this ticket for a week, I'm closing this as fixed. The patch is in the trunk (changeset [128]). Feel free to reopen if your problem hasn't been resolved.


Add/Change #69 (Install problem, cant create database tables)




Action