GithubHelp home page GithubHelp logo

Comments (10)

richardforth avatar richardforth commented on June 16, 2024

from apache2buddy.

muimid avatar muimid commented on June 16, 2024

Hi Richard,

Thank you for your quick response.

I made some progress from the initial error I was getting. I managed to install Apache2buddy within my stack and got it fired up with the commands below:

cd /opt

wget https://raw.githubusercontent.com/richardforth/apache2buddy/master/apache2buddy.pl

chmod +x apache2buddy.pl

I got a longer (and more encouraging?) report this time:

##################################################
apache2buddy.pl report for ds (x.x.x.x)
##################################################
[ OK ] This script is being run as root.
[ OK ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK ] The utility 'netstat' exists and is available for use: /bin/netstat
[ OK ] 'php' exists and is available for use: /opt/exam/php/bin/php
[ OK ] The utility 'apachectl' exists and is available for use: /opt/bitnami/apache2/bin/apachectl
[ OK ] The port (port 80) is a valid port.
[ -- ] We are attempting to discover the operating system type and version number ...
[ OK ] The 'python' binary exists and is available for use: /usr/bin/python
[ -- ] Distro: Ubuntu
[ -- ] Version: 16.04
[ -- ] Codename: xenial
[ >> ] OS Version Checks were skipped by user directive, you may get errors.
[ -- ] Hostname: d
s
[ -- ] Primary IP: x.x.x.x
[ -- ] We are checking the service running on port 80...
[ -- ] The process listening on port 80 is /opt/bitnami/apache2/bin/httpd.bin
[ -- ] The process running on port 80 is not Apache. Falling back to process list...
[ !! ] Could not find Apache process. Exiting...

Unfortunately, that's where I hit another brick wall. Can you figure out why the Apache process cannot be found even after the apachectl utility has been detected before?

Thank you.

from apache2buddy.

richardforth avatar richardforth commented on June 16, 2024

from apache2buddy.

muimid avatar muimid commented on June 16, 2024

I've tried some options you provided on the script:

Usage: apache2buddy.pl [OPTIONS]
If no options are specified, the basic tests will be run.
-p, --port=PORT Specify an alternate port to check (default: 80)
--pid=PID Specify a PID to bypass the "Multiple PIDS listening on port 80" error.
-v, --verbose Use verbose output (this is very noisy, only useful for debugging)
-P, --no-check-pid DON'T Check the Parent Pid File Size (only use if desperate for more info, results may be skewed).

But while I'm able to get more info (verbose), it seems the script does not bypass the PID I provide.

#######################################################
apache2buddy.pl report for ds ()
#######################################################
VERBOSE: UID of user is: 0
[ OK ] This script is being run as root.
[ OK ] The utility 'pmap' exists and is available for use: /usr/bin/pmap
[ OK ] The utility 'netstat' exists and is available for use: /bin/netstat
[ OK ] 'php' exists and is available for use: /opt/bitnami/php/bin/php
[ OK ] The utility 'apachectl' exists and is available for use: /opt/bitnami/apache2/bin/apachectl
[ OK ] The port (port 80) is a valid port.
[ -- ] We are attempting to discover the operating system type and version number ...
[ OK ] The 'python' binary exists and is available for use: /usr/bin/python
VERBOSE: Check OS platform
VERBOSE: /usr/bin/python -c 'try:
import platform
print(platform.linux_distribution())
except AttributeError as e:
pass'
[ -- ] Distro: Ubuntu
[ -- ] Version: 16.04
[ -- ] Codename: xenial
[ >> ] OS Version Checks were skipped by user directive, you may get errors.
[ -- ] Hostname: d
s
[ -- ] Primary IP:
[ -- ] We are checking the service running on port 80...
VERBOSE: PID is 1140
VERBOSE: Finding process running with a PID of 1140
VERBOSE: Found process /opt/bitnami/apache2/bin/httpd.bin
[ -- ] The process listening on port 80 is /opt/bitnami/apache2/bin/httpd.bin
[ -- ] The process running on port 80 is not Apache. Falling back to process list...
[ !! ] Could not find Apache process. Exiting...

Anyway, the hunt continues...

from apache2buddy.

richardforth avatar richardforth commented on June 16, 2024

from apache2buddy.

muimid avatar muimid commented on June 16, 2024

Hmmm... I've never done it before but I could try. I've currently cloned my system on a desktop computer on my network that allows me to run tests before implementing them on the production server. But I'll let you know if I make progress.

from apache2buddy.

richardforth avatar richardforth commented on June 16, 2024

from apache2buddy.

muimid avatar muimid commented on June 16, 2024

Hi Richard,

Thank you for your continued support (and bearing with me). I run my organisation's learning management system (Canvas) which we installed through an application provided by Bitnami.

To try it out, you can install a prepackaged virtual machine from here:

https://bitnami.com/stack/canvaslms/virtual-machine

Or you can install an earlier opensource linux package (similar to the one we are currently running) on your docker machine that I have saved at the link below:

File

Please let me know when you get the file so that I can remove the link. I would really like to know how to tune our server as we're expecting a lot of (concurrent) traffic during student online examinations soon.

from apache2buddy.

richardforth avatar richardforth commented on June 16, 2024

If you need some inspiration for Dockerfiles, here is a repository of the Dockerfiles Im using for my Jenkins Pipelines:

https://github.com/richardforth/docker/tree/main/forric

I cant use Virtual Machines I'm afraid.

I'm in the process of downloading the file, I'll let you know when it is downloaded.

from apache2buddy.

richardforth avatar richardforth commented on June 16, 2024

File has been downloaded, and Checked: Virus Free by Avast

from apache2buddy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.