CodeIgniter Forums
Ci4 problem on newly instal vps - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Ci4 problem on newly instal vps (/showthread.php?tid=77735)



Ci4 problem on newly instal vps - seunex - 10-13-2020

Hello any one can help me I just install a vps and install a plesk cpanel.

My ci4 project is too big that I need a vps for it

Every process went well until I upload my project and I am stuck at error.

500 internal server error.

Error log says
.htacess Option All is not allow here.

I did no know much about command line I have already tries every solution I found on internet.

I comment out all options in .htaccess in the public folder it works but can not locate pages..

Url not found.

When I uncommitted them I get back my 500 error 
Option All not allow here.


RE: Ci4 problem on newly instal vps - XMadMax - 10-13-2020

Hello Seunex,

seems that your vps are installed with "AllowOverride" restriction.
See your httpd.conf or site conf. Inside the <Directory> that points to your side.

You must to set to 'AllowOverride All' to allow any change in the .htaccess file.

Also, check that you have as this in your .htaccess file:

Options All (not Option All)


RE: Ci4 problem on newly instal vps - InsiteFX - 10-13-2020

Code:
#Change this
Options All -Indexes

# To this
Options -Indexes



RE: Ci4 problem on newly instal vps - seunex - 10-13-2020

(10-13-2020, 04:30 AM)XMadMax Wrote: Hello Seunex,

seems that your vps are installed with "AllowOverride" restriction.
See your httpd.conf or site conf. Inside the <Directory> that points to your side.

You must to set to 'AllowOverride All' to allow any change in the .htaccess file.

Also, check that you have as this in your .htaccess file:

Options All    (not Option All)


Hello XMADMAX this are the solution I am seeing on internet my problem is how can I get to that file for editing.

(10-13-2020, 04:36 AM)InsiteFX Wrote:
Code:
#Change this
Options All -Indexes

# To this
Options -Indexes

Does not work


RE: Ci4 problem on newly instal vps - connectgrid - 10-13-2020

A side solution...

If you're adventurous, consider replacing Apache with Nginx + PHP-FPM. Configuration is vastly simpler, and you'll get better performance and lower memory footprint overall. Great for VPS's. I run all of my CodeIgniter projects on cheap VPS setups with minimal configuration. Best thing is that you don't need any of this .htaccess or AllowOverrides stuff. It's worth checking out Nginx if you haven't yet, and it's a great way to get comfortable with the command line, as you don't need to run heavy and clunky control panels on the server like cPanel. Lean and mean. Fewer security concerns.