Created
November 8, 2020 12:49
-
-
Save meetpradeepp/30938a91d2e389748983c0c0aad8c453 to your computer and use it in GitHub Desktop.
Installing Frappe on CentOS
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
| 1. Create an user | |
| a. useradd frappe | |
| b. passwd frappe | |
| c. Give sudo permissions to frappe usermod -a -G wheel frappe | |
| 2. Install wkhtmltopdf | |
| a. Download RPM from https://wkhtmltopdf.org/downloads.html | |
| b. sudo yum install wkhtmltox-0.12.6-1.centos8.x86_64.rpm | |
| 3. Install following packages | |
| a. sudo yum install python38-devel redis mariadb-server mariadb git npm | |
| b. npm install yarn | |
| 4. Get MariaDB setup | |
| a. Edit the /etc/my.cnf.d/mariadb-server.cnf to include following lines | |
| [mysqld] | |
| innodb-file-format=barracuda | |
| innodb-file-per-table=1 | |
| innodb-large-prefix=1 | |
| character-set-client-handshake = FALSE | |
| character-set-server = utf8mb4 | |
| collation-server = utf8mb4_unicode_ci | |
| [mysql] | |
| default-character-set = utf8mb4 | |
| b. Start the MariaDB server | |
| systemctl start mariadb | |
| c. Adjust the settings by running | |
| mysql_secure_installation | |
| 5. Start the services | |
| systemctl restart mariadb redis | |
| 6. Bench install | |
| sudo pip3 install frappe-bench | |
| 7. Start Bench for first time | |
| a. Initialize bench | |
| bench init frappe-bench | |
| b. Change to the directory | |
| cd frappe-bench | |
| c. Create a site | |
| bench new-site site1.local | |
| d. Start the bench | |
| bench start | |
| 8. Complete the setup | |
| a. Login as default administrator | |
| Username: Administrator (Case sensitive) | |
| Password: <> (Provided while creating site) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment