I've just installed xampp-win32-5.5.30 and in xampp control panel both Apache and mysql started without any error but I found:
1)localhost in my browser redirects to another page localhost/dashboard/ and not the xampp start page.
2)localhost/xampp shows the following:
Index of /xampp
[ICO] Name Last modified Size Description
[PARENTDIR] Parent Directory -
Apache/2.4.17 (Win32) OpenSSL/1.0.2d PHP/5.5.30 Server at localhost Port 80
In C:\xampp\htdocs\index.php file:
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS']))
{
$uri = 'https://';
}
else
{
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/dashboard/');
exit;
?>
Something is wrong with the XAMPP installation :-(
Is there something wrong with the installation?
Run XAMPP (=> Apache) under an another port: Rename all ports with 80 to 8080 in your httpd. conf file. Your using Windows: Use notpad or editor with Ctrl+H to replace "80".
You have an 'Admin' option located on the Control Panel for every module in your XAMPP. Click on the Admin button of your Apache server to go to the web address of your web server. The Control Panel will now start in your standard browser, and you'll be led to the dashboard of your XAMPP's local host.
In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost. Before you can access the MySQL server, phpMyAdmin will prompt you for a user name and password.
Delete that file(index.php), you will get the list of directories and files from htdocs folder.
In the file /Applications/XAMPP/xamppfiles/etc/httpd.conf change this:
# Virtual hosts
# Include etc/extra/httpd-vhosts.conf
with this:
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
Then, In the file /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf add with something like this:
<VirtualHost *:80>
ServerName sbyc.byc.local
ServerAlias sbyc.byc.local
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/byc-mineduc01-ges/app"
<Directory "/Applications/XAMPP/xamppfiles/htdocs/byc-mineduc01-ges/app">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/sbyc.byc.local-error_log"
</VirtualHost>
This:
header('Location: '.$uri.'/dashboard/');
Performs redirect to localhost/dashboard/
Everything works as expected, if you clear this file and put some text, like "Hello world", you should see it on http://localhost/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With