Pip Posted August 25, 2022 Share Posted August 25, 2022 Hi guys, Background: I was developing a website. I had some blue screen issues due to a video card issue and decided to format. Prior to formatting, I backed up the SQL script, and files and proceeded. Today: I restored the database (same name). Copied the files into a new folder in the XAMPP htdocs. When I kick in the Apache and database, it says the site is 404. ? Link to comment Share on other sites More sharing options...
DV-JF Posted August 25, 2022 Share Posted August 25, 2022 404 seems strange to me ? normally you would get a 500 if something is wrong with your PW installation. I would try if XAMPP and your setup is working properly by just creating a simple index.html file in your folder and open it in the browser. Personally I've switched from XAMPP to Laragon, which is much more easier to setup. 1 Link to comment Share on other sites More sharing options...
Pip Posted August 25, 2022 Author Share Posted August 25, 2022 40 minutes ago, DV-JF said: 404 seems strange to me ? normally you would get a 500 if something is wrong with your PW installation. I would try if XAMPP and your setup is working properly by just creating a simple index.html file in your folder and open it in the browser. Personally I've switched from XAMPP to Laragon, which is much more easier to setup. I didn't do installation today. I transferred the files. Link to comment Share on other sites More sharing options...
flydev Posted August 25, 2022 Share Posted August 25, 2022 Just a thought before we go further. When is the 404 page displayed? On the index page (frontend) or only the admin page? If it's the second case, the .htaccess file is probably missing or the admin page entered may not be the right one (this can be checked in the database, table pages, id 2, column name) Otherwise, in the first case, check that you uploaded all the required processwire files (at least the index.php which will throw an error if the setup is ok, or as @DV-JF double or triple check your apache configuration on xampp. 1 Link to comment Share on other sites More sharing options...
Pip Posted August 25, 2022 Author Share Posted August 25, 2022 27 minutes ago, flydev ?? said: Just a thought before we go further. When is the 404 page displayed? On the index page (frontend) or only the admin page? If it's the second case, the .htaccess file is probably missing or the admin page entered may not be the right one (this can be checked in the database, table pages, id 2, column name) Otherwise, in the first case, check that you uploaded all the required processwire files (at least the index.php which will throw an error if the setup is ok, or as @DV-JF double or triple check your apache configuration on xampp. Thanks for the input. It occurs when I go to the website http://localhost/folder/ It's the parent for both the admin and site. Link to comment Share on other sites More sharing options...
DV-JF Posted August 26, 2022 Share Posted August 26, 2022 7 hours ago, Pip said: It occurs when I go to the website http://localhost/folder/ This behaviour indicates that something is wrong with the .htaccess file in the root folder. Please check if the file is present in the root folder of the site, if not, you can get a copy here: https://github.com/processwire/processwire/blob/master/htaccess.txt - download this file and then rename it to .htaccess. 1 Link to comment Share on other sites More sharing options...
Pip Posted August 26, 2022 Author Share Posted August 26, 2022 42 minutes ago, DV-JF said: This behaviour indicates that something is wrong with the .htaccess file in the root folder. Please check if the file is present in the root folder of the site, if not, you can get a copy here: https://github.com/processwire/processwire/blob/master/htaccess.txt - download this file and then rename it to .htaccess. Ty will check it out. I copied the previous htaccess. Dunno really what's up with this. Sigh. Link to comment Share on other sites More sharing options...
DV-JF Posted August 26, 2022 Share Posted August 26, 2022 Check also if mod_rewrite is enabled in your XAMPP settings (and if all other requirement are given). To proof you can create a simple info.php file in your root folder containing <?php phpinfo();?> Greets! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now