Project

General

Profile

Actions

Bug #16973

closed

renaming of localconf.php.TMP.php to localconf.php did not work on Windows platform

Added by Ansgar Brauner over 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2007-02-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

This error should be fixed with version 4.0

(http://wiki.typo3.org/index.php/TYPO3_4.0_Changelog)

2006-02-01 Dmitry Dulepov <>
  • Fix: renaming of localconf.php.TMP.php to localconf.php did not work on Windows platform

Every time i made any changes with the install tool it says:
" Writing to 'localconf.php':
No values were changed, so nothing is updated! "

A look at typo3_src\typo3conf shows that there is a file called localconf.php.TMP.php which contains the correct values.

This file gets not renamed to localconf.php

Tested with 4.0.4 and 4.1RC1

Windows XP
Apache/1.3.33 (Win32)
PHP/4.3.10
MySQL 4.1.9

(issue imported from #M4965)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20215: Install Tool do not store DB Username, Password and Host into localconf.phpClosedOliver Hader2009-03-19

Actions
Actions #1

Updated by Ansgar Brauner over 17 years ago

Got an Email from Michael Stucki at the Windows-Install list:

Seems like the file copy is not working then. Can you please do this:

- Open t3lib/class.t3lib_install.php and search for "Configuration written"
- Please remove the "@" before "unlink", "copy" above in this condition
- Some lines down, look for this line:

$this->messages[] = $msg;
and append this:
t3lib_div::debug($msg,'Message');
The shown error message is:
typo3conf/localconf.php could not be replaced by typo3conf/localconf.php.TMP.php - maybe a write access problem?

There shouldn't be any write access problem. Apache is running as a user who has write access to the complete document root (with subdirs).

The install tool gives the following information about the permissions:
typo3temp/ writable
typo3temp/pics/ writable
typo3temp/temp/ writable
typo3temp/llxml/ writable
typo3temp/cs/ writable
typo3temp/GB/ writable
typo3conf/ writable
typo3conf/ext/ writable
typo3conf/l10n/ writable
typo3/ext/ writable
uploads/ writable
uploads/pics/ writable
uploads/media/ writable
uploads/tf/ writable
fileadmin/ writable
fileadmin/_temp_/ writable

Actions #2

Updated by Martin Kutschker over 17 years ago

Maybe some program holds a lock on the file? You could eg have opened the file in an editor.

Actions #3

Updated by Michael Stucki over 17 years ago

So can we assume it's a problem of your configuration, not TYPO3?

Actions #4

Updated by Ansgar Brauner over 17 years ago

I dont think that it is a Problem with my configuration. If i'm using the class.t3lib_install.php from the SVN Checkout Version 3-8-0rc1 everything works fine.

regards Ansgar

Actions #5

Updated by Martin Kutschker over 17 years ago

In 3.8 TYPO3 didn't write the changes into a temporay file.

I have been running TYPO3 on Windows XP, 2000 and 2003 without encountering this problem.

Actions #6

Updated by Ansgar Brauner over 17 years ago

In 3.8 TYPO3 didn't write the changes into a temporay file.

I have been running TYPO3 on Windows XP, 2000 and 2003 without encountering this problem.

Hi,

the localconf.php.TMP.php is written with the correct values.
if i'm using the t3lib/class.t3lib_install.php from 3.8 in the installed 4.1RC1 everything works fine.

So can we assume:
1. The localconf.php.TMP.php is writeable
2. The localconf.php is writeable to (The 3.8 install Class can write to that file)

I will take a look at the diff between those versions and will tell you if i find any problems

Actions #7

Updated by Christian Kuhn over 15 years ago

Resolved, unable to reproduce:

- Two years with no further feedback
- No one else seems to encounter and confirm this problem in recent versions, so this is probably an issue specific to your system environment

Please reopen if this is still reproducible on other (Win) systems.

Actions #8

Updated by Steffen Gebert over 13 years ago

  • Status changed from Resolved to Needs Feedback
  • Assignee deleted (Michael Stucki)
  • Target version deleted (0)
  • PHP Version deleted (4)
Actions #9

Updated by Anonymous over 13 years ago

Win Serv. 2003 R2 Ent SP2 x32 German
IIS6
PHP 5.2.8 - ISAPI - Thread Save
MySQL 5.1.31
Typo3 4.5.2
Free Disk Space 36.5 GB
I have the same problem: renaming of localconf.php.TMP.php to localconf.php did not work on Windows platform
I inserted -> t3lib_div::debug($msg,'Message'); in line 416 of class.t3lib_install.php
and I got this debug message:
typo3conf/localconf.php.TMP.php was NOT written properly (written content didn't match file content) - maybe a disk space problem?

Best regards
Axel Arnold Bangert - Herzogenrath 2011

_____________________________________________
P.S.:
On the same system below Apache Typo3 4.5.2 is working fine.
Win Serv. 2003 R2 Ent SP2 x32 German
Apache 2.0.64
PHP 5.3.5 - ISAPI - Thread Save
MySQL 5.1.54
Typo3 4.5.2
Free Disk Space 36.5 GB

Actions #10

Updated by Wouter Wolters about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for more then 2 years. This works with 4.5 on multiple systems at my working place.

Actions

Also available in: Atom PDF