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

When trying to run the setup, Error 500 | chmod | cPanel #386

Closed
Fraenkiman opened this issue Apr 30, 2024 · 8 comments
Closed

When trying to run the setup, Error 500 | chmod | cPanel #386

Fraenkiman opened this issue Apr 30, 2024 · 8 comments
Labels
More feedback required More feedback required

Comments

@Fraenkiman
Copy link
Collaborator

Fraenkiman commented Apr 30, 2024

Hello @RoopeshKharvi,

#371 (comment)

It's not work for me. I have modified these 2 files (ba890f3)
Screenshot 2024-04-30 231602

#371 (comment)

both works in docker (ab1a9df and https://github.com/flatpressblog/flatpress/archive/refs/heads/master.zip)
but not work in c panel.

if possible, please provide us with relevant portions of the error log of your webserver or PHP. Or another output or log file that may contain more details.

With best regards
Frank

@RoopeshKharvi
Copy link

I have tested the master branch manually, and it shows a console log error (500) after setup.php I have attached a screenshot.
flatpress

@Fraenkiman Fraenkiman changed the title cPanel server management software When trying to run the setup, Error 500 | cPanel May 2, 2024
@Fraenkiman
Copy link
Collaborator Author

Hello @RoopeshKharvi,

Thank you for your feedback. I had hoped for server logs to be able to identify a possible cause more specifically. Do you use a web host service or do you host yourself? If you can submit server logs later, please do so. That would make it easier to track down the cause.

Otherwise, we will have to work together to narrow down the cause.

I have created five additional branches for you. These branches differ in the scope of features. In other words: I have selectively switched off one or the other feature.

  1. Only http:// possible

  2. only https:// possible

We also need the information as to whether you accessed the setup via http:// or https://. It is best to test both.

  1. Without language recognition based on the browser or server. English only.

  2. Without trying to set file and directory permissions

  3. Smarty 4.3.1 instead of Smarty 4.4.1

Which PHP version is running on the web server?

Please test all five branches and let us know which of the five you were able to set up successfully.

With best regards
Frank

@RoopeshKharvi
Copy link

Thank you so much Sir, for your response @Fraenkiman 4th one is worked, (4. https://github.com/Fraenkiman/flatpress/archive/refs/heads/no-attempt-to-set-file-and-directory-permissions.zip ) but the remaining 4 are failure,
I have tested all in PHP 7.4, 8.0, 8.1 and 8.2

@Fraenkiman Fraenkiman added this to the FlatPress 1.3.1 milestone May 3, 2024
@Fraenkiman
Copy link
Collaborator Author

Fraenkiman commented May 3, 2024

Hello @RoopeshKharvi,

Thank you very much for testing. We seem to have an issue with the chmod_r function in the main.php file. Strange, I can't get the problem to reproduce. Possibly BASE_DIR is not returning a consistent, absolute path from the defaults.php file.

$start_dir = BASE_DIR; // Starting directory

define('BASE_DIR', dirname(__FILE__));

I have created a branch for this. Please test this branch and let us know shortly, as we are planning the 1.3.1 release for this Saturday.

With best regards
Frank

@azett, can you please test this branch as well? cPanel is used by some webhosters. I would therefore quickly find a solution for this.

@Fraenkiman Fraenkiman changed the title When trying to run the setup, Error 500 | cPanel When trying to run the setup, Error 500 | chmod | cPanel May 3, 2024
@RoopeshKharvi
Copy link

RoopeshKharvi commented May 6, 2024

Sir, Fraenkiman I have tested https://github.com/Fraenkiman/flatpress/archive/refs/heads/file-and-dir-perms-by-setup.zip in c panel with PHP 7.1 to 8.2, all are failed.

@Fraenkiman
Copy link
Collaborator Author

Fraenkiman commented May 6, 2024

Hello @RoopeshKharvi ,

strange, we're not really getting any closer to the cause.
cPanel is a web-based configuration tool for web servers, as far as I remember. Is that correct? Similar to Webmin. Or do you mean something else by c panel?

Do you have the possibility to post the error logs here?

If you are actually using cPanel, please go through the instructions on this website. There may be a misconfiguration.

Best regards
Frank

@RoopeshKharvi
Copy link

Ok, Thanks.

@Fraenkiman
Copy link
Collaborator Author

I'll close here. If necessary, the issue can be reopened

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
More feedback required More feedback required
Projects
None yet
Development

No branches or pull requests

2 participants