ksea Posted October 19, 2011 Share Posted October 19, 2011 Hi, I've just installed ProcessWire for the first time, and got to the Home Page, but all links beyond this, including the Admin page, give me a 404 error. My setup is a local install of W2K3 running Apache, which is using Virtual Hosts. Mousing over the Home Page links I can see that these're pointed correctly ie sitename/link-name. I'm not an Apache expert, but I've got another CMS running successfully from this setup, it's just ProcessWire giving me this problem at the moment. This looks to be a similar problem to slabbe's 'Login after installation' - http://processwire.com/talk/index.php?topic=38.0, but there's no clear resolution to this that I can see (though I've tried the .htaccess mods, to no effect). Any help with this would be greatly appreciated... ksea Link to comment Share on other sites More sharing options...
ryan Posted October 19, 2011 Share Posted October 19, 2011 It sounds to me like Apache might not be using your .htaccess at all. One way to tell is to edit your /.htaccess file and type a bunch of random characters at the top, like "abcdefghij", save and try to load your site in the browser. If you don't get a 500 error from Apache, then that means it's not reading your .htaccess file. If this is the case, find your apache config file (httpd.conf) and locate the VirtualHost entry for the site PW is running on. If you see an "AllowOverride None" or AllowOverride anything, change it to "AllowOverride All". Save and restart Apache and Apache should start reading your .htaccess file. Link to comment Share on other sites More sharing options...
ksea Posted October 20, 2011 Author Share Posted October 20, 2011 That fixed it Ryan...thanks very much. Just to help anyone else, what I did was I changed the 'default' Directory directive 'AllowOverride None' to All in httpd.conf, and this gave the 500 error when using a .htaccess with nonsense text at the top. I then reverted .htaccess, restarted Apache and voila, all links from the Home Page were working. As I said I'm running other CMSs as Virtual Hosts, so to keep this change local to ProcessWire I reset the httpd.conf 'AllowOverride All' back to None, and added 'AllowOverride All' to ProcessWire's httpd-vhosts.conf Directory section, and after restarting Apache, all's working fine. Once again, thanks for your help. Link to comment Share on other sites More sharing options...
ryan Posted October 20, 2011 Share Posted October 20, 2011 Great, glad that did it and thanks for the follow-up. 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