Configure Htaccess File On Linux Centos

Hi,

I'm installing fresh of MVE on centos server using apache.

the instructions says:

https://docs.cs-cart.com/4.9.x/install/system_requirements.html

the .htaccess file should allow the following directives:

			DirectoryIndex
		
			Deny
		
			Allow
		
			Options
		
			Order
	
	
		
			AddHandler
		
			RewriteEngine
		
			RewriteBase
		
			RewriteCond
		
			RewriteRule

how should I config htaccess file to allow the written directives?

thanks in advance.

They meant that your server configuration should allow htaccess to change values of mentioned directives. There is no need to change .htaccess file after installation

Hi,

thanks for your reply.

so the htaccess file in inside cscart folder ?

so this instruction means nothing?

how can I know if my server allows htaccess to change values of mentioned directives?

how can I know if my server allows htaccess to change values of mentioned directives?

Create and open a phpinfo.php in the root

Administration->Logs->Select gear icon->PHP information

so the htaccess file in inside cscart folder ?
so this instruction means nothing?


You are right

how can I know if my server allows htaccess to change values of mentioned directives?


You can ask hosting administrator about it. In 99% you should not do anything

Administration->Logs->Select gear icon->PHP information

I never pay due attention to these gears :-)

thanks. you help me solve this issue

Hi,

I dont get it my my http error log has the following:

[Mon Feb 11 11:14:55.345707 2019] [autoindex:error] [pid 20594] [client 213.32.253.72:59837] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive.

my site is under /var/www/html/cscart/.

in cscart folder I have the .htaccess file.

why the log talk about my main apache dir?

It should be addressed to server administrator