Hi
I’ve been trying to get Lucee running on Linux for the past few days now.
I cant get the Apache connector working. Lucee itself runs fine, So does Apache.
Every time i try to install the Apache connector I get the following error:
Warning: Problem running post-install step. Installation may not complete
correctly
Error running /opt/lucee/sys/install_mod_proxy.sh -m install -t 8888 -f
/etc/httpd/conf/httpd.conf -c /usr/sbin/apachectl: apachectl: The "-M" option is
not supported.
apachectl: The "-M" option is not supported.
apachectl: The "-M" option is not supported.
apachectl: The "-M" option is not supported.
If you need more info’s I’m happy to provide them.
Mod proxy is shipped with RHEL/Fedora core as part of the base install of the httpd (apache httpd) package.
Here is what you do to correct this.
Complete the install without mod_proxy, you dont NEED IT. I need to upload the corrected bash script for this and have it approved, but here for now is how to make this work:
sed -i ‘s/#LoadModule proxy_module/LoadModule proxy_module/’ /etc/httpd/conf/httpd.conf
this makes sure the proxy module is uncommented
now in your main /etc/httpd/conf/httpd.conf at the bottom add the following lines:
Note, You will need to complete the greater than and less than around the IFModule directives and remove the trailing double qoute, My browser is either reading this as HTML or the forum software is stripping the completed tag, either way let me know if you need further help.
If what @Terry_Whitney didn’t work, can you check the following command on your OS?
apachectl help
It should spit out the available options. Take a look to see if you can see the option “-M” there, and maybe the alternative for it. This information might be useful to adapt the Lucee installer for it.
I’m currently at work and I kinda have to use a working dev environment so I’m currently booted into Widows. However, I’ll do that after work and Imma let you know about the results.
But what I know is that the command apache2 does not exist in fedora resp REHL
Everyting seems to be working.
Thank you s much
I have wasted so many hours on this and now its finally woring
For anyone having the same issue in the future:
The last line should also be a closed tag, like this
</IfModule"
And:
As a best practice, do not modify /etc/httpd/conf/httpd.conf or any of the /etc/httpd/conf.d files shipped by Fedora packages directly. If you make any local changes to these files, then any changes to them in newer package versions will not be directly applied. Instead, a .rpmnew file will be created, and you will have to merge the changes manually.
It is recommended to create a new file in /etc/httpd/conf.d/ which will take precedence over the file you wish to modify, and edit the required settings. For instance, to change a setting specified in /etc/httpd/conf.d/foo.conf you could create the file /etc/httpd/conf.d/z-foo-local.conf, and place your setting in that file. https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-apache-http-server/