To make a domain "abc.ebizbiz.com" in Xampp, we did like this:
1/ Add one line in the host file
127.0.0.1 abc.ebizbiz.com abc
2/ Add these lines in File httpd-vhosts.conf
DocumentRoot /opt/lampp/htdocs/abc
ServerName abc.ebizbiz.com
3/ Then Stop and Start Xampp
4/ Input "abc.ebizbiz.com", we can have got a Website
And if we do with other domain "cdef.ebizbiz.com", We do the same step 1,2,3.
But we have got problem with Step 3. If we Stop and Start Xampp, all current Website are running on this Server Xampp will be died.
So, is there any ways to add more thing or make changes with a config file, but don't need Stop and Start Xampp? We are working with a live Server. Many websites are using on it. Can't Stop Server, this process will make all Website died in small time.
Or any solutions to make multi domain the same with above way? Maybe not with Xampp...
Thanks for your support.
If you are trying to set up multiple virtual-hosts then you may find the following article helpful. It is for WAMP. But the procedure may be same for XAMPP.
http://www.codeforest.net/multiple-virtual-hosts-in-wamp
Related
After enabling the auto virtual host I wanted to try pretty url for my current project. Problem is it first showed index of/ of the project and after trying some solutions it now shows "This site cannot be reached!" error. The pretty url feature wotks withother projects.
What I tried:
.restarting laragon and pc
.enabeling nginx
.renaming the project
.clearing something in my apache server
Any suggestion?
Thank you in advance!
what i do is :
a. open laragon > menu > apache > sites-enabled > Delete all [auto]
b. if you are using ur own computer, please set Open as administrator to Laragon
c. make sure auto virtual host is checked on laragon
d. last, check your host file, don't forget to un-check 'Read-Only' options
For me, I need to remove the 'Read-Only' option of hosts file in C:\Windows\System32\drivers\etc. I'm using Windows, obviously.
I cant see my xampp settings: using this URL http://localhost/xampp/
This is the result im looking for:
I dont know why but if i look at examples, everyone's URL looks like http://localhost/xampp/ if i use this Url i get a page saying:
Object not found! The requested URL was not found on this server.
The directory is located in C:\xampp, and if i just add http://localhost/ as domain i get the tree structure of everything within C:\xampp\htdocs.
Also using Xampp v3.2.2 , if im in control panel and click on the Apache Config tab it open my file structure as mentioned above everything within C:\xampp\htdocs.
I just want to mention im using Windows, not Mac, but i meen both windows and mac has these Apache settings afcourse, i just dont get it how i cant find it using http://localhost/xampp/.
Apache & MySQL is switched on.
What i think could be the problem:
Could it be that im missing the /xampp directory within the /htdocs directory ?
Im not sure if there should be a xampp directory in htdocs but its the
only thing that makes sense?
Possible reason: Something is running with port 80
when you run Xampp, check the apache port no. ex: if it is displaying port 8012
then your url is http://localhost:8012/dashboard/
Check Directories for Xampp
Xampp directories.
more about this topic
For check all dependencies in the : httpd-xampp
The only reason i see is the xampp file should be located in the htdocs folder at least that is how i have it.
However i do not think that this will cause a problem for you in developing anything.
Hope this was helpful :)
I am using wamp to host a local version of my WordPress site. It was working gine until I restarted my computer and now I get this error.
This site can’t be reached
The connection was reset.
I tried restarting the services, and creating a new copy of this site under I different folder and the error still persists. My other non WordPress sites work fine.
Not sure what is going on so any suggestions would be great.
If you've moved your site to a different folder then the root has probably changed. Go to Preferences > Web Server and click on the folder next to Document Root, and navigate to the root directory that has your site then click on Select.
Also, make sure Apache and MySQL servers are running. Hope this helps.
You might have changed your port number from default port number.
Open with the port number that apache server is listening.
In your browser give "localhost:portNumber/WordPress"
Example: localhost:80/wordpress or
localhost:8080/wordpress or
localhost:8081/wordpress.
You Can check your port number from apache part config file.
Watch this video: https://www.youtube.com/watch?v=blmOFr8uZQI
I think its plugin issue from the codebase. Just rename the plugins name one by one in (wp-content/plugin/) folder and check.
Before starting I installed XAMPP. Now am trying to use nginx instead of Apache. For that I did the following steps:
Installed nginx (1. c:>cd nginx 1.8.0 2. start nginx). installed successfully.
Now am not able to load php files and localhost/phpmyadmin.
There are a handful of reasons for this behavior. Could you run through some of the following options? If they don't outright solve the issue they should provide greater context to help us resolve this.
What happens when you attempt to pull up the "localhost/phpmyadmin" website? If it attempts to save a file then nginx may not be properly configured to interact with the PHP interpreter to process the PHP code and provide it to the web server (nginx).
In the directory of your nginx installation there should be a "sites-available" directory containing a plain text "default" file. In this server you should find a declaration of a server block which, in turn, contains an identifier for the document root referred to as "root." Does this point to the directory containing the phpMyAdmin source code?
Are you able to pull up just "localhost"?
If option 3 is unsuccessful you can run something like "netstat -na | findstr /c:':80'". This will tell you if nginx is actually listening on port 80.
If option 3 is unsuccessful but option 4 shows results, you may want to pull up the listening IP address (or your assigned/static IP if it shows 0.0.0.0:80) in your web browser. For example: "192.168.1.100/phpmyadmin"
I hope this triage helps find the underlying cause of your issue.
I open the apache with Xampp from the IP direction and it works ok, that is in localhost it not work and in IP direction work fine.
I'm working on a project that has a single domain on a WHM Server. So we access through an IP to the Wordpress Installation that is on the only account (Cpanel): server/~account1/.
To be more clear, when we access to http://xxx.xxx.xxx/ we were actually accesing to http://xxx.xxx.xxx/~account1/.
After a server migration, however, this stopped working, so we are trying to make it work again. I'm trying to figure out what is wrong here.
Now when we browse to http://xxx.xxx.xxx/ we get the default webpage http://xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi, but we can access the real directory by typing the /~account1/.
Can you help me to figure where to start looking or what could be the problem? Could i fix it by editing the httpd.conf?
I'm a programmer but not an expert of server configuration so I'm kinda lost.
httpd.conf would be the place to start.
You are looking to check the Virtual Hosts setings, often in the above file or conf/extra/httpd-vhosts.conf
http://httpd.apache.org/docs/2.2/vhosts/examples.html
If all else fails, try running the httpd.conf rebuild script as root:
/scripts/rebuildhttpdconf