François Lacruche Posted January 10, 2024 Share Posted January 10, 2024 (edited) Hi. Still quite new to processwire and general web developement. After working on localhost for a while, I wanted to upload my site to my live server. But I forgot to remove processwire-master folder from the structure as I installed my processwire profile on my live database (I'm not even quite sure when I should have done that - just after unzipping processwire-master to my root ?). Anyway now I'm stuck with that and even though I could probably install again I feel like this could be somewhat of a learning experience. So how can I move cleanly and properly my site back to the root, and removing pw-master in the process ? I've done the obvious which was, well, just moving the thing back 1 step in the folder structure. But exepectedly, I couldn't access the admin anymore because the url was now wrong, and my ProForm was also missing from the homepage (404). I've tried looking into existing forum posts with little success as I'm not too sure of how to describe my issue other than the title of this post. Please excuse my poor level of technical skills, I come from the design side of things and many things are still black magic to me ? Edited January 10, 2024 by François Lacruche marked as solved Link to comment Share on other sites More sharing options...
Gideon So Posted January 10, 2024 Share Posted January 10, 2024 Hi @François Lacruche, Just move the processwire-master out of the webroot folder of https://www.domain-name.com. Then move EVERYTHING inside the processwire-master folder to the webroot folder of https://www.domain-name.com. This should work. Gideon 1 Link to comment Share on other sites More sharing options...
François Lacruche Posted January 10, 2024 Author Share Posted January 10, 2024 Hey @Gideon So, thanks for your answer Well I thought that's what I had done in the first place, but I did it again following more precisely what you described and it produces the same result : 404 not found on the the domain-name/processwire admin, and 404 on the form (embed). I downloaded the processwire-master folder entirely, then deleted it from the public_html webroot, then reuploaded only the contents it (site, wire, etc). I also tried just moving the processwire-master to the ...I guess server root ? (1 folder up from public_html) then moved everything inside back to public_html. Same result in all cases. Did I misunderstand your directions ? Link to comment Share on other sites More sharing options...
monollonom Posted January 10, 2024 Share Posted January 10, 2024 When moving out / back in the files did you make sure you moved the .htaccess (the one in the PW’s root directory) file as well? You can easily forget about it as it can be hidden by default. 1 1 Link to comment Share on other sites More sharing options...
François Lacruche Posted January 10, 2024 Author Share Posted January 10, 2024 Ohhhh jeeez that might have been it. I ended up just installing PW again because I had to move on with the project. But I was moving the files using cpanel's file explorer (where .htaccess is hidden) and not filezilla (where it's visible). I'll mark this as solved because this is 99% it even though I moved on and can't fully confirm. Link to comment Share on other sites More sharing options...
virtualgadjo Posted January 11, 2024 Share Posted January 11, 2024 hi, honestly, i think you shouldn't have moved anything... nor shouldn't ask pw to do eveything ? the simpler way to do this would have been in you cpanel to change the domain path and having it aim at the folder in which you had your pw installed only thing to do, important one actually, in your config.php file, search the line that looks like $config->httpHosts = array('www.domain-name.com/processwire-master'); and change it to $config->httpHosts = array('www.domain-name.com'); if your don't, things will work on the front side but you'll have bad surprises if you try a previex from the admin same thing when you have a domain and a preprod subdomain, you don't have to move anything to set the preprod to be the live domain, instead you just change the domain path and this line in the config have a nice day 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