[GH-ISSUE #47] Cannot see UI page #38

Closed
opened 2026-05-05 15:01:08 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @kennoosh on GitHub (May 19, 2017).
Original GitHub issue: https://github.com/darold/sendmailanalyzer/issues/47

Hi I installed the sendmailanalyzer following the instruction, but when I open the page: https://xx.xx.xx.xx/sareport/; it doesn't give me any UI page, it only show all perl scripts; please review the attached file; do you know why is that?

sareport.txt

Thanks

Originally created by @kennoosh on GitHub (May 19, 2017). Original GitHub issue: https://github.com/darold/sendmailanalyzer/issues/47 Hi I installed the sendmailanalyzer following the instruction, but when I open the page: https://xx.xx.xx.xx/sareport/; it doesn't give me any UI page, it only show all perl scripts; please review the attached file; do you know why is that? [sareport.txt](https://github.com/darold/sendmailanalyzer/files/1015210/sareport.txt) Thanks
Author
Owner

@kennoosh commented on GitHub (May 19, 2017):

the OS is ubuntu 14; perl is v5.22.1, and I have installed " MIME::Base64"

<!-- gh-comment-id:302781692 --> @kennoosh commented on GitHub (May 19, 2017): the OS is ubuntu 14; perl is v5.22.1, and I have installed " MIME::Base64"
Author
Owner

@darold commented on GitHub (May 19, 2017):

The problem is not related to the perl script but to your Apache configuration. See INSTALLATION in the documentation (README file) and especially the "Post install" chapter and the configuration sample:

            Alias /sareport /usr/local/sendmailanalyzer/www
            <Directory /usr/local/sendmailanalyzer/www>
                    Options ExecCGI
                    AddHandler cgi-script .cgi
                    DirectoryIndex sa_report.cgi
                    Order deny,allow
                    Deny from all
                    Allow from 127.0.0.1
                    Allow from ::1
                    # Allow from .example.com
            </Directory>
<!-- gh-comment-id:302786373 --> @darold commented on GitHub (May 19, 2017): The problem is not related to the perl script but to your Apache configuration. See INSTALLATION in the documentation (README file) and especially the "Post install" chapter and the configuration sample: ``` Alias /sareport /usr/local/sendmailanalyzer/www <Directory /usr/local/sendmailanalyzer/www> Options ExecCGI AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi Order deny,allow Deny from all Allow from 127.0.0.1 Allow from ::1 # Allow from .example.com </Directory> ```
Author
Owner

@kennoosh commented on GitHub (May 19, 2017):

I added that setting in the apache, but I got 403 forbidden issue:
Alias /sareport /usr/local/sendmailanalyzer/www
<Directory /usr/local/sendmailanalyzer/www>
Options ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex sa_report.cgi
Order deny,allow
Allow from all
# Allow from .example.com

I googled it and someone suggested to use "Require all granted" instead of "Order deny,allow"; so I changed it as:
Alias /sareport /usr/local/sendmailanalyzer/www
<Directory /usr/local/sendmailanalyzer/www>
Options ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex sa_report.cgi
Require all granted
# Allow from .example.com

The I can access it but the response is not UI page, it just show all perl scripts;

<!-- gh-comment-id:302811217 --> @kennoosh commented on GitHub (May 19, 2017): I added that setting in the apache, but I got 403 forbidden issue: Alias /sareport /usr/local/sendmailanalyzer/www <Directory /usr/local/sendmailanalyzer/www> Options ExecCGI AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi Order deny,allow Allow from all # Allow from .example.com </Directory> I googled it and someone suggested to use "Require all granted" instead of "Order deny,allow"; so I changed it as: Alias /sareport /usr/local/sendmailanalyzer/www <Directory /usr/local/sendmailanalyzer/www> Options ExecCGI AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi Require all granted # Allow from .example.com </Directory> The I can access it but the response is not UI page, it just show all perl scripts;
Author
Owner

@darold commented on GitHub (May 21, 2017):

What is your version of Apache httpd server (output of apache2 -v ) and the version of your operating system?

<!-- gh-comment-id:302960950 --> @darold commented on GitHub (May 21, 2017): What is your version of Apache httpd server (output of `apache2 -v` ) and the version of your operating system?
Author
Owner

@darold commented on GitHub (May 21, 2017):

Sorry, I just seen your note above: OS is ubuntu 14, I have the same on my laptop and my configuration is:

        Alias /sareport /usr/local/sendmailanalyzer/www/
        <Directory /usr/local/sendmailanalyzer/www/>
            Options All +ExecCGI
            Require all granted
            AddHandler cgi-script .cgi
            DirectoryIndex sa_report.cgi
        </Directory>

into /etc/apache2/sites-enabled/000-default.conf default virtual host.

<!-- gh-comment-id:302961474 --> @darold commented on GitHub (May 21, 2017): Sorry, I just seen your note above: OS is ubuntu 14, I have the same on my laptop and my configuration is: ``` Alias /sareport /usr/local/sendmailanalyzer/www/ <Directory /usr/local/sendmailanalyzer/www/> Options All +ExecCGI Require all granted AddHandler cgi-script .cgi DirectoryIndex sa_report.cgi </Directory> ``` into /etc/apache2/sites-enabled/000-default.conf default virtual host.
Author
Owner

@kennoosh commented on GitHub (May 21, 2017):

Does it work for you ? my apache version is 2.4, and I added it in /etc/apache2/sites-enabled/default-ssl.conf because we disabled the HTTP request; all http request will automatically be rewritten to HTTPS;

<!-- gh-comment-id:302964257 --> @kennoosh commented on GitHub (May 21, 2017): Does it work for you ? my apache version is 2.4, and I added it in /etc/apache2/sites-enabled/default-ssl.conf because we disabled the HTTP request; all http request will automatically be rewritten to HTTPS;
Author
Owner

@darold commented on GitHub (May 22, 2017):

Yes it works great for me, perhaps you have to enable the cgi module too.

sudo a2enmod cgi
sudo service apache2 reload
<!-- gh-comment-id:303021007 --> @darold commented on GitHub (May 22, 2017): Yes it works great for me, perhaps you have to enable the cgi module too. ``` sudo a2enmod cgi sudo service apache2 reload ```
Author
Owner

@kennoosh commented on GitHub (May 22, 2017):

yeah, it works, thank you very much

<!-- gh-comment-id:303159062 --> @kennoosh commented on GitHub (May 22, 2017): yeah, it works, thank you very much
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/sendmailanalyzer#38
No description provided.