Posts

Showing posts with the label Xampp

Apache Virtual Host Always Redirecting To /dashboard

Answer : Put this as the first line in C:\...\httpd-vhosts.conf (and restart the web server): NameVirtualHost *:80 So, it should look like this: NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot "C:/xampp/htdocs" </VirtualHost> <VirtualHost *:80> ServerName walkpeakdistrict.local DocumentRoot "C:/xampp/htdocs/walkpeakdistrict_uk/public" </VirtualHost> I would place all my projects somewhere outside of C:/xampp/htdocs and C:/xampp . Let C:/xampp/htdocs be the standard localhost location, with just two files inside (simple index.php and index.html ), but use another one for the projects. Even better, use another partition, not the system partition C: . Like D:/projects , or so. So, you would have D:/projects/walkpeakdistrict_uk . Good luck. Ok, I'm not sure why this was an issue but it seems to work when I change the virtual host's server name to anything other than ".loca...

Adding VirtualHost Fails: Access Forbidden Error 403 (XAMPP) (Windows 7)

Answer : Okay: This is what I did now and it's solved: My httpd-vhosts.conf looks like this now: <VirtualHost dropbox.local:80> DocumentRoot "E:/Documenten/Dropbox/Dropbox/dummy-htdocs" ServerName dropbox.local ErrorLog "logs/dropbox.local-error.log" CustomLog "logs/dropbox.local-access.log" combined <Directory "E:/Documenten/Dropbox/Dropbox/dummy-htdocs"> # AllowOverride All # Deprecated # Order Allow,Deny # Deprecated # Allow from all # Deprecated # --New way of doing it Require all granted </Directory> </VirtualHost> First, I saw that it's necessary to have set the <Directory xx:xx> options. So I put the <Directory > [..] </Directory> -part INSIDE the <VirtualHost > [..] </VirtualHost> . After that, I added AllowOverride AuthConfig Indexes to the <Directory> options. Now htt...

Apache Is Not Running From XAMPP Control Panel ( Error: Apache Shutdown Unexpectedly. This May Be Due To A Blocked Port)

Answer : There are many possible answers for this problem. The most common and most likely is that you're running another program which is blocking port 80 or 443. If you've installed Skype, then you've found your problem! Change apache's port settings to 81 and apache will work. There's a good tutorial on that To check this you can open up your command line by clicking the start menu, and typing 'cmd', and enter the command netstat -nab this wil return a list of programs that will vaguely resemble this pattern [someprogram.exe] UDP [fe80::numbers:numbers:numbers:numbers%numbers]:portnumber You need to find a line (or lines) ending in :80 and terminate them in order to start apache. If there is no line ending in :80, there are more things you can do. First, navigate to xampp's directory (default is c:\xampp) and double click apache_start.bat. This will open up a comand line and return more detailed errors about why apache can...

Cannot Start XAMPP On Ubuntu 11.10

Answer : This is a peculiar error you will get if you run XAMPP in LINUX. Assumption : XAMPP is unzipped @ /opt/ folder. If you get the error "XAMPP: Another web server daemon with SSL is already running" when you run ./lampp start . Simply follow the steps below to get rid of this error: Open the file /opt/lampp/etc/httpd.conf . Search the Listen 80 and change it to some other port (e.g. Listen 2145 ) (Line No. 40). Open the file /opt/lampp/etc/extra/httpd-ssl.conf . Search the Listen 443 and change it to some other port (e.g. Listen 16443 ) (Line No. 39). Open the file /opt/lampp/lampp Search for the port testport 80 and replace it to testport 2145 . Also change the testport 443 to testport 16443 . (Happens to be the Line No. 197, 214) Now go and run /opt/lampp/lampp start . It should work now. Note: Line numbers may be different. I have similar problem and found the issue caused another service already running on port 443 (SSL). Check running l...

Accessing Localhost (xampp) From Another Computer Over LAN Network - How To?

Image
Answer : Localhost is just a name given for the loopback, eg its like referring to yourself as "me" .. To view it from other computers, chances are you need only do http://192.168.1.56 or http://myPcsName if that doesnt work, there is a chance that there is a firewall running on your computer, or the httpd.conf is only listening on 127.0.0.1 Thanks for a detailed explanation. Just to Elaborate, in Windows, Go to Control Panel -> Firewall, in exceptions "add http and port 80". Then in Services check mark "http (web server port 80)" and "https (web server port 443)" ONLY if you need https to work also. Ok, OK, Close Then go to any computer on network and type http://computer-name (where you change the firewall and has the xampp running on it) in your web browser and happy days :) it's very easy Go to Your XAMPP Control panel Click on apache > config > Apache (httpd.conf) Search for Listen 80 and replace with Listen 8...

Change XAMPP's Htdocs Web Root Folder To Another One

Answer : Open /opt/lampp/etc/httpd.conf change nobody and nogroup <IfModule unixd_module> # # If you wish httpd to run as a different user or group, you must run # httpd as root initially and it will switch. # # User/Group: The name (or #number) of the user/group to run httpd as. # It is usually good practice to create a dedicated user and group for # running httpd, as with most system services. # User nobody Group nogroup </IfModule> to your username and your group Had the same issue and here is what i did: Run this command to stop xampp: sudo /opt/lampp/lampp stop Open /opt/lampp/etc/httpd.conf Change your_folder to the folder you wanna use DocumentRoot "/home/username/your_folder" <Directory "/home/username/your_folder"> Change User & Group value from daemon to: User nobody Group nogroup set chmod to your_folder with this command sudo chmod 777 /home/username/your_folder Save the file and start xampp wi...