I have windows 10 and wamp installed. I installed a cakephp copy using composer. It is www folder of wamp.
I am able to see localhost page.
But when I click on the project folder icon, I get the error: This site can't be reached.
What to do?
I found the answer.
If your "My Project" folder exists in "wamp/www/" and if you can see the localhost home page after starting wampserever correctly, and still you cant access your projects, then simply go to www folder, open index.php and search for $suppress_localhost and set its value to false. Restart wampserver, go to localhost and try to access your project.
Related
Recently, I made a website using react and hosted on Hostinger and it worked properly. Then I shifted to Namecheap for some reason. And the same build file(which I uploaded on Hostinger) worked in Namecheap too. But when I re-upload my new build file with some update of my website, it crashed. It show's only blank page. Sometimes it working in some browser and sometimes not.
The build file which I re-uploaded on Namecheap working on netlify server (easytopupbdtest.netlify.app) but not on Namecheap. Then I thought that Namecheap has problem maybe, that's why my application is not running. Then again I changed my IP address and nameservers and pointed to the Hostinger. But it also not worked! I mean, the same build file which worked before I shift to the Namecheap.
Image of the main website when it is hosted on Namecheap server:
I have Deployed my react app in the cPanel server. In the route directory of cPanel i.e. public_html I have created another directory called help and placed my website zip files here. If I hit the domain address(http://mywebsite.com/help/) through the button it works fine but if I directly hit the domain(http://mywebsite.com/help/) in google it is showing 404 not found on the server. Images are attached for reference.
If i place my build files in root folder i.e.public_html it is working fine but if i use any sub folder in the root then it is throwing 404 error while refreshing the page.
cPanel 404 Error:
cPanel Folder Structure:
In which folder should I put phpmyadmin folder in aegir system?
In a old project I remember an expert developer used to put the phpmyadmin folder under the folder /var/aegir/hostmaster and it worked (through the url panel.example.com/phpmyadmin).
I am now trying same thing but it doesn’t work. Should I modify some file or some setting to “read” the folder hostmaster? (I have tried to change permission but it didn’t help).
In this new server I am using Nginx.
In the old one (when everything was working) there was Apache.
It can be a problem of configuration of Nginx?
Thank you
I currently now deploying my project to our server, before i do the deployment I have step to do before i send it to our server.
First on my cmd I type npm install composer.
Second on my cmd I type npm run production.
Third i check first my project to determine if the status of production of react logo on the top of browser turning to blue in which finally my project now on production.
Finally I zip my files and send it to the server.
Those are the scenario that I do before I deploy my project in production mode.
however in my case I have problem when i browse my application URL. ex. www.mylaravelreact.com the directory of my files is shown to my application.
I read some question regarding problem about why does my site say index of and list my files https://www.webhostinghub.com/help/learn/website/website-help/why-does-my-site-say-index-of-and-list-my-files
In my Root Folder i have server.php
In my Public Folder i have index.php
Why does my site look this when i open it.
I am running WAMP and it runs correctly. I installed composer apparently successfully, and also installed Cake with no errors. It created a cquiz project. When I go to the URL in my browser I see all of the text for the default cake page, but none of the css or images. It is looking for files, for example, /cquiz/css/cake.css but when I open the cquiz directory I don't see any folder called css. What did I do wrong?
You need to set your documento root to cquiz/webroot.
If you are using Apache (I assume this because you said you are using WAMP) you have to edit the httpd.conf file and change the document root to your webroot directory.
Otherwise if you cannot or don't want to change the document root (let's say for example if you have another web app in the same server) you can move all the files inside webroot to your root directory and edit the index.php (which you moved from webroot to root directory) and change the require webroot to fit the new location.