Difference between httpd.conf, php.ini and .htaccess

I am going to start learning Apache. All the resources that I study mention files php.inior .htaccessor httpd.conffor configuration and so on. But not one of them knows the difference between these three files. Can someone explain the difference and their use?

+5
source share
3 answers

httpd.conf (on some platforms it can be named differently, but this is the default) is the main configuration file for Apache. You can use Include statements to load external configuration files. httpd.conf is read when Apache starts up or when it starts "reboot".

.htaccss - Apache. .htaccess httpd.conf. , , .htaccess, Apache , .

PHP, , , , Apache, . php.ini - PHP.

+8

. linux /etc. . /etc/php5/php.ini /etc/apache2/httpd.conf ..

. Word JPEG AVI-.

  • PHP.ini PHP
  • .htaccess apache ( )
  • httpd.conf apache.
+3
  • php.ini is a configuration file in which you specify parameters for things related to php, for example CURL
  • .htaccess is where you specify the routing options and folder URI options on your server.
  • httpd.conf is a configuration file that specifies parameters for things specific to apache
0
source

All Articles