# PrestaShop php7.0環境設定

**URL:** <https://forum.ficusonline.com/t/prestashop-php7-0/123>\
**Category:** WEB Design\
**Created:** [2017 年 8 月 18 日午後 11:00 UTC](https://forum.ficusonline.com/t/prestashop-php7-0/123 "2017-08-18T23:00:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)\
**Post date:** [2017 年 8 月 18 日午後 11:00 UTC](https://forum.ficusonline.com/t/prestashop-php7-0/123/1 "2017-08-18T23:00:33Z")

</div>

php7.0では機能拡張の指定をphp.iniでする必要はありません。  
php機能拡張をインストールすると、

> $ sudo apt-get install php7.0-mysql php7.0-gd

その設定ファイルが/etc/php/7.0/apache2/conf.dに追加されます。  
apache起動時にconf.dが読み込まれます。

\<PrestaShop環境設定\>  
[http://developers.prestashop.com/module/03-DevelopmentEnvironment/index.html](http://developers.prestashop.com/module/03-DevelopmentEnvironment/index.html)

Configuring PHP  
PrestaShop needs a few additions to PHP and MySQL in order to fully work. Make sure that your PHP configuration has the following settings and tools:

GD library. The GD library ([About](https://libgd.github.io/pages/about.html)) enables PrestaShop to rework images that you upload, especially resizing them.  
Dom extension. The Dom extension enables to parse XML documents. PrestaShop uses it for various functionalities, like the Store Locator. It is also used by some modules, as well as the pear\_xml\_parse library.  
allow\_url\_fopen enabled. The allow\_url\_fopen directive enables modules to access remote files, which is an essential part of the payment process, among others things. It is therefore imperative to have it set to ON.  
Here is a section of the php.ini file (the configuration file for PHP):

```
extension = php_mysql.dll 必要ありません。
extension = php_gd2.dll 必要ありません。
allow_url_fopen = On

# also recommended
register_globals = Off
magic_quotes_gpc = Off
allow_url_include = Off

```
