Skip to content

No Styles Showing During or After New InstallΒ #1401

Closed

Description

@durangod

Before you open an issue:

** yes i did **

**yes i did **

Affected Version(s): x.y.z

** 1.14.7 **

PHP Version: 7.x FPM

** php 8.3 **

Webserver: Apache/Nginx

** Apache 2.4.71 **

** db version **
11.4.13-MariaDB-cll-lve-log

Browser: Chrome 80.x.x

chrome Version 157.0.8103.79 (Official Build) (64-bit)

Installation Type

  • Wordpress x.y.z
  • Mediawiki x.y.z
  • Standalone

Install type is on a cpanel namecheap shared server in a sub dir

Description

I seem to be having permission or htacess issue with the css. This is my second install on a new install (i removed the first install but had the same issue). It installs but there is no style loading at all. The url on the browser does show https so it is loading https. There are no cache files to speak of, the only file in the cache folder is index even after registration is done. Still no style loading at all.

There are no errors anywhere, not in the server error_log file and not in this projects

What have i tried so far to resolve this:
I do have my htaccess forcing https as well as the browser but i tried disabling both of those

I changed the config file to show https in OWA_PUBLIC_URL setting which looks like this, i did try both http and https
define('OWA_PUBLIC_URL', 'https://example.com/analytics/owa_analytics/');

I have enabled development
define('OWA_ERROR_HANDLER', 'development');

I have enabled log errors
define('OWA_LOG_PHP_ERRORS', true);

For both keys i created unique 32 alpha numeric with special chars
For both salts i created unique 6 long integer value and removed the single quotes around the value

on the first install i did change the url to https trying to get something going, i did try both https and http
var owa_baseUrl = "https://example.com/analytics/owa_analytics/";

on the first install i tried the cron your way (the default) and then also tried it this way (5 min is minimum on this server) neither format produced any reaction from the server that i found
*/5 * * * * php /home/username/example.com/analytics/owa_analytics/cli.php?cmd=schedule-run

I also tried the project with out my domain htaccess file, and even commented out the code that might cause this (which is below) still no styles, so there should be nothing in the htaccess blocking the css.

There is more content below regarding permissions and my htaccess content

Additional context

screenshot - this is where i stopped on the second install and where i am now.. Until i can get some style going i don't want to execute the install this time.

analytics_nostyle

Regarding permissions: on my server 0755 for dir and 0644 for files, it is that way for every script i have ever installed (other than phpbb sometimes which requires selective perms on certain dir).

When i looked through the first attempt files i found a mixture of everything... some dir were 0644 and some files were 0755. Some whole dir content files were all 0755. Several directories had lots of files in them and they were all mostly 0755. So i went through the whole script and set every dir to 0755 and every file to 0644 (took a while) and that is as it stands now.

What is strange is that in your vendor dir all of those dir and files were perfect (dir 0755 and files 0644) so it is almost like when the package was built, it was built from a server with different permission rules which those permissions carried over to the package tar. It is strange to see half the project correct and the other not. Almost like some files came from a normal server and some came from a different one with different rules. I have never seen my server change permissions on upload so i don't think that is the cause, every script i have ever uploaded ended up dir 0755 and files 0644 every time. So i dont know what happened with this.

Anyway as it sits now, all dir are 0755 and all files are 0644.

Now i see in your install guide that the base has some special rules. I did change the cli.php to 0700 and i also
changed my owa-config.php to 0700 as well.

At the moment i am rereading the install guide permissions to see if i can figure out which dir need to be 0700 and what files need to be 0644

htaccess file contents - this is a limited view showing just the code that could effect the css. The items not included are just cpanel code which i have disabled so it does not apply.

--------------- htaccess ------------------

<Files .htaccess> order allow,deny deny from all </Files>

<Files php.ini> order allow,deny deny from all </Files>

<Files .user.ini> order allow,deny deny from all </Files>

AddType text/html html
AddType text/html shtml

ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml

#for better security
ServerSignature Off

#set strict transport security
#commented out till i can get css working
<FilesMatch "\.(php|js)$">
# Header set Strict-Transport-Security "max-age=63072000; env=HTTPS; includeSubDomains; preload;"
</FilesMatch>

Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php

#force to use https
#have tried this active and non active
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NE,L]

#force / or /sub to use its own index
#have tried this active and non active
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]

** project error log **

It appears i have a permission issue with install files. But everything else looks good.

[14:03:45 2026-11-15] [3260796] [DEBUG] *** Starting Open Web Analytics v1.14.7. Running under PHP v8.3.36 (Linux) ***
[14:03:45 2026-11-15] [3260796] [DEBUG] Request URL:GET /analytics/owa_analytics/install.php
[14:03:45 2026-11-15] [3260796] [DEBUG] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/157.0.0.0 Safari/537.36
[14:03:45 2026-11-15] [3260796] [DEBUG] Host: example.com
[14:03:45 2026-11-15] [3260796] [DEBUG] check for http host
[14:03:45 2026-11-15] [3260796] [DEBUG] Setting cookie domain to .example.com
[14:03:45 2026-11-15] [3260796] [DEBUG] Configuration overrides applied.
[14:03:45 2026-11-15] [3260796] [DEBUG] request container says params are:
[14:03:45 2026-11-15] [3260796] [DEBUG] Array
(
)

[14:03:45 2026-11-15] [3260796] [DEBUG] Modules present are:
[14:03:45 2026-11-15] [3260796] [DEBUG] Array
(
[2] => Base
[3] => Domstream
[4] => FileCache
[5] => Hello
[6] => MaxmindGeoip
[7] => MemcachedCache
[8] => RemoteQueue
)

[14:03:45 2026-11-15] [3260796] [DEBUG] base Schema version is 1
[14:03:45 2026-11-15] [3260796] [DEBUG] base Required Schema version is 33
[14:03:45 2026-11-15] [3260796] [DEBUG] Getting state - store: u key:
[14:03:45 2026-11-15] [3260796] [DEBUG] loading last value in initial state container for store: u
[14:03:45 2026-11-15] [3260796] [DEBUG] populating state for store: u, name: , value: adminuser, store type: cookie, is_perm:
[14:03:45 2026-11-15] [3260796] [DEBUG] Notifying listeners of init
[14:03:45 2026-11-15] [3260796] [DEBUG] no listeners registered for this event type.
[14:03:45 2026-11-15] [3260796] [DEBUG] EHS: Responses - Array
(
)

[14:03:45 2026-11-15] [3260796] [DEBUG] EHS: Event was handled successfully by all handlers.
[14:03:45 2026-11-15] [3260796] [DEBUG] Disabled endpoints:
[14:03:45 2026-11-15] [3260796] [DEBUG] Array
(
[0] => queue.php
)

[14:03:45 2026-11-15] [3260796] [DEBUG] Handling request with params: Array
(
[do] => base.installStart
)

[14:03:45 2026-11-15] [3260796] [DEBUG] About to perform action: base.installStart
[14:03:45 2026-11-15] [3260796] [ALERT] Could not connect to database.
[14:03:45 2026-11-15] [3260796] [DEBUG] Performing Action: OWA\Module\Base\Controller\InstallStart
[14:03:45 2026-11-15] [3260796] [DEBUG] Getting state - store: u key:
[14:03:45 2026-11-15] [3260796] [DEBUG] Getting state - store: p key:
[14:03:45 2026-11-15] [3260796] [DEBUG] NO state store: p found
[14:03:45 2026-11-15] [3260796] [DEBUG] moduleRequireOnce says no file found at: /home/username/example.com/analytics/owa_analytics/modules/Base/install.php
[14:03:45 2026-11-15] [3260796] [DEBUG] Assembling view: OWA\Module\Base\View\Install
[14:03:45 2026-11-15] [3260796] [DEBUG] moduleRequireOnce says no file found at: /home/username/example.com/analytics/owa_analytics/modules/Base/installStart.php
[14:03:45 2026-11-15] [3260796] [DEBUG] Total session time: 0.10197401046753
[14:03:45 2026-11-15] [3260796] [DEBUG] Goodbye from OWA

So i am noodling over this to see what i overlooked :)

That is where i am now... thanks :)

Activity

  1. added
    Installation
    on Nov 15, 2026
  2. padams commented on Nov 15, 2026

    @padams
    Collaborator

    Thanks for the detail. The page itself loads but its stylesheet doesn't, which points to the server refusing the stylesheet rather than OWA failing to produce it. Could you check two things on the install page?

    1. View the page source and find the stylesheet link. It ends in public/base/css/owa.css?version=1.14.7. Open that URL directly in the browser: what status do you get (200, 403, 404)?
    2. In the browser's developer tools, Network tab, click that request and tell us the value of the server response header. We'd like to know whether your host is running Apache or LiteSpeed.

    Separately, the cron line needs a space rather than ?:

    */5 * * * * php /home/username/example.com/analytics/owa_analytics/cli.php cmd=schedule-run

    From the command line a query string isn't read, so cli.php?cmd=schedule-run runs nothing.

  3. durangod commented on Nov 15, 2026

    @durangod
    Author

    Ok thanks for the quick reply, i added the error log in my original post in case you have not seen it. I will work on your suggestions to see what i get from the browser and correct the cron . Thanks :)

  4. padams commented on Nov 15, 2026

    @padams
    Collaborator

    Are you running Apache?

  5. durangod commented on Nov 15, 2026

    @durangod
    Author

    Yes

  6. durangod commented on Nov 15, 2026

    @durangod
    Author

    response header shows running litespeed. I will try to copy and paste the response header here.

    i get a 403 on https://example.com/analytics/owa_analytics/public/base/css/owa.css?version=1.14.7

    response_info
  7. padams commented on Nov 15, 2026

    @padams
    Collaborator

    Ok lightspeed isn't Apache so that's why this is not working for you. Apache is currently a technical requirement for running OWA. That said we may be able to simplify the htaccess rules in a way that it can work.

  8. padams commented on Nov 15, 2026

    @padams
    Collaborator

    Thanks, that confirms it. Your host runs LiteSpeed, and OWA's .htaccess grants the public/ directory back with an Apache <If> expression that LiteSpeed doesn't apply, so every stylesheet and script gets a 403.

    Could you try the fix before we release it? Create a file named .htaccess in owa_analytics/public/ containing:

    <IfModule mod_authz_core.c>
        Require all granted
    </IfModule>
    

    Then reload the install page. If the styles appear, that's the fix (#1402) and it will go into the next release.

    Once the styles load: your log also shows Could not connect to database on the install start page. If your owa-config.php already has database details, check them against the database you created in cPanel; the installer needs them to connect.

  9. durangod commented on Nov 15, 2026

    @durangod
    Author

    Thanks i will do that right now... here is the header info just FYI :)

    headerinfo

    be right back

  10. durangod commented on Nov 15, 2026

    @durangod
    Author

    Perfect!!! fixed

    installhome
  11. durangod commented on Nov 15, 2026

    @durangod
    Author

    great yeah had to use localhost on db connection. Has passed connection and all looks good. Thanks :)

  12. padams commented on Nov 15, 2026

    @padams
    Collaborator

    Thanks for testing it. The fix is in 1.14.8: the build now writes public/.htaccess, so a fresh 1.14.8 package works on LiteSpeed as it is. If you upgrade, the file you added is replaced by the same one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Installation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions