First Apache wouldn't work with me so I had to change the port number which fixed everything so that is good, but then I went online and found this
"Start Apache and MySQL and go to localhost in your browser (on the same machine as your server). If this is your first time browsing the local site, you should now see a webpage with the XAMPP logo and a choice of languages. Click on your preferred language."
When I type in localhost:8080 (Apache port), it comes up this I have no clue how to make it so I'm taken to the XAMPP Logo where the languages are. -.- Help please.
Try this :
Just create a sample html page in htdocs of your apache folder and try to access it in browser.
If you name it is as index.html, you just have to write localhost in the browser or localhost/.html
This will make sure your server is working.
And in cmd prompt run mysql -u -p status to check the status of mysql that will check whether mysql is working or not.
Related
i downloaded MySQL workbench and the port is 3306 then i runs the x.a.m.p.p and the port is 3306 also i change the x.a.m.p.p port to 3307 and still not working
is their any solution to this
First we need to make sure that you installed XAMPP in proper way. Follow this video about how to prepare PHP environment using XAMPP.
If you followed the steps correctly make sure that both MySQL and Apache servers are running.
Then in XAMPP control panel click on MYSQL Admin. It will open phpMyAdmin and it will show a successful connection to MySQL server. If you noticed any error this means you have problem in your MySQL server.
Also it will be a good help to tell us from there your server type and version and your MySQL workbench version.
I have tried http://localhost/projectname and http://127.0.0.1/project_name to open my Project in LocalHost
but
I want to open this with some other URL so user can not able to know that I have opened with localhost.
Edited:
My Users currently accessing my project with localhost but now i
want to use some static string to open as url. I mean if currently
users accessing project with localhost/proj but i want to do like
staticString/proj Is it possible?
Is there any way to open project with different URL rather than localhost?
Thanks.
You have to Configure first Virtual Host in your XAMPP or any Web server.
After you can use that name instead of Localhost or IP Address.
Follow this link to configure Virtual Host.
http://sawmac.com/xampp/virtualhosts/
and this also
http://foundationphp.com/tutorials/apache_vhosts.php
You can make use of virtual host configuration in your web server.
Edit your hosts file to include 127.0.0.1 thisismyhost.com
Then can should be able to access your project using thisismyhost.com/my_project
I follow solution of accepted answer but I found one tricky Magic solution for that which i can use without any configuration:
You can use yourString.google It will directly open you localhost.
For Example: Open this link in your browser: pratik.google/
if you have installed xampp it will open your localhost
Really amazing magical trick.
I don't know how it works, May be this is functionality of browsers.
I believe what you are looking for is local tunnel
Use node and npm to install it globally using npm install -g localtunnel
then give the port you want to export lt --port <port>
you will get a link you can share anywhere and anyone can access your localhost site. there are multiple ways and options to it. you can view about it - here!
if you change the port you will see the result like this
> http://localhost:5906/projectname/abc.aspx
right click on the project click on properties and there will be one option web in that change the specific port
hope this may help
I've tried downloading apache for my development on Mac OS X (Leopard) from this site:
http://www.techiecorner.com/174/how-to-install-apache-php-mysql-with-macport-in-mac-os-x/
I haven't downloaded php, so I skipped the php checks and right after it finished downloading, and starting the server, I've opended 'localhost' in my browser, and it loaded a page says 'It Works!', so I guess I'm on the right way to using an apache web server.
Now, my questions are:
1. How do I know where is this 'localhost' folder, so I can put there html files and so on?
2. Is it already set that other user can reach my website (once I'll have one under the localhost folder), or do I need to do extra stuff in order to make it so? If this is the matter, what do I need to do more?
Thanks.
from your mentioned site i see that you installed via macports and apache then goes into /opt/local/apache2/.
i think there is an etc directory there, where the configuration is found, in a filed called httpd.conf, there you can find the documentroot directive, which is your 'localhost'folder.
1) it should be /opt/local/apache2/htdocs
2) i guess the default settings of the apache in macports have it listen to incoming requests on all interfaces of your mac, so yes, other users should be able to your website.
ps:
if you're looking for a quick-and-easy method to have a local webserver with php and mysql, i would recommend you take a look at xampp.
So I'm trying to install a local server to experiment on... Tried Wamp which gave this problem in the title (or so I thought).
Instead, I then tried installing Apache, and Xampp. Everything seems fine again. But when I type http://localhost into my browser (firefox, but for what it's worth the same thing happens with IE) it just redirects me to http://anonym.to/.
Anyone know why?
That's some kind of anonymizer site that acts as a proxy server to browse anonymously. You should probably check your /etc/hosts file to see if there is a redirect going on there for localhost or 127.0.0.1.
Either you have an entry in your Windows Hosts file %SystemRoot%\system32\drivers\etc\hosts (entry which you can delete by editing this file) or your browser has proxy settings set (which you can unset).
I decided to learn HTML so I installed apache on windows vista. Everything seems to work fine; when I go to http://localhost:8080 the sample webpage installed by apache shows. Apache is configured at port 8080.
So far so good. Since my DocumentRoot is c:\pub, I made another folder inside, e.g., c:\pub\test. What I'm trying to figure out is why the page at http://localhost/test:8080 cannot load? It has index.html and apache is working fine.
You are specifying port in the wrong location. The format is:
protocol://domain:port/path
So, try:
http://localhost:8080/test
The port goes right after the host: http://localhost:8080/test
try http://localhost:8080/test