# Server Admin gets an Error (why?)

**URL:** <https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795>\
**Category:** Help! (Home for newbies)\
**Created:** [July 9, 2024, 10:17am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795 "2024-07-09T10:17:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 9, 2024, 10:17am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/1 "2024-07-09T10:17:05Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu Linux 22.04.4 |
| Webmin version | 2.111 |
| Usermin version | 2.010 |
| Virtualmin version | 7.10.0 |
| Theme version | 21.10 |
| Package updates | All installed packages are up to date |

User System Admin User is logged in.  
gone to `Virtualmin -> Logs and Reports -> PHP Error Log`

and gets this Error: `You are not allowed to view this extra log`  
I do not understand why.

 ![error](https://cdn.forum.virtualmin.com/uploads/default/original/2X/0/0f52e61f68d137c81422e477d40dbdf9e0f42c1d.png)

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 9, 2024, 1:49pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/2 "2024-07-09T13:49:49Z")

</div>

The authentic theme seems to throw issues sometimes it maybe worth changing the theme to something else and back again or just clearing the cache IDK, however I have modified the authentic theme to suit myself so this may be irrelevant

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 9, 2024, 2:34pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/3 "2024-07-09T14:34:09Z")

</div>

Tx. sadly cache clear and change of theme to Framed has had no effect.

I have had a look at this VS and (as root) cannot find the PHP log where it is listed under `PHP-FPM Configuration -> Error Logging`  
and checking the configuration manually  
php\_value[error\_log] = the correct location + file name  
and  
php\_value[log\_errors] = On

so at a loss ☹

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 10, 2024, 5:54am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/4 "2024-07-10T05:54:09Z")

</div>

so this is switched on ?

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/d/d5a01d25044c432d101dbf3d0a70733d6f7f76f7.png)  
maybe ,for testing, switch the file & location to to a custom one ? and see if that works.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 10, 2024, 8:12am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/5 "2024-07-10T08:12:01Z")

</div>

> [@jimr1](#):
>
> so this is switched on ?

No

It had already been set as custom because the log had not been visible to the System Admin when he logged in and viewed a sub domain.

hence my manual check above regarding the configuration  
(the php\_value[error\_log] does point to a location + file name that is where the System Admin can see it - but it is not being generated for some reason.

if I set it back to “Default” then I can see it but again if I go to `Manage Virtual Server -> Switch To Server's Admin` it is no longer visible and I get the same error as the user reported

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 10, 2024, 9:21am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/6 "2024-07-10T09:21:54Z")

</div>

> [@Stegan](#):
>
> It had already been set as custom because the log had not been visible to the System Admin when he logged in and viewed a sub domain.

This must be a bug somewhere I have just set a domain as you have set up and also hit the same error maybe one for the [@staff](https://forum.virtualmin.com/groups/staff) to look at

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [July 10, 2024, 2:41pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/7 "2024-07-10T14:41:56Z")

</div>

> [@Stegan](#):
>
> No
> 
> It had already been set as custom because the log had not been visible to the System Admin when he logged in and viewed a sub domain.

How does it set now?

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 10, 2024, 2:48pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/8 "2024-07-10T14:48:43Z")

</div>

> [@Ilia](#):
>
> How does it set now?

Mine is set exactly as @Stegan is set so I can confirm you can not read the php error log of a sub server

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 10, 2024, 3:06pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/9 "2024-07-10T15:06:27Z")

</div>

As far as I can tell after making the setting (as root) to use a configured log it shows the same in the manual configuration as expected but nothing end up there (the log is not even created) **should it?** - there are new messages in the default log (when I revert it back to default).

I was trying to change the log to a location that the System Admin could see and in the sub server (`mysubserver.mydomain.com`) the System Admin when logging in on his PC (Windows+Chrome) gets the error as in the OP and so do I, if I use the menu to switch to System Admin.

There were no other changes or other issues on this (relatively) new VM other than those [crit] errors in the nginx log ( **I am assuming the suggestion to ignore them was solid.** I will have a read of fail2ban this weekend. But am pretty sure they are unrelated to this.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [July 10, 2024, 7:04pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/10 "2024-07-10T19:04:30Z")

</div>

> [@Stegan](#):
>
> gone to `Virtualmin -> Logs and Reports -> PHP Error Log`  
> and gets this Error: `You are not allowed to view this extra log`  
> I do not understand why.

@Jamie, is this an artifact of fixing a bug in the past to prevent random logs/files from being read? I think we should allow the `logviewer` module to read any file under the user’s home directory when logged in as the domain owner? Though we should disallow reading on symlinks.

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [July 10, 2024, 9:51pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/11 "2024-07-10T21:51:14Z")

</div>

We may need to set the ACL on the `logviewer` module to allow viewing of the PHP error log.

Although, from looking at the code, that’s already happening.

@Stegan can you post the contents of the file /etc/webmin/logviewer/XYZ.acl , where XYZ is the login of the domain owner?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 11, 2024, 10:17am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/12 "2024-07-11T10:17:43Z")

</div>

```auto
extras=/var/log/virtualmin/{domain}.com_access_log	/var/log/virtualmin/{domain}.com_error_log	/var/log/virtualmin/{sub}.{domain}.com_access_log	/var/log/virtualmin/{sub}.{domain}.com_error_log
syslog=0
noedit=1
noconfig=1
any=0

```

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [July 11, 2024, 5:49pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/13 "2024-07-11T17:49:56Z")

</div>

Interesting that this is missing the PHP error logs.

If you login as root, select the domain, click Edit Virtual Server and click Save, does this file get updated?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 12, 2024, 8:24am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/14 "2024-07-12T08:24:40Z")

</div>

Not really but there is a change -  
I now get this (as root) which might be a little more informative?

 ![php error log](https://cdn.forum.virtualmin.com/uploads/default/original/2X/3/3ae8bc7d8f2351c3ffa78a7a0242be423ccdf92f.png)

(the obscured bit is /{system user}/{sub} - a valid file manager location owned by the user:group where I have place a `test.txt` file just to reassure myself that it can be accessed.

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 12, 2024, 3:29pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/15 "2024-07-12T15:29:12Z")

</div>

> [@Stegan](#):
>
> to reassure myself that it can be accessed.

and it can be seen and edited by the System Admin  
 ![test file](https://cdn.forum.virtualmin.com/uploads/default/original/2X/a/a4435fb7886cfd7785fa0d44a5a36e1eb13a1bd1.png)

so something is not creating or filling the “custom” log file

---

<div class="post-metadata">

**Author:** ![Jamie](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jamie/32/8589_2.png) [@Jamie](https://forum.virtualmin.com/u/Jamie)\
**Post date:** [July 12, 2024, 10:18pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/16 "2024-07-12T22:18:45Z")

</div>

Does that `php_auth0_error_log` file exist at all? Or is it just an empty file?

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 13, 2024, 8:10am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/17 "2024-07-13T08:10:50Z")

</div>

It does not exist. but as I said: I created a test file called `test.txt` just to prove to myself and the system admin that a file in that location was getting an ACL and that was not the problem.

So (as that worked) and at least stopped the Error, I have just created another file with the same name as placed in the `PHP-FPM Configuration -> Error Logging` (note the image in the settings does not capture the full file name as the text box - the file ends `.log`)

 ![error logging](https://cdn.forum.virtualmin.com/uploads/default/original/2X/a/a23e20acc9db2298e23135a4b050a0df21540b67.png)

 ![test log](https://cdn.forum.virtualmin.com/uploads/default/original/2X/9/9af038f519be6cb079adf3128c158ebbede0be80.png)

but even now it is not being overwritten with php errors. (this file should at minimum be being overwritten/filled with the php errors.)

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 13, 2024, 9:15am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/18 "2024-07-13T09:15:49Z")

</div>

> [@Stegan](#):
>
> but even now it is not being overwritten with php errors. (this file should at minimum be being overwritten/filled with the php errors.)

I think I would be inclined to return it all to stock, make sure that php errors are being logged for the master admin (who can see sub server php logs). Then at least everyone is on a level playing field, making sure the fpm config file reflects the changes back to stock

---

<div class="post-metadata">

**Author:** ![Stegan](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/stegan/32/6860_2.png) [@Stegan](https://forum.virtualmin.com/u/Stegan)\
**Post date:** [July 13, 2024, 9:35am UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/19 "2024-07-13T09:35:58Z")

</div>

> [@jimr1](#):
>
> I think I would be inclined to return it all to stock,

Yes I did that before - just to reassure myself that php errors were actually appearing in the default log (which they were) then changed the setting as shown - the “new” file still gets nothing. the system admin can at least now see the test log file and not an error.

---

<div class="post-metadata">

**Author:** ![jimr1](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/jimr1/32/14173_2.png) [@jimr1](https://forum.virtualmin.com/u/jimr1)\
**Post date:** [July 13, 2024, 2:29pm UTC](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795/20 "2024-07-13T14:29:19Z")

</div>

> [@Stegan](#):
>
> ” file still gets nothing

Who owns that file root or the domain owner ?

[Next page](https://forum.virtualmin.com/t/server-admin-gets-an-error-why/127795.md?page=2)
