The Apache Server(2.4.46) is installed on an M1 mac machine. Now a mod_jk connector is configured. The binary(mod_jk.so) file is created in the appropriate location along with other necessary files. The entry made in the httpd.conf file is also correct and its pointing to the right binary file.
But now when I try to start the apache server using the command -
apachectl -k start
I am getting the following warning and error -
[Fri Jul 30 16:13:17.339314 2021] [so:warn] [pid 58683] AH06665: No code signing authority for module at /private/etc/apache2/mod_jk.so specified in LoadModule directive. Proceeding with loading process, but this will be an error condition in a future version of macOS. httpd: Syntax error on line 558 of /private/etc/apache2/httpd.conf: Syntax error on line 4 of /private/etc/apache2/mod_jk.conf: Cannot load /private/etc/apache2/mod_jk.so into server: dlopen(/private/etc/apache2/mod_jk.so, 10): no suitable image found. Did find:\n\t/private/etc/apache2/mod_jk.so: mach-o, but wrong architecture\n\t/private/etc/apache2/mod_jk.so: stat() failed with errno=22
If someone has faced this issue please let me know how to go about this.
Any help would be really appreciated.