Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

DSM 7.2 web station undefined array key

5
0
NAS
Synology DS-720+
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
Hello, Although I have been a Linux user testing and using Debian and various distributions along the way, the Synology DMS has me slightly confused.

I was working on Web Station in the shared web folder using Php and MySql and the programs were working nicely even some through Task.
Yesterday, I updated some programs and today nothing works. The index.php with menu links displays undefined array key for each link and does not execute.
I transferred the programs to the DMS using Total Commander via the SMB network instead of FTP.
I have searched everywhere but don't find any info related to this.

The Web Station is set to use Apache 2.4 and Php 8.0, and is only being used locally.

Questions:
Using File Station and clicking on the folder Web, it has my primary admin acct as the owner and users as the group.
Is this correct? Why isn't the owner HTTP?

Using putty and sudo -i
the web folder is shown as a directory, d--------+ with owner as root and user as root
the folders, files, and sub-directories in Web have permissions as drwxrwx---+ and -rwxrwx---+
It appears that they
Are these correct? If not, what is the best way to set them?
Will these changes be permanent and reflected through the Control Panel -> Shared folders or File Station?

For ACL, my secondary login is also an admin and I have read/write for everything.
So what could be causing this situation?

I look forward to additional questions.
 
Welcome to the forum.

I updated some programs and today nothing works.
Maybe add some details on what was updated, and from what.

A while ago Web Station was updated and I lost the ability to run my Perl CGI scripts in anything but the main /web site. I think that was Web Station version 4 major update / DSM 7.2.

Have a search through this Web Station forum other threads on this issue. Mine is here,m and I still have to hack Web Station:

The template config files may not always include directives for your index page extensions.

Another thought is to check the Script Language Settings profile you are using: there are a lot of options in them. Or try recreating the profile.
 
Upvote 0
Fredbert, Thank you for sending the info on Apache 2.4. I added the missing lines which do not solve the problem but this does not answer my questions.

The files I updated were Php scripts that had nothing to do with the Web Station operation.
 
Upvote 0
OK. It was more that it could be something within the template files that have changed between Web Station versions. As I alluded to before, you didn't say anything about what you updated: DSM versions, packages. It could also be the PHP profile that is assigned to the virtual host, if you are using them.
 
Upvote 0
I didn't update any DSM packages.

Here is an odd clue, I decided to try entering manually a link to one of my programs in the browser and it executed properly. I decided to try some of the links from my menu page the same way and they work.
So it is only the index.php is not working in the /web directory but the page appears normally as if it works.

The only Php versions that I have loaded are 7.3 and 8.0 as that is all I need for now. Maria DB 10 is running and working as is phpmyadmin.

This is why I believe it has something to do with owner, group, and permissions.
I am surprised that no one else has had this problem.
 
Upvote 0
Last edited:
I'd focus on the ACLs that are being abpplied to /web and inherited by its folders and files. Is 'http' user and group assigned access. I see 'http' group has read's tranverse right, and 'http' user has full read rights. Inherited under /web I see files/folders have the 'http' user read permission.

I didn't update any DSM packages.
Your original "I updated some programs and today nothing works" was assumed by me to mean I updated DSM/packages and now my thing that was working has stopped. So you meant that what you'd changed was the web site scripts/stuff and/or third party services they use.
 
Upvote 0
This is the ACL from the File Station Web folder.

Synology-File-Station-permissions-for-web-folder-2024-10-31_14-47-46.webp
 
Upvote 0
Does http group need write access? I'm trying to think back when it was discouraged to provide the web server anything but read access. Of all the shared folders I would lock down privileges most on /web, to only those users and groups that need access, and even then write access to the subset of those. Why would Everyone and users need access?

This probably won't fix your problem, but it seems overly open.
 
Upvote 0
I will check using my Php programs and remove it if it doesn't.
I thought that other users on this forum might have some solutions, should I post the info on the Synology forum?
 
Upvote 0
I will check using my Php programs and remove it if it doesn't.
I thought that other users on this forum might have some solutions, should I post the info on the Synology forum?
OK. Sure there are other places that might get a result. Hopefully you will, Good luck!
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Popular tags from this forum

Similar threads

Thank you very much for your response, but I uninstalled WebStation/Apache 2.4 then reinstalled and...
Replies
2
Views
1,498
Well if you want to build it as pure and as minimal as you need, start with the default 7MB one :D. Alpine...
Replies
3
Views
493

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top