Page 1 of 2
Webserver + php 8.1 - no session start function available?
Posted: 12 Dec 2023, 09:10
by Zach83
I can see through the php -i that session support is enabled, however, I am getting an error when I call the built in php function session_start().
This makes no sense to me, as the previous 8.1 webserver I was running this website on had no problem running it.
I am trying to make my tnas the developmental server for my webdesign, and using my ubuntu server as my live site host.
So, to not have session_start, which is a php built in function, available on the tnas webserver is very odd.
Has anyone else figured this out?
I seen that another person had asked this question, but the response from tnas was bad and offered no actual solution.
Re: Webserver + php 8.1 - no session start function available?
Posted: 12 Dec 2023, 19:05
by TMzethar
You can add the extension modules you need in WebServer PHP Edit Extension
Can this solve your problem?
Re: Webserver + php 8.1 - no session start function available?
Posted: 13 Dec 2023, 02:09
by Zach83
No, as there is no session extension for download.
Additonally, with php -m, it shows that sessions is active.
No idea why this is doing this, as I have installed apache on several systems and never encountered a session issue...
Re: Webserver + php 8.1 - no session start function available?
Posted: 13 Dec 2023, 17:46
by TMzethar
Sorry, after confirmation, some modules are missing from the PHP version installed in the application center. We will fix this issue in future versions. You can temporarily use the default PHP 7.4.
Re: Webserver + php 8.1 - no session start function available?
Posted: 15 Dec 2023, 02:27
by Zach83
That is unfortunate.
I dont want to use 7.4, so therefore, I will not be able to use the tnas for a webserver at the moment. Very disappointing to see this occur, but I understand that things can happen like this. Hopefully you get it resolved soon.
Re: Webserver + php 8.1 - no session start function available?
Posted: 15 Dec 2023, 18:58
by TMzethar
We will resolve it as soon as possible.
Please pay attention to subsequent app updates.
Re: Webserver + php 8.1 - no session start function available?
Posted: 22 Jan 2025, 01:55
by tranqui69
2 years later and still php 7.4
Re: Webserver + php 8.1 - no session start function available?
Posted: 25 Feb 2025, 17:24
by Niyi
I found that when I installed PHP 8.1 and then deleted all reference to PHP 7.4 from the Web Server then restarted the NAS I was able to at least get PHP Version 8.1.11 working.
Still no session_start() unfortunately, which seriously inhibits using the Web Server for PHP development.
Also I doubt that the default PHP7.4 has sessions functionality either. I suspect it just does not error as seriously as PHP8.1.
Re: Webserver + php 8.1 - no session start function available?
Posted: 25 Feb 2025, 17:58
by TMzethar
Niyi wrote: ↑25 Feb 2025, 17:24
Can you please tell us the NAS model and TOS version?
Re: Webserver + php 8.1 - no session start function available?
Posted: 26 Feb 2025, 05:14
by Niyi
TMzethar wrote: ↑25 Feb 2025, 17:58
Niyi wrote: ↑25 Feb 2025, 17:24
Can you please tell us the NAS model and TOS version?
Hello,
It is NAS Model F4-423
TOS Version 5.1.145-00012