• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI in apache userdirs (domain.com/~user/public/ci)

#9
These paths have been correct and I had already set the permissions on writable/

Code:
[email protected]:/home/kaimartin/www/hiperplanner# ls
total 164
drwxrwxr-x  8 kaimartin kaimartin  4096 Mar 18 14:29 ./
drwxr-xr-x  3 kaimartin kaimartin  4096 Mar 19 14:28 ../
drwxrwxr-x 12 kaimartin kaimartin  4096 Jan 31 18:56 app/
-rwxr-xr-x  1 kaimartin kaimartin  3760 Jan 31 18:56 builds*
-rw-rw-r--  1 kaimartin kaimartin   858 Jan 31 18:56 composer.json
-rw-rw-r--  1 kaimartin kaimartin 91034 Mar  2 15:58 composer.lock
-rw-rw-r--  1 kaimartin kaimartin  4258 Mar 16 15:44 .env
drwxrwxr-x  8 kaimartin kaimartin  4096 Mar 19 21:07 .git/
-rw-rw-r--  1 kaimartin kaimartin  1871 Mar 16 14:55 .gitignore
-rw-rw-r--  1 kaimartin kaimartin   163 Mar  2 16:01 .htaccess
-rw-rw-r--  1 kaimartin kaimartin  1159 Jan 31 18:56 LICENSE
-rw-rw-r--  1 kaimartin kaimartin  2091 Jan 31 18:56 phpunit.xml.dist
drwxrwxr-x  2 kaimartin kaimartin  4096 Mar 19 21:07 public/
-rw-rw-r--  1 kaimartin kaimartin  2724 Jan 31 18:56 README.md
-rwxr-xr-x  1 kaimartin kaimartin  2236 Jan 31 18:56 spark*
drwxrwxr-x  6 kaimartin kaimartin  4096 Jan 31 18:56 tests/
drwxrwxr-x 21 kaimartin kaimartin  4096 Mar  2 15:58 vendor/
drwxrwxrwx  7 kaimartin kaimartin  4096 Jan 31 18:56 writable/

The default paths from Paths.php resolve correctly:
Code:
[email protected]:/home/kaimartin/www/hiperplanner# cd /home/kaimartin/www/hiperplanner/app/Config/../Views
[email protected]:/home/kaimartin/www/hiperplanner/app/Views# ls
total 32
drwxrwxr-x  3 kaimartin kaimartin  4096 Jan 31 18:56 ./
drwxrwxr-x 12 kaimartin kaimartin  4096 Jan 31 18:56 ../
drwxrwxr-x  4 kaimartin kaimartin  4096 Jan 31 18:56 errors/
-rw-rw-r--  1 kaimartin kaimartin 18308 Jan 31 18:56 welcome_message.php
[email protected]:/home/kaimartin/www/hiperplanner/app/Views#

The welcome view still does not display since the router still can't distinguish the install directory from the controller URL segment. 
   

What are you thoughts on the RewriteBase directive of the public/.htaccess? FollowSymLinks are enabled. This is the current config:
Code:
<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    # If you installed CodeIgniter in a subfolder, you will need to
    # change the following line to match the subfolder you need.
    # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase
    RewriteBase /~kaimartin/hiperplanner/

Could the default CI rewrite scheme be fighting with mod_userdir? My rewrite-fu is limited. There are plenty of CI3-era posts about this, but they all recommend doing what I've done: set the RewriteBase to include the userdir.
Reply


Messages In This Thread
RE: CI in apache userdirs (domain.com/~user/public/ci) - by evansharp - 03-20-2021, 11:23 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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