You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web browser gets "url not found after successful login".
Not Found
The requested URL /< was not found on this server.
Apache Server at 172.16.129.26 Port 80
Problem: apache2 - php made a change.
You are now required to add an "AddHandler" for php to the virtual hosts file.
I got bit by this change in my own web apps that use PHP.
I had to add the following statement to the apache2 virtual hosts file for php version 7
AddHandler php7-script php
For php version 5 you have to add this:
AddHandler php5-script php
I modifed the /etc/apache2/sites-enabled/nagios3.conf file, added the AddHandler for php7 (see below) and then restarted apache2 and the problem is fixed.
This will need manual testing to verify/resolve as at the moment our tests pass when opening pages and passing username and password to curl.
@gforghetti, could you test again with the latest release in the supermarket (8.0.0) and let us know if this manual testing is needed or if this can be closed?
Cookbook version
7.2.7
Chef-client version
13.2.20
Platform Details
CentOS Linux release 7.3.1611 (Core)
Scenario:
Install nagios
Actual Result:
Web browser gets "url not found after successful login".
Problem: apache2 - php made a change.
You are now required to add an "AddHandler" for php to the virtual hosts file.
I got bit by this change in my own web apps that use PHP.
I had to add the following statement to the apache2 virtual hosts file for php version 7
For php version 5 you have to add this:
I modifed the /etc/apache2/sites-enabled/nagios3.conf file, added the AddHandler for php7 (see below) and then restarted apache2 and the problem is fixed.
This is how I fixed it in my cookbooks
Added this statement to my virtual host erb files:
Then my template does this:
Example output:
The text was updated successfully, but these errors were encountered: