官术网_书友最值得收藏!

  • Learning Drupal 8
  • Nick Abbott Richard Jones
  • 263字
  • 2021-07-16 09:36:51

Troubleshooting your installation

If your site does not install correctly, there are some configuration tips that you might want to check.

Tip

Note that if you are using the Dev Desktop, you need not do any of this.

Memory settings

Sometimes, memory settings may need to be adjusted to get your site running correctly. Here are some suggestions on things to adjust.

If you are getting out of memory errors during installation, you can try increasing the memory available to Drupal.

When you imported the Drupal 8 site, the Dev Desktop will have created a site folder, which contains a settings file specifically. The site-specific settings file is called settings.php and can be found in the default folder.

Note that the default folder is also linked to the drupal-8.dd symlink.

Locate and edit the file:

/sites/default/settings.php

Add a new line:

ini_set('memory_limit', '128M');

This increases the memory allocated to PHP when running your site. 128M should be sufficient, but if you still have problems, try increasing this. Note that by default, the file should have been set to read only on your system and therefore you may need to take some action before you can save your changes.

PHP timeouts

If you have a slower computer, sometimes the PHP timeout settings needs to be increased to allow more time for the installation steps to be completed.

In the same settings file as before:

docroot/sites/default/settings.php

Add a new line:

ini_set('max_execution_time', '240');

The 240 here refers to the number of seconds and this should be sufficient, but if you still have problems, try increasing this again.

主站蜘蛛池模板: 邹平县| 绩溪县| 韶关市| 临汾市| 汽车| 迁安市| 毕节市| 彰化市| 西和县| 盐边县| 彭州市| 福建省| 镇安县| 临颍县| 井陉县| 成都市| 绩溪县| 大荔县| 虹口区| 辽宁省| 黑河市| 南宫市| 南城县| 松桃| 崇明县| 东阿县| 化隆| 湘潭市| 藁城市| 育儿| 韶山市| 溧水县| 蚌埠市| 萨迦县| 聊城市| 绥江县| 望都县| 漳浦县| 南阳市| 海门市| 六盘水市|