How do I run a file on localhost?

Ok, thanks for the more specific info, ppl may remove their downvotes now… What you are proposing is a very common thing to do! You want to run your web application locally without uploading it to your host yet. That’s totally fine and that’s what your Apache is there for. Your Apache is a web … Read more

localhost/xampp/ or http://localhost/index.php can’t be accessed

I am learning server and sql. So I need to install xampp. But unfortunately my localhost/index.php and localhost/xampp not working. I read many questions here stackoverflow but none solved my problem. Here is my httpd-xampp.conf file: This is what I got when I tried to access localhost/xampp/ and localhost/index.php The image is here: Please suggest … Read more

Localhost is not working

If you have defined Virtual Hosts, and thats a very good idea, then you need to define the vhosts name in the HOSTS file. For example, the hosts file: Otherwise windows has no way of knowing where to look for them. Another possibility for localhost not working is a corrupted HOSTS file. Try deleting it … Read more

phpMyAdmin access denied for user ‘root’@’localhost’ (using password: NO)

I am unable to connect to my MySQL in xampp I have this error: MySQL said: Documentation 1045 – Access denied for user ‘root’@’localhost’ (using password: NO) mysqli_real_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the … Read more

How do I use MySQL through XAMPP?

XAMPP only offers MySQL (Database Server) & Apache (Webserver) in one setup and you can manage them with the xampp starter. After the successful installation navigate to your xampp folder and execute the xampp-control.exe Press the start Button at the mysql row. Now you’ve successfully started mysql. Now there are 2 different ways to administrate … Read more