mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
It would be safer and tider to make use of symlinks here. (If the packages are updated then they won't make their way to /etc unless they are manually copied.)
This commit is contained in:
parent
172547f53d
commit
cae8779451
@ -30,11 +30,11 @@ Disable loading the old PHP Apache modules by changing their names::
|
||||
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php54.off
|
||||
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php54.off
|
||||
|
||||
Copy the PHP 7.0 Apache modules into place::
|
||||
Symlink the PHP 7.0 Apache modules into place::
|
||||
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php70-php.conf /etc/httpd/conf.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/15-rh-php70-php.conf /etc/httpd/conf.modules.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/modules/librh-php70-php7.so /etc/httpd/modules/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php70-php.conf /etc/httpd/conf.d/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/conf.modules.d/15-rh-php70-php.conf /etc/httpd/conf.modules.d/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/modules/librh-php70-php7.so /etc/httpd/modules/
|
||||
|
||||
Then restart Apache::
|
||||
|
||||
@ -72,11 +72,11 @@ Disable loading the old PHP Apache modules by changing their names::
|
||||
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php54.off
|
||||
mv /etc/httpd/conf.modules.d/10-php.conf /etc/httpd/conf.modules.d/10-php54.off
|
||||
|
||||
Copy the PHP 7.0 Apache modules into place::
|
||||
Symlink the PHP 7.0 Apache modules into place::
|
||||
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php70-php.conf /etc/httpd/conf.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/15-rh-php70-php.conf /etc/httpd/conf.modules.d/
|
||||
cp /opt/rh/httpd24/root/etc/httpd/modules/librh-php70-php7.so /etc/httpd/modules/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php70-php.conf /etc/httpd/conf.d/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/conf.modules.d/15-rh-php70-php.conf /etc/httpd/conf.modules.d/
|
||||
ln -s /opt/rh/httpd24/root/etc/httpd/modules/librh-php70-php7.so /etc/httpd/modules/
|
||||
|
||||
Then restart Apache::
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user