anderson Posted January 13, 2019 Share Posted January 13, 2019 Hi, Just started all this. With laragon, I built a site to c:\laragon\www\, with Beginner profile. After creating several pages, I built another tutorial site to c:\laragon\www\helloworld\, this time with Blank profile. (I used all the same admin and mysql user/pswd as the other site. ) Then I walked through the learning process, planet earth, etc...... everything ok, learning done. But when I got back to the other site, admin login failed, and http://localhost points to that tutorial site. So, multiple sites are not possible with laragon? Is there any way I could fix it ? I don't want to lose those work I did. Thanks. Link to comment Share on other sites More sharing options...
dotnetic Posted January 13, 2019 Share Posted January 13, 2019 Multiple sites are possible with Laragon, but if you use the same database in your site/config.php, well you have the same data in both installations. 1 Link to comment Share on other sites More sharing options...
bernhard Posted January 13, 2019 Share Posted January 13, 2019 Of course it is possible ? Just create a new folder and click reload on the laragon screen. If you enabled https it will even create the certificates for you. And you can even share your site over the web via ngrok instantly (eg for showing your work to clients). But of course you need to create a new database for every project as @jmartsch already mentioned. 7 hours ago, anderson said: Is there any way I could fix it ? I don't want to lose those work I did. Well, I understand you, but those things happen ? But you have to be a little careful about your databases in general. If you mess something up, this can be a real nightmare to recover. I'd recommend you install https://modules.processwire.com/modules/process-database-backups/ combined with https://modules.processwire.com/modules/cronjob-database-backup/ . Then you'll always have db backups in your /site/assets folder. You'd still need to backup your files, of course. I wanted to use OneDrive for that, but it did not work well with laragon (too many files, too slow syncronisation, ...). I'm using GIT now for every project. It's complicated in the beginning, but it's the best solution in the long run. So, if you are willing to learn, there are lots of possibilities ? 3 Link to comment Share on other sites More sharing options...
anderson Posted January 13, 2019 Author Share Posted January 13, 2019 7 hours ago, jmartsch said: Multiple sites are possible with Laragon, but if you use the same database in your site/config.php, well you have the same data in both installations. Thank you, sir. 1 Link to comment Share on other sites More sharing options...
anderson Posted January 13, 2019 Author Share Posted January 13, 2019 2 hours ago, bernhard said: Of course it is possible ? Just create a new folder and click reload on the laragon screen. If you enabled https it will even create the certificates for you. And you can even share your site over the web via ngrok instantly (eg for showing your work to clients). But of course you need to create a new database for every project as @jmartsch already mentioned. Well, I understand you, but those things happen ? But you have to be a little careful about your databases in general. If you mess something up, this can be a real nightmare to recover. I'd recommend you install https://modules.processwire.com/modules/process-database-backups/ combined with https://modules.processwire.com/modules/cronjob-database-backup/ . Then you'll always have db backups in your /site/assets folder. You'd still need to backup your files, of course. I wanted to use OneDrive for that, but it did not work well with laragon (too many files, too slow syncronisation, ...). I'm using GIT now for every project. It's complicated in the beginning, but it's the best solution in the long run. So, if you are willing to learn, there are lots of possibilities ? Thanks for your help. I'll start over and be careful with database. 1 Link to comment Share on other sites More sharing options...
OrganizedFellow Posted March 20, 2019 Share Posted March 20, 2019 I am running 3 separate PW installs using Laragon. Do you still need help with setup? Link to comment Share on other sites More sharing options...
Recommended Posts