Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some issues after the new installation #664

Closed
Aido21 opened this issue Dec 20, 2023 · 13 comments
Closed

Some issues after the new installation #664

Aido21 opened this issue Dec 20, 2023 · 13 comments

Comments

@Aido21
Copy link

Aido21 commented Dec 20, 2023

Hi,
HTMLY was installed in a subdirectory.
Generally, everything looks fine except for some things due to them I cannot use HTMLy :-)

  1. It is impossible to create any content - nothing happens when I click any link in the 'Add content' section
  2. After I clicked Scheduled (in the Admin part or the top menu) I got a 404 error. All other links work fine.
  3. After I clicked Admin or Dashboard I got a string 'HTMLy'
@Aido21
Copy link
Author

Aido21 commented Dec 20, 2023

I'm not sure if this is relevant, but every time I click on the link to add a post I see this in the log:
[Wed Dec 20 14:00:47.214322 2023] [fcgid:warn] [pid 27459] [client ** mod_fcgid: stderr: PHP Notice: Undefined index: type in /home//public_html/blog/system/htmly. php on line 409, referer: https://*/blog/admin/content

@danpros
Copy link
Owner

danpros commented Dec 20, 2023

Hello, seems the query parameter ignored in your server (?type=post). Enable the mod_rewrite, try to modify the htaccess file. Eg. uncomment the RewriteBase / or use:

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

In localhost I use xampp and no need any extra config except enabling the module needed (zip, intl etc.) For server, I use virtualmin and no need extra config either.

@Aido21
Copy link
Author

Aido21 commented Dec 20, 2023

Thanks, it helped with the links and 'Scheduled' and 'Posts' items.
but
Admin or Dashboard returns the 'HTMLy' string

NB
I get an 'HTMLy' string if I have DirectoryIndex index.php admin.php in my .htaccess
If I keep DirectoryIndex index.php onlн I get a Forbidden message

@danpros
Copy link
Owner

danpros commented Dec 21, 2023

The problems is your vhost config. In apache 2.4 should:

AllowOverride All
Require all granted

and 2.2:

Order allow,deny
Allow from all

@Aido21
Copy link
Author

Aido21 commented Dec 21, 2023

These lines exist in my config. It is running under Virtualmin.

You know I think the reason for the issue is that I installed HTMLy in a subdirectory
So I have a public_html folder with the main site and .htaccess in it.
And a subfolder /blog where I installed HTMLy. This folder has its own .htaccess

I have attached both .htaccess that you can have a look. I will very much appreciate any help.
htaccess blog subfolder.txt
htaccess root.txt

@danpros
Copy link
Owner

danpros commented Dec 21, 2023

To debug it, restore the main site and htmly htaccess to the original one, start from there before adding your custom rule.

@Aido21
Copy link
Author

Aido21 commented Dec 21, 2023

Well. I disabled the root htaccess file but the issue is still here.
mysite/blog/admin/posts, mysite/blog/admin/pages, mysite/blog/admin/draft, etc can be opened correctly but
only mysite/blog/admin generates an error – Forbidden

@Aido21
Copy link
Author

Aido21 commented Dec 21, 2023

This is my current htaccess in the blog folder

RewriteEngine On
RewriteBase /blog/

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

@Aido21
Copy link
Author

Aido21 commented Dec 23, 2023

so no idea why this script does not work as it should work

@danpros
Copy link
Owner

danpros commented Dec 23, 2023

Yes I have no idea actually, I use the default htaccess and install it in sub folder and it work as it should be. It's a good idea to review how you set up your server (the virtual host etc.).

@bttrx
Copy link
Contributor

bttrx commented Dec 23, 2023

@Aido21 Please post your config\config.ini and the complete error message.

@Aido21
Copy link
Author

Aido21 commented Dec 24, 2023

Hi @bttrx
Here it is
config.ini.txt

There is no error messages. Just Forbidden 403 error for mysite/blog/admin.
The same time mysite/blog/admin/posts, mysite/blog/admin/pages, mysite/blog/admin/draft, etc can be opened correctly

@danpros
Copy link
Owner

danpros commented Jun 3, 2024

I'm sure this is related to server settings and not htmly itself. I will close this one. Thanks

@danpros danpros closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants