Make sure the php-pear AUR package has been installed:Ĭreate a /etc/php/conf.d/imagick.ini and enable the extension: for nextcloud, then install librsvg} as a dependency. If you want imagemagick to have SVG support, e.g. Install php-imagick, it will create the file /etc/php/conf.d/imagick.ini to configure the extension. Install the imagemagick package and install one of the listed PHP extension library. php-imagick, php-redis, php56-mcrypt AUR.įor php-gd uncomment the line in /etc/php/php.ini: etc/php/conf.d/gd.ini)Įxisting extensions are located in /usr/lib/php/modules directory.įor example, to enable ext-iconv extension create file /etc/php/conf.d/extensions.ini with line:Įxtensions for current and older versions of PHP are also available in the AUR under prefixes like php- and php56-, e.g. Tip: Instead of editing /etc/php/php.ini, an extension may be enabled/configured in the /etc/php/conf.d directory instead (e.g. Open_basedir = /srv/http/:/var/www/:/home/:/tmp/:/var/tmp/:/var/cache/:/usr/share/pear/:/usr/share/webapps/:/etc/webapps/Ī number of commonly used PHP extensions can also be found in the official repositories: This will obviously be different for webapps installed in other locations. So, if you are setting up open_basedir, make sure both those folders listed are in the open_basedir. The default Arch packages for certain webapps like nextcloud & phpmyadmin installs the webapps under /usr/share/webapps and creates a symlink pointing to the actual configuration files for those webapps under /etc/webapps. All symbolic links are resolved, so it is not possible to avoid this restriction with a symlink. Starting with PHP 7.0, it is no longer set by default to more closely match upstream so users who wish to use it must configure it manually. The open_basedir directive limits the paths that can be accessed by PHP, thus increasing security at the expense of potentially interfering with normal program execution.If you want to display errors to debug your PHP code, change display_errors to On in /etc/php/php.ini:.It is recommended to set your timezone ( list of timezones) in /etc/php/php.ini like so:.The main PHP configuration file is well-documented and located at /etc/php/php.ini. To run PHP scripts as plain CGI, you need the php-cgi package. That requires installing additional packages and editing configuration files. While PHP can be run standalone, it is typically used with web servers. Those are binary builds using the openSUSE Build Service. You can find older and pinned versions of PHP in the AUR, including php53 AUR, php54 AUR, php55 AUR, php56 AUR, php70 AUR, php71 AUR, php72 AUR, php73 AUR, php74 AUR, php80 AUR, php81 AUR and php82 AUR. For detailed instruction, see Nextcloud#Migrating to php-legacy. That package provides the oldest still actively supported PHP branch and must be configured within the applications that require it. PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.ĭue to application software that cannot use the latest PHP version, you may install php-legacy alongside.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |