11# Frequently Asked Questions
22
3-
43## How do I switch to a different version of PHP?
54
65### Switch to PHP 8.3
1918
2019 sudo dnf module switch-to php:remi-7.4 -y
2120
22-
2321## How do I switch to a different version of Node.js?
2422
2523### Switch to Node.js 22.x
4038 curl -fsSL https://rpm.nodesource.com/setup_18.x | sudo bash -
4139 sudo dnf install nodejs -y
4240
43- ### Switch to Node.js 16.x
44-
45- sudo dnf remove nodejs -y
46- curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash -
47- sudo dnf install nodejs -y
48-
49- ### Switch to Node.js 14.x
50-
51- sudo dnf remove nodejs -y
52- curl -fsSL https://rpm.nodesource.com/setup_14.x | sudo bash -
53- sudo dnf install nodejs -y
54-
55- ### Switch to Node.js 12.x
56-
57- sudo dnf remove nodejs -y
58- curl -fsSL https://rpm.nodesource.com/setup_12.x | sudo bash -
59- sudo dnf install nodejs -y
60-
61- ** Note** : Node.js 12.x is no longer actively supported!
62-
6341
6442## How do I fix common permission issues?
43+
6544If running your project you encounter some permission issues, follow the below steps.
6645
6746### Errors:
47+
6848> PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/_ example.local_ /html/data" is not writable...
6949
7050> PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/_ example.local_ /html/data/cache" is not writable...
@@ -75,18 +55,39 @@ If running your project you encounter some permission issues, follow the below s
7555
7656 chmod -R 777 data
7757
78-
7958### Error:
59+
8060> PHP Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/_ example.local_ /html/public/uploads" is not writable...
8161
8262** Fix:**
8363
8464 chmod -R 777 public/uploads
8565
86-
8766### Error:
67+
8868> PHP Fatal error: Uncaught ErrorException: fopen(/var/www/_ example.local_ /config/autoload/../../log/error-log-_ yyyy-mm-dd.log_ ): Failed to open stream: Permission denied...
8969
9070** Fix:**
9171
9272 chmod -R 777 log
73+
74+ ## How do I create command aliases?
75+
76+ From either your terminal or file explorer, navigate to your home directory (` /home/<your-username>/ ` ).
77+
78+ Using your preferred text editor, open the file: ` .bash_profile ` (if it does not exist, creat it first).
79+
80+ Move to the end of the file and enter on a new line:
81+
82+ alias command_alias="command to execute"
83+
84+ where:
85+
86+ - ` command_alias ` is the name by which you want to call your original command
87+ - ` command to execute ` : the original command to be executed on alias call
88+
89+ ### Example:
90+
91+ alias list_files="ls -Al"
92+
93+ will create an alias called ` list_files ` that will run the command ` ls -Al ` .
0 commit comments