Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Rename the folder to the new admin name to write a configuration file #26

Closed
wants to merge 1 commit into from

1 participant

@ruden

Rename the folder to the new admin name to write a configuration file otherwise get the Warning: fopen (\admin\includes\configure.php): failed to open stream: No such file or directory in \install\templates\pages\install_4.php on line 197

@ruden ruden Rename the folder to the new admin name to write a configuration file
Rename the folder to the new admin name to write a configuration file otherwise get the Warning: fopen (\admin\includes\configure.php): failed to open stream: No such file or directory in \install\templates\pages\install_4.php on line 197
91761ce
@ruden

Hi.
This is the wrong code.

@ruden ruden closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2013
  1. @ruden

    Rename the folder to the new admin name to write a configuration file

    ruden authored
    Rename the folder to the new admin name to write a configuration file otherwise get the Warning: fopen (\admin\includes\configure.php): failed to open stream: No such file or directory in \install\templates\pages\install_4.php on line 197
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 5 deletions.
  1. +6 −5 catalog/install/templates/pages/install_4.php
View
11 catalog/install/templates/pages/install_4.php
@@ -190,16 +190,17 @@
}
$file_contents .= '?>';
+
+ if ($admin_folder != 'admin') {
+ @rename($dir_fs_document_root . 'admin', $dir_fs_document_root . $admin_folder);
+ }
- $fp = fopen($dir_fs_document_root . 'admin/includes/configure.php', 'w');
+ $fp = fopen($dir_fs_document_root . $admin_folder . '/includes/configure.php', 'w');
fputs($fp, $file_contents);
fclose($fp);
- @chmod($dir_fs_document_root . 'admin/includes/configure.php', 0644);
+ @chmod($dir_fs_document_root . $admin_folder . '/includes/configure.php', 0644);
- if ($admin_folder != 'admin') {
- @rename($dir_fs_document_root . 'admin', $dir_fs_document_root . $admin_folder);
- }
?>
<p>The installation and configuration was successful!</p>
Something went wrong with that request. Please try again.