localhost xampp or http localhost index php can t be accessed

0 votes

I am trying to install xampp. But my localhost/index.php and localhost/xampp not working. Here is my httpd-xampp.conf file:

#

# XAMPP settings

#


<IfModule env_module>

SetEnv MIBDIRS "C:/xampp/php/extras/mibs"

SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"

SetEnv OPENSSL_CONF "C:/xampp/apache/bin/openssl.cnf"

SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"

SetEnv PHPRC "\\xampp\\php"

SetEnv TMP "\\xampp\\tmp"

</IfModule>


#

# PHP-Module setup

#

LoadFile "C:/xampp/php/php7ts.dll"

LoadFile "C:/xampp/php/libpq.dll"

LoadModule php7_module "C:/xampp/php/php7apache2_4.dll"


<FilesMatch "\.php$">

SetHandler application/x-httpd-php

</FilesMatch>

<FilesMatch "\.phps$">

SetHandler application/x-httpd-php-source

</FilesMatch>


#

# PHP-CGI setup

#

#<FilesMatch "\.php$">

# SetHandler application/x-httpd-php-cgi

#</FilesMatch>

#<IfModule actions_module>

# Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"

#</IfModule>



<IfModule php7_module>

PHPINIDir "C:/xampp/php"

</IfModule>


<IfModule mime_module>

AddType text/html .php .phps

</IfModule>


ScriptAlias /php-cgi/ "C:/xampp/php/"

<Directory "C:/xampp/php">

AllowOverride None

Options None

Require all denied

<Files "php-cgi.exe">

      Require all granted

</Files>

</Directory>


<Directory "C:/xampp/cgi-bin">

<FilesMatch "\.php$">

    SetHandler cgi-script

</FilesMatch>

<FilesMatch "\.phps$">

    SetHandler None

</FilesMatch>

</Directory>


<Directory "C:/xampp/htdocs/xampp">

<IfModule php7_module>

    <Files "status.php">

        php_admin_flag safe_mode off

    </Files>

</IfModule>

AllowOverride AuthConfig

</Directory>


<IfModule alias_module>

Alias /licenses "C:/xampp/licenses/"

<Directory "C:/xampp/licenses">

    Options +Indexes

    <IfModule autoindex_color_module>

        DirectoryIndexTextColor "#000000"

        DirectoryIndexBGColor "#f8e8a0"

        DirectoryIndexLinkColor "#bb3902"

        DirectoryIndexVLinkColor "#bb3902"

        DirectoryIndexALinkColor "#bb3902"

    </IfModule>

    Require local

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

   </Directory>


Alias /phpmyadmin "C:/xampp/phpMyAdmin/"

<Directory "C:/xampp/phpMyAdmin">

    AllowOverride AuthConfig

    Require local

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

</Directory>


Alias /webalizer "C:/xampp/webalizer/"[enter image description here][1]

<Directory "C:/xampp/webalizer">

    <IfModule php7_module>

        <Files "webalizer.php">

            php_admin_flag safe_mode off

        </Files>

    </IfModule>

    AllowOverride AuthConfig

    Require local

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

</Directory>

</IfModule>

I got this error as a return: The image is here

Can someone help me with this?

May 28, 2022 in PHP by Kichu
• 19,050 points
4,005 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In PHP

0 votes
1 answer

Error:Undefined index: barangay in C:\xampp\htdocs\TextBlast\homepage\insert.php on line 22

Hello @ Regina, First checks whether a variable is ...READ MORE

answered Aug 14, 2020 in PHP by Niroj
• 82,880 points
5,412 views
0 votes
1 answer

Notice: Undefined index: bid in C:\xampp\htdocs\userac\courier_management_system-master\courier_management_system-master\addstaff.php on line 130

Hello @saima , Before you extract values from $_POST ,$_SESSION, ...READ MORE

answered Sep 14, 2020 in PHP by Niroj
• 82,880 points
2,593 views
0 votes
0 answers

I can't access http://localhost/phpmyadmin/

I am not able to access:  localhost/phpmyadmin/ ...READ MORE

May 28, 2022 in PHP by Kichu
• 19,050 points
4,565 views
0 votes
0 answers

How to open a file named index.php which is in htdocs/project1 folder in xampp?

I have a folder named project1 in ...READ MORE

May 29, 2022 in PHP by Kichu
• 19,050 points
2,612 views
0 votes
0 answers

This localhost page can’t be found :Phpmyadmin

I solved an issue with Apache and ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,050 points
3,384 views
0 votes
0 answers

Cannot access to localhost/xampp/index.php

When I type localhost in my browser ...READ MORE

May 30, 2022 in PHP by Kichu
• 19,050 points
2,044 views
0 votes
1 answer

Django Postgresql syncdb error

If you're trying to connect to a ...READ MORE

answered May 27, 2019 in Python by SDeb
• 13,300 points
1,214 views
0 votes
1 answer

MySQL container with PHPMyAdmin or with xampp

I couldn’t get your point. Overall it ...READ MORE

answered Nov 26, 2019 in Docker by Priyank
2,268 views
0 votes
0 answers

PhpMyAdmin not working on localhost

I had recently installed the Xampp version:1.7.7 ...READ MORE

Feb 8, 2022 in Others by Soham
• 9,700 points
1,308 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP