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
Configuration option URL_PATH should be updated during install #1146
Comments
This seems to be more of a packaging issue. Labeling 'enhancement' for now. Pull requests always welcomed. |
I would disagree about it being at package level since it’s really something that should be set as part of the install/upgrade since an admin can change the url at any point. Especially if they are using the source to install it. |
Problem is that we don't want to have to grant write access after initial install to that directory/file. So, it causes a problem. |
Hmm, OK I agree with that, maybe just a sanity check then, such as the writable folders have permissions? |
Checking for write access would be something good for both technical support and the installer. Feel free to kick the can a bit on this time permitting. Open a feature request or just do a pull when you have it done. |
I am just making a pull request for this. It will display an error if the URL mismatchs with the location of the install/index.php script whilst it is running. Not sure whether to make it cleaner by moving the code into a function but now I'm just testing it with code in the index.php file. |
Please note that whilst I refer to URL_PATH in upper case, this is just for ease of viewing, URL_PATH is stored in /include/config.php in lower case:
When installing or updating cacti, the URL path should be compared against URL_PATH to ensure that the install is running from the same location as expected. If not, the URL_PATH should be updated such that:
This is borne from a forum issue Requested URL /cacti was not found on this server
The text was updated successfully, but these errors were encountered: