CyberHosting

User ACL cannot edit vHost Conf

Hi,..

I have some clients with access to cyberpanel as User ACL.

Default WordPress install always has /index.php permalink.

For instance:
http://domain-com/index.php/%year%/%monthnum%/%postname%/

To make it normal (without index.php), a user need to edit vHost changing logLevel ERROR to logLevel 9.

Without this, simply removing index.php ini the permalinks setting will return error 404.

Unfortunately, normal user has access to edit the vHost Conf but cannot edit it.

An attempt to edit the vHost Conf returns:

"Could not fetch current configuration. Error message: You are not authorized to access this resource."

Only Admin can edit the configuration.

Is that normal?

Thanks

Comments

  • Normal users can't edit vHost Confs, it will be a disaster in multi-user environment if they can, they can point to any other sites on server if they are allowed.

    Why don't you use Rewrite Rules options add rewrite rules to avoid 404
    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress
  • Every new install of WordPress (using the one-click installer feature) comes with that rewrite rules already. However, the permalink has /index.php/ in which if removed, the pages/posts become 404.

    this article:
    https://hosthowto.com/how-to-fix-wordpress-permalink-issues-in-cyberpanel/

    suggests editing vHost

    any alternative?
  • If you just want to restart OpenLiteSpeed. Click Rewrite Rules (just beside vHost Conf) then click Save, this will also restart server thus giving you same results.

    Normal users are allowed to edit their Rewrite Rules, so this should work for you.
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!