Laragon - pretty url for one app does not work - php

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.

Related

Xampp Settings for localhost

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 :)

WordPress on localhost can not be reached

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.

How can I see phpmyadmin with XAMPP?

I have installed XAMPP in a virtual machine with VirtualBox. I run both Apache and MySql and there aren't any errors.
I can access phpmyadmin from this virtual machine but if I try to run it on the real machine, I can't get it.
I tried to put http://IP of the virtual machine/phpmyadmin but it doesn't work.
If I put only http://IP of the virtual machine I can see a webpage in which it says "It works".
If I try to use http://localhost in the virtual machine I can see a page in which I see "XAMPP" and where I can choose the language in which I want to use it.
I want to use phpmyadmin from real machine.
The screen you get is the real (splash) screen choose your language from there you will be routed to make the basic setup options, then you will see the phpmyadmin link under the subheading "Tools", select it and see what the link is for you
Create a host only network in virtualbox. Configure the network in your guest machine. Then using IP of guest in the host only network
try http://IP/phpmyadmin . It will work if you have installed it correctly.
as you are working on Windows you might have to configure your host file and allocate a different ip for your vm then add a new alias(or change your alias) in your http-xampp.conf
Finally, I realized that I had installed Apache 2.4 in my real machine so the main page that I saw before and could see this: "It works" was from this Apache.
I solved it uninstalling Apache, and now it works perfectly.
Thanks all of you for your answers!

Make Multi-domain with Xampp Server

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

Localhost or phpMyAdmin not found on server: How to fix?

I followed installation instruction for PHP, MySQL and PHPMyAdmin. But when I tried to access http://localhost/phpmyadmin/, I got this error:
"Not Found The requested URL /phpmyadmin/ was not found on this
server.".
Then I tried to access just the localhost, still I got same error.
How can i fix this problem?
I'm using windows 7 (if this problem has something to do with that)
1 sudo nano /etc/apache2/apache2.conf
2 search insert: "Include /etc/phpmyadmin/apache.conf" at the bottom of file.
and restart apache2
sudo /etc/init.d/apache2 restart
you just need to delete cookies from your browser
press (ctrl + shift + delete) then
time range to clear : Everything
check -> Cookies then clear now
done.
There really isn't enough information to be able to give you a reasonable answer.
First check that your Apache is running. Goto your start menu and type services.msc into the text field.
Fairly high towards the top of the screen you will see ApacheX.X
See what the status of the service is. Try double-clicking on the Apache service and pressing Start if the service isn't running. If it has troubles starting you will get a message telling you the service couldn't be started.
I was just having this problem and i've come across an easier solution:
left click on the wamp tray icon
apache>
apache modules>
check the 'rewrite module'
bingo!
I just finished installing xampp 1.8.2 on WinXP XP2 machine and got same error show up on my Firefox 24.0 browser:
xampp Not Found The requested URL /phpmyadmin/ was not found on this
server.
I solved this problem by changing the proxy of my firefox browser, go to menu tools-Option find tab Network, click button settings. Fill the text box below No Proxy for with localhost.
In my case then it looklike:
192.168.1.0/24, localhost
Then press Ok, then Ok again.
Try now typing localhost/xampp then it should show Welcome to XAMPP for Windows!
Note: to change proxy for other browser may differ, check your browser help about how to change proxy.
Hope this help.
Most likely it is the port conflict for apache server, by default is must be using port 80. You can goto apache configuration file, http.conf and change the port to a different one like: Listen 0.0.0.0:10021
This solved my issue.
If using wamp, you can right click on wamp -> apache -> Use port other than 80, give a port number. Restart all wamp services.
If you are not able to access localhost :
One possible reason might be is your apache server is not started. Go to start menu of your computer and search services, open it, find Apache, start the program.(Considering all the configuration of PHP and Apache has done correctly)
If you are not able to access localhost/phpmyadmin :
First of all, add phpmyadmin folder to your working directory. Download it from https://www.phpmyadmin.net and unzip it. Add the folder to your working directory and change the name to phpmyadmin. Now you can access localhost/phpmyadmin. You will see a login page of PhpMyAdmin application. If you are seeing file directories instead of the login page, then go to your apache server's httpd.conf(apache/conf/httpd.conf) file. Edit it and change the index.html of DirectoryIndex to index.php
<IfModule dir_module>
DirectoryIndex index.php
</IfModule>
It also could be because you have changed the directory name, where the phpMyAdmin server sits. make sure the directory/folder name is correct and matches with the locations you used for Localhost to set up.
Also, make sure you have set up MySQL server.

Categories