Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • Like 1
Posted

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 ? 

  • Like 3
Posted
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. 

  • Like 1
Posted
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. 

  • Like 1
  • 2 months later...
×
×
  • Create New...