Comments (10)
from apache2buddy.
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: ds
[ -- ] 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.
from apache2buddy.
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: ds
[ -- ] 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.
from apache2buddy.
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.
from apache2buddy.
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:
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.
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.
File has been downloaded, and Checked: Virus Free by Avast
from apache2buddy.
Related Issues (20)
- Plans to Support AlmaLinux 8.x and CloudLinux 7.9? HOT 5
- AmazonLinux Docker: Cannot find the 'hostname' executable. HOT 2
- AmazonLinux [ !! ] Python scripting failed. Python requires package 'distro' or 'platform' to determine the Operating System and Version. HOT 6
- Newer versions of python throw deprecation warnings HOT 5
- [ LOW PRIORITY ] Unable to detect apache on nonstandard ports - EOL Ubunutu 1604 with --skip-os-version-check HOT 1
- SS support along with netstat HOT 10
- --- a2bchk.sh --- showing MD5 mismatch HOT 4
- Add support for Ubuntu 22.04 HOT 8
- Add tests for ansible playbook in all Jenkins stages HOT 1
- Debian 12 support
- Running ISPconfig on ARM64: Bullseye with Linux 5.10.110-rockchip-rk3588: uninitialized value $apache_proc_php in concatenation (.) or string at - line 2524 (#1) HOT 1
- sub detect_php_memory_limit has hardcoded php executable path
- Support for Oracle Linux Server HOT 1
- Error: Illegal division by zero at line 987 HOT 4
- Support for SLES 12 with worker MPM HOT 1
- including Gentoo
- sub get_php_setting breaks on systems with multiple versions of php installed HOT 1
- Use of uninitialized value $apache_proc_php in string eq HOT 1
- DeprecationWarning: distro.linux_distribution() is deprecated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apache2buddy.