Created
December 22, 2023 08:42
-
-
Save whatafunc/479ae752a7ba5937819ba317f0c59232 to your computer and use it in GitHub Desktop.
MODX Revolution is a CMS written in PHP and it's recent version do support php 8.2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MODX Revolution is a CMS written in PHP and it's recent version do support php 8.2. | |
There is a confedence it's support will be continued so just in case a small guide how you can deploy it on your Digitalocean cloud or other vps | |
Let's go: | |
$ apt-get install php8.2 php8.2-mysql mysql-server | |
# download modx revolution from http://modxcms.com | |
$ cd /var/www | |
$ unzip /home/ubuntu/modx-2.8.6-pl.zip | |
$ mv modx-2.8.6-pl modx | |
$ cd modx | |
$ touch core/config/config.inc.php | |
$ mkdir -p assets/components | |
$ mkdir -p core/components | |
$ chown -R www-data:www-data \ | |
core/cache \ | |
core/export \ | |
core/packages \ | |
assets/ \ | |
core/components \ | |
core/config/config.inc.php | |
$ nginx -s reload | |
# Now go to http://yoursitedomain or IP/modx/setup/ and fill the forms... | |
Installation type: New | |
New folder permissions: 0755 | |
New file permissions: 0644 | |
Database type: mysql | |
Database host: localhost | |
Database login name: notroot | |
Database password: ********** | |
Database name: db | |
Table prefix: modx_ | |
Connection character set: utf8 | |
Collation: utf8_general_ci | |
# for security remove the setup directory when setup is done or use the tick box checked to let it automatically cleaned | |
$ rm -rf /var/www/html/modx-2.8.6-pl/setup/ | |
Done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chown www-data:www-data -R * # Let Apache/NIGINX be owner find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--