Welcome Guest, Not a member yet? Register   Sign In
CI in apache userdirs (domain.com/~user/public/ci)
#21

Did you turn the Routes.php file setAutoRoute off false?
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#22

(This post was last modified: 03-10-2022, 12:48 AM by pennynots88.)

I appreciate you continuing to look at my question John. 
watch movies


9apps download
Reply
#23

(03-20-2021, 11:23 AM)evansharp Wrote: These paths have been correct and I had already set the permissions on writable/

Code:
root@webserver:/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:
root@webserver:/home/kaimartin/www/hiperplanner# cd /home/kaimartin/www/hiperplanner/app/Config/../Views
root@webserver:/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
root@webserver:/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.
I think this will work, as I was currently facing this issue but following this resolved it. Hope you do it the exact way he does.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB