44
Points
Questions
1
Answers
7
-
Asked on May 31, 2023 in PHP.
It should work:
RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
- 179 views
- 2 answers
- 1 votes
-
Asked on November 12, 2022 in Wordpress.
It should be 755 for folders and 644 for files.
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
- 1231 views
- 1 answers
- 0 votes
-
Asked on November 12, 2022 in Wordpress.
You can change php by adding php handler in htaccess
for php 7.4
AddHandler application/x-httpd-php74 .php
for php 8
AddHandler application/x-httpd-php8 .php
for php 8.1
AddHandler application/x-httpd-php81 .php
- 1328 views
- 1 answers
- 1 votes
-
Asked on November 10, 2022 in MySQL.
- 265 views
- 1 answers
- 1 votes
-
Asked on November 10, 2022 in PHP.
You can update php in GCp via following commands
sudo apt-get update sudo apt-get install php7.3-mysql sudo a2enmod php7.3 sudo a2dismod php7.0 sudo systemctl restart apache2
- 308 views
- 1 answers
- 1 votes
-
Asked on August 4, 2022 in Ubuntu.
Try this:
fsck /dev/sda3
And enter Yes (y) to for each error. Or press a one time for always-yes.
When all errors will be fixed. Reboot the system
- 345 views
- 1 answers
- 1 votes
-
Asked on December 31, 2020 in Wordpress.
You can check the php information by creating phpinfo.php file at site root folder contain following code
<?php phpinfo(); ?>
You can check the php details by accessing this url https://yourdomain.com/phpinfo.php
This answer accepted by KrishnaSingh. on December 31, 2020 Earned 15 points.
- 1362 views
- 1 answers
- 0 votes