XAMPP 1.7.4 on Windows 7 Defaults to Splash page - windows

I set up XAMPP running apache and tried to set up the virtual host, but it wouldn't work, I keep getting routed to the XAMPP splash page. http://localhost/index.html says "It works!"
I uncommented the are where it said vhost_alias module, httpd-vhosts and rewrite_module.
I also added the following to my httpd-vhosts.conf & httpd.conf files:
<Directory "C:/Sites/test.dev-web">
Allow From All
AllowOverride FileInfo
Options +FollowSymLinks
</Directory>
<VirtualHost *:80>
ServerName "test.dev-web"
DocumentRoot "C:/Sites/test.dev-web"
</VirtualHost>
I also added this to my hosts file in my system32\drivers\etc:
127.0.0.1 test.dev
I also have 127.0.0.1 localhost in that file
However whenever I type in test.dev in chrome, it takes me to the xampp splash page (test.dev/xampp).
Running windows 7 and XAMPP 1.7.4
XAMPP says that apache is running on the control panel.
I shut off all programs that could be running port 80 (skype)
Any ideas on what's wrong?

Follow the step mentioned here -
http://foundationphp.com/tutorials/apache22_vhosts.php

Easy solution: Delete XAMPP's local test site (xampp/htdocs) and replace it with your own site.
The Correct solution: Set up proper virtual hosts. Set up multiple virtual hosts on windows
or the link that Vinay shared will give you a good guide.

Related

wampserver tries to download file after adding new virtual host

My existing wampserver (3.2) virtual hosts work fine, but when I try to add a new one I have problems. Any help apprecaited.
I've added the new record to httpd-vhosts.conf:
#
<VirtualHost *:80>
ServerName newsite
DocumentRoot "c:/users/offic/onedrive - foldername/studio/domains/newsite"
<Directory "c:/users/offic/onedrive - foldername/studio/domains/newsite/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
and I've updated HOSTS (C:\Windows\System32\drivers\etc) to:
127.0.0.1 newsite
::1 new
(All the sites that work follow the above style)
And I've restarted Windows and the DNS in Wampserver.
What actually happens when try to launch newsite in the browser is that it tries to download index.php rather than displaying it.
I've also tried adding the new virtual hosts via wamp > localhost > add a new local host. I haven't altered http.conf. As I say, other sites are working fine. Thanks.
So I removed the .htaccess file and things appear to work correctly. Another post said you have to use http://newsite/index.php but I get it fine with newsite/

Accessing XAMPP/laravel home page

So, i have a little issue here, i installed XAMPP which uses Apache on a Ubuntu desktop Virtual machine(on vbox), i also created a Laravel project on it and it works fine when i access it from the same VM itself !
Accessing the home page from firefox ubuntu
however when i try to access it from my host windows machine it just access to the XAMPP home page like this :
access from chrome windows
now my ubuntu VM has its address set to 192.168.1.50 and my windows 192.168.1.8 !
i also added to the windows machine "etc" file the entry :
192.168.1.50 usthbcloud.com
and to my ubuntu machine:
127.0.0.1 usthbcloud.com
my httpd.conf file of the XAMPP includes the file : httpd-vhosts.conf
i modified the httpd-vhosts.conf to the following :
vhosts.conf
Any solutions ?..
You're Facing issues in windows. Try this
<VirtualHost *:80>
DocumentRoot "D:/XAMPP/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/XAMPP/htdocs/eduguru/public/"
ServerName eduguruacademy.com
</VirtualHost>
Try this in your httpd-vhosts.conf. Replace with your DocumentRoot & ServerName Accordingly. Then restart XAMPP

Named virtual host not working in xampp windows

I have following config in extra\httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/history"
ServerName history.test.in
<Directory "C:/xampp/htdocs/history">
Options All
AllowOverride All
Require all Granted
</Directory>
</VirtualHost>
Also, I enabled this in apache\conf\httpd.conf file,
Include conf/extra/httpd-vhosts.conf
In drivers\etc\hosts file, I have
127.0.0.1 localhost
127.0.0.1 history.test.in
When I try to access http://history.test.in, site is not loading but when tried with http://localhost/history, it works. Am I doing anything wrong? Also, I don't see any error logs in Apache.
The above configuration is correct. The reason for the virtual host not working was due to incorrect settings like firewall block, anti-virus software interruption, multiple OS environment etc. in system.
This post(eye-opener) helped me found the issue in windows xampp environment: https://serverfault.com/questions/452268/hosts-file-ignored-how-to-troubleshoot
especially ipconfig /displaydns DNS command helped me find that new hosts take effect correctly.
Additionally, if you are running multiple versions of OS (windows 7, vista or windows 10) in your system, make sure you edit the running drivers\etc\hosts OS's hosts file and not the idle one.

VirtualBox Shared Folder Not Accessible By Apache2

I know there are a lot of posts on this issue but none of them address the issue I'm having. I am trying to set up a virtual machine following a tutorial on Lynda.com.
Host is a Surface Pro 2 running Windows 10, guest is Virtual Box 5.0.4 with Ubuntu 14.04.3 LTS. People have had a lot of issues with VirtualBox on Windows 10 but mine installed just fine, I have made it all the way to installing Apache, MySQL etc and I'm able to access the Apache2 server status page on my local browser. I don't seem to be having any port issues and I've followed the tutorial's instructions which were step by step.
The issue I'm having is that I can't access the shared folder. I'm ready to configure PHP and I can't access a file placed in the shared folder, even though I've followed all the directions exactly. The shared folder shows up in the VM manager console with the correct path, but when I place a file in the shared folder and try to hit it through the browser on the host machine I get a 404 error. I've gone over the steps to configure the apache server several times, and it looks like I have everything correct:
**blakers**#sandbox:~$ cd /media/**sf_vbsandbox**
blakers#sandbox:/media/sf_vbsandbox$ id
uid=1000(blakers) gid=1000(blakers) groups=1000(blakers),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),108(lpadmin), 109(sambashare),**999(vboxsf)**
blakers#sandbox:/media/sf_vbsandbox$ **getent group vboxsf
vboxsf:x:999:blakers,www-data**
This is from sites-available/vboxsf.conf:
<VirtualHost *:80 *:8282>
ServerName sandbox
ServerAlias *.dev
LogLevel info
ErrorLog ${APACHE_LOG_DIR}/dev-error.log
CustomLog ${APACHE_LOG_DIR}/dev-access.log combined
RewriteEngine On
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /media/>
Order allow,deny
Allow from all
Require all granted
<Location /server-status>
SetHandler server-status
Order allow,deny
Allow from all
Require all granted
</Location>
UseCanonicalName Off
VirtualDocumentRoot /media/sf_%1
</VirtualHost>
Any help would be awesome!!
hi the problem is in this line :
VirtualDocumentRoot /media/sf_%1 , change this folder to be named like the folder that you are sharing. if its called "vbsandbox" then sf_vbsandbox.
you can confirm by:
ls -la /media/
then the folder name will be there.
you will have to restart apache at the end
sudo service apache2 restart

Cannot access XAMPP (1.7.3) from my local network

I am running XAMPP 1.7.3 on windows 7. My problem is that when I try to access my server (localhost) from another computer, the server does not respond. For example, [on my computer] when I type in 'http://localhost', my pages come up. However, when I try accessing 'http://192.168.0.102' from my computer, nothing happens. When I type in my external IP, nothing shows up, but when add HTTPS to the external IP, my Linksys WRT54GS config page shows up, asking for a password. I have already tried port forwarding and a local "static IP", and no luck, other than my local IP never changing. Can anyone help me?
Here's how I have my XAMPP installation configured. Maybe it will work for you.
Open C:\xampp\apache\conf\extra\httpd-vhosts.conf
Add a VirtualHost block for each site you are running:
Apache config
<VirtualHost *:80>
ServerAdmin webmaster#localhost
DocumentRoot C:/path/to/website/files
ServerName exampledomain.dev
<Directory "C:/path/to/website/files">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Add a line to your hosts
127.0.0.1 exampledomain.dev
On the connecting computer's host file:
192.168.0.102 exampledomain.dev
You can easily access your hosts file by using ctrl+r and running
notepad %SYSTEMROOT%\system32\drivers\etc\hosts

Resources