![]() ![]() Also there is an another backup of the same Moodle website that archived using tar.gz (This backup is stored locally in a tape drive). I wanted to test the backup and in my Windows PC I installed Xampp for Windows 7.2.31 and configured the above backup on this server. For backup purpose there is an offsite CentOS 7 remote server and I rsync the Moodle website, data directory and the database to that server. I have setup a Moodle website in CentOS 7, nginx 1.16.1, php 7.2.31, MariaDB 10.3 server environment. $CFG-> wwwroot = ' $CFG-> dataroot = 'c:\xampp\htdocs\test-data' $CFG->dbpass = '' // your database password $CFG->dbuser = 'root' // your database username $CFG->dbname = 'test' // database name, eg moodle $CFG->dbhost = 'localhost' // eg 'localhost' or 'db.isp.com' or IP $CFG->dblibrary = 'native' // 'native' only at the moment $CFG->dbtype = ' mariadb' // 'pg sql', 'mariadb', 'mysqli', 'sqlsrv' or 'oci' PHP Fatal error: require_once(): Failed opening required 'C:\\xampp\\htdocs\\test/cache/classes/config.php' (include_path='C:\\xampp\\htdocs\\test/lib/ pear C:\\xampp\\php\\PEAR') in C:\\xampp\\htdocs\\test\\cache\\lib.php on line 35 ![]() I have downloaded the relevant memcached. PHP Warning: require_once(C:\\xampp\\htdocs\\test/cache/classes/config.php): failed to open stream: No such file or directory in C:\\xampp\\htdocs\\test\\cache\\lib.php on line 35 I have tried to install Memcached on Xampp on a windows 10 machine but failed multiple times. Rm -f /Library/LaunchDaemons/ get following error after setup the Moodle in Xampp server.Īpache error log (Xampp) shows following error. Remove old PHP Launch Agents and daemons, if present: rm -f ~/Library/LaunchAgents/* If you have the older PHP formulas from an older Homebrew installation, you may wish to remove these: rm -rf $(brew -cellar)/php Restart Apache Removing Older Homebrew PHP version (optional) LoadModule php_module /usr/local/opt/ /lib/httpd/modules/libphp.so One extra step is needed for PHP 8 and macOS bundled Apache: sudo nano /etc/apache2/nfĪdd the new PHP 8 and comment out the old one. #LoadModule php_module /usr/local/opt/ /lib/httpd/modules/libphp.so LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so #LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so apt - How to install phpize for PHP 7 - Ask Ubuntu WebThe phpize command is. You could download all the versions and just uncomment the one you want if you intend to swap around (change path prefix depending on Chip used – see above: #LoadModule php5_module /usr/local/opt/ /lib/httpd/modules/libphp5.so Im trying to install the PDO extension using pecl on my Mac with xampp. sudo nano /etc/apache2/nfįind the ‘Loadmodule’ lines and new PHP version path: Intel Chip LoadModule php7_module /usr/local/opt/ /lib/httpd/modules/libphp7.so Apple Chip LoadModule php7_module /opt/homebrew/opt/ /lib/httpd/modules/libphp7.so ( As an alternative to Code Signing and using Apples in-built Apache, you may want instead to use both Apache and PHP from Homebrew and set up the User Sites folder).Īfter code signing PHP follow the below to complete loading the PHP module with Apples Apache. This guide will help you with Code Signing. If you are using macOS in built shipped Apache, you can use the PHP but it needs to be Code Signed, before Monterey this practice was optional but now it is mandatory. then unlink and link in the new PHP version by issuing a command like below but with your correct version: brew unlink php
0 Comments
Leave a Reply. |