Every time I browse a php page on localhost, it loads the page

I modified the httpd.conf file as far as I know, adding index.php to the directory index,

LoadModule php5_module "d:/php/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "d:/php"

But any .php file loads, it loads it.

Any help would be appreciated.

Thanks jean

+3
source share
1 answer

There is no problem in the browser - it is something with your configuration. Where did you place this code in the httpd.conf file? Is it nested in another (possibly module-specific) code? Perhaps you can provide more (or all) of your http.conf file and everything related to the apache startup log.

If you are not familiar with apache configuration, you may need to use the LAMP / WAMP distribution, as they will work out of the box.

Apache - . ( apache) PHP . , PHP , , , - , , , - .

+1

Source: https://habr.com/ru/post/1771657/


All Articles