简体   繁体   English

安装后未删除ProcessWire install.php

[英]ProcessWire install.php not removed after installation

Processwire installer does not delete install.php and site/assets/install/. Processwire安装程序不会删除install.php和site / assets / install /。 Note that ProcessWire forms warn that the installer will only delete the install files if it can. 请注意,ProcessWire表单会警告安装程序仅在可能的情况下才删除安装文件。

System 系统

  • ubuntu 12.04 Ubuntu 12.04
  • vhost pointing to a symlink on the user file structure to source of index vhost指向用户文件结构上指向索引源的符号链接
  • ProcessWire 5.2 ProcessWire 5.2
  • apache 2.2.22 阿帕奇2.2.22
  • php 5.4 PHP 5.4

I Tried 我试过了

  • chmod 777 on the files 文件上的chmod 777
  • chown www-data the files 将www数据文件

I expect the installer to delete the file and folder if it says it can, since I am running a generator for the project boot, some setup can be done but not allot. 我希望安装程序删除文件和文件夹(如果可以),因为我正在为项目启动运行生成器,因此可以进行一些设置,但不能进行分配。 The install of processwire is done manually after the generator, therefore checking deletion and handling it is not highly plausible. Processwire的安装是在生成器之后手动完成的,因此检查删除并对其进行处理似乎不太合理。 I am looking for any suggestions to solve the issue or a full fledged solution. 我正在寻找解决该问题或完善解决方案的任何建议。

I don't think it is possible for the ProcessWire Installer to delete itself, so it has to be removed manually. 我认为ProcessWire安装程序无法自行删除,因此必须手动将其删除。 However, after installing, an additional file is created to secure your installation, even if the install.php file is not deleted. 但是,安装后,即使未删除install.php文件,也会创建一个附加文件来保护您的安装。

From the install.php file: 从install.php文件:

Note that it creates this file once installation is completed: /site/assets/installed.php 请注意,安装完成后它将创建此文件:/site/assets/installed.php
If that file exists, the installer will not run. 如果该文件存在,则安装程序将无法运行。 So if you need to re-run this installer for any reason, then you'll want to delete that file. 因此,如果出于任何原因需要重新运行此安装程序,则需要删除该文件。 This was implemented just in case someone doesn't delete the installer. 这是为了防止有人不删除安装程序而实施的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM