# Installation setup looping

**URL:** <https://forum.phpvms.net/t/installation-setup-looping/14132>\
**Category:** Help and Support\
**Created:** [June 25, 2025, 9:26pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132 "2025-06-25T21:26:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 25, 2025, 9:26pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/1 "2025-06-25T21:26:15Z")

</div>

I’ve managed to hurdle plenty of obstacles to get the installation working, and just when I thought I’d succeeded, I get to the last page of the install process, fill in my superadmin details and hit next, only to be taken back to the “Installer Requirements” page???

If I then run through the process again, when I get to the User and Airline setup page, it wont accept the ICAO or user&nbsp; email as it exists, so I know the setup worked.

&nbsp;

How to I clear the flag to tell it that the install is complete?

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 27, 2025, 5:42pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/2 "2025-06-27T17:42:54Z")

</div>

Have you tried going to the site to see if the site actually got installed? Also what version are you trying to install?

---

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 28, 2025, 7:55pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/3 "2025-06-28T19:55:33Z")

</div>

What do you mean? The installer is the site… If I navigate to my server address ([http://myserver/index.php](http://myserver/index.php)), it redirects to the installer page ([http://myserver/index.php/system/install?step=requirements](http://myserver/index.php/system/install?step=requirements)), as it should when you first run it. Problem is, I’ve completed the installer and it still loads that page. I’m guessing there’s supposed to be a flag of some sort (database entry?) that tells the framework to load the index.php page instead of the installer once you’ve set it up (like I have)..

&nbsp;

I’ve installed the latest version 7.0.4, have PHP 8.4.8 installed.&nbsp;

---

<div class="post-metadata">

**Author:** ![ProAvia](https://forum.phpvms.net/user_avatar/forum.phpvms.net/proavia/32/135_2.png) [@ProAvia](https://forum.phpvms.net/u/ProAvia)\
**Post date:** [June 28, 2025, 8:03pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/4 "2025-06-28T20:03:19Z")

</div>

Try with php 8.2

Do a fresh install - new database and downloaded zip file.&nbsp;  
&nbsp;

Did you use install option 1 or 2 ?

&nbsp;

Let us know the outcome.&nbsp;

---

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 28, 2025, 9:09pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/5 "2025-06-28T21:09:05Z")

</div>

I’ll have a go with PHP 8.2… It’s my own webserver so a direct upload..

---

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 28, 2025, 11:12pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/6 "2025-06-28T23:12:28Z")

</div>

Ok, I’ve uploaded the latest Dev version from&nbsp;[https://phpvms.cdn.vmslabs.net/phpvms-latest-dev.zip](https://phpvms.cdn.vmslabs.net/phpvms-latest-dev.zip)

&nbsp;

I now get this when trying to setup the DB (dependancy page is all “ok”'s):

&nbsp;

Couldn’t write .env file. (ErrorException: file\_put\_contents(/var/www/html/mysite/.env): Failed to open stream: Permission denied in /var/www/html/mysite/vendor/nwidart/laravel-modules/src/Support/Stub.php:135 Stack trace: #0

&nbsp;

I’ve set all folders from /www/ to my admin user and chmod 775. Files are 664 for the most part. I had to set bootstrap and storage to 777 to get things to work so I’m not sure how safe that is but still I’m getting the above permission error? As a test, I set every folder and the Stub file in the path above to 777 and I still get the same perms error so I’m clearly missing something?

---

<div class="post-metadata">

**Author:** ![PaintSplasher](https://forum.phpvms.net/user_avatar/forum.phpvms.net/paintsplasher/32/1166_2.png) [@PaintSplasher](https://forum.phpvms.net/u/PaintSplasher)\
**Post date:** [June 28, 2025, 11:34pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/7 "2025-06-28T23:34:56Z")

</div>

Do not use any dev version, take the current release:&nbsp;[https://github.com/phpvms/phpvms/releases/tag/7.0.4](https://github.com/phpvms/phpvms/releases/tag/7.0.4)

Are you using a self-home server setup?

---

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 29, 2025, 2:38pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/8 "2025-06-29T14:38:59Z")

</div>

Right… cracked it after a little permission tweaking and lots of cache clearing to get the installation completed, but now I get a 500 error after authentication.

I can navigate the public pages before logging in to the site but when I login, I get a document expired error, and then a refresh redirects me to dashboard but with the 500 error. I’m sure it’s a permissions thing so it would be helpful to have a rundown of which folders need which permissions across the board.&nbsp;

&nbsp;

Not a home server no. I have rented rack space

---

<div class="post-metadata">

**Author:** ![ukvirtual](https://forum.phpvms.net/user_avatar/forum.phpvms.net/ukvirtual/32/3040_2.png) [@ukvirtual](https://forum.phpvms.net/u/ukvirtual)\
**Post date:** [June 29, 2025, 5:09pm UTC](https://forum.phpvms.net/t/installation-setup-looping/14132/9 "2025-06-29T17:09:40Z")

</div>

Ok, realised I hadn’t set the DB users up correctly and then deleted them for security, breaking things. I’ve got everything working now so I can crack on. I still get a document expired page after login but a refresh fixes it so it’s either a cache issue (will try clearing browser now) or a cache permissions issue I need to locate and sort.
