Jump to content

Laragon and multiple websites?


anderson
 Share

Recommended Posts

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

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 months later...
 Share

×
×
  • Create New...