• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI 4 Showing Blank Pages in ubuntu 20.04 LTS

#3
Did you set the CI environment?
You can do this ether in public/.htaccess
Code:
SetEnv CI_ENVIRONMENT development
 
Or in apaches virtual host file (example below):
PHP Code:
<VirtualHost *:80>
        ServerName MYHOST.MYNETWORK
        DocumentRoot 
"PATH_TO_CI4/public"
        ErrorLog "/var/log/apache2/MYHOST_error.log"
        CustomLog "/var/log/apache2/MYHOST_access.log" common
        
#ServerAlias www.MYHOST.example.com

        SetEnv CI_ENVIRONMENT development

        
<Directory "PATH_TO_CI4/public">
            Require all granted
        
</Directory>
</
VirtualHost

Make sure that mod_php is enabled on Ubuntu:
Code:
a2enmod php
sudo systemctl restart apache2
Reply


Messages In This Thread
RE: CI 4 Showing Blank Pages in ubuntu 20.04 LTS - by obstbude - 08-11-2020, 02:15 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.