Undefined symbol unixd_config - apache

Whenever I try to load the libmod_sm22.so or libmodsm_20.so module into apache-2.4.6, I am getting error as shown below :
httpd: Syntax error on line 65 of httpd.conf: Cannot load /opt/software/siteminder/waR12cr009/webagent/bin/libmod_sm22.so into server: /opt/software/siteminder/waR12cr009/webagent/bin/libmod_sm22.so: undefined symbol: unixd_config
From the apache documentation I found that apache-2.4.6 API has changed ‘unixd_config’ to ‘ap_unixd_config’!
But the libmod_sm20.so / libmod_sm22.so is still looking for ‘unixd_config’
In the apache’s include folder I have found references for the unixd_config symbol as shown below
============================================================================
[apache#VDCLL1828 include]$ cat ap_mmn.h |grep 'unixd_config'
* 20071108.9 (2.3.0-dev) Add chroot support to unixd_config
* 20101106.2 (2.3.9-dev) Add suexec_disabled_reason field to ap_unixd_config
* add ap_unixd_config.group_name
[apache#VDCLL1828 include]$ cat unixd.h |grep 'unixd_config'
} unixd_config_rec;
AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
===========================================================
I didn’t try to change these references as these are not completely related to what I am looking for & in turn this may break other working things if I mess up.
At this point I have two options to make siteminder working in apache-2.4.6
1) Prepare the libmod_sm22.so that it looks for ap_unixd_config instead of unixd_config (If possible)
2) Look out for a patch to apache 2.4.6 api .
Any thoughts around this are highly appreciated.
Thanks,
Kiran

Related

Magento 2 : Custom csp module unknown

I'm trying to override the csp module of magento but I get an error i don't understand : Unknown module
here is my module.xml registration.php the error i get
First try Running, your module will be enabled auto if everything good.
php bin/magento s:up
Also Check your directory is correct, i see in screenshots app/Code , c needs to be small.
Hope it helps!!

PHP Fatal error: Class 'jsonserializable' not found in Unknown on line 0

Ubuntu 16.04
PHP 7.0.4
Phalcon 2.1.x
Zephir
$~: php -v
PHP Fatal error: Class 'jsonserializable' not found in Unknown on line 0
When add phalcon.so in php.ini
Somehow I found the answer on and old bug report here:
Segmentation fault after update to 2.1.x
The problem is that the phalcon extension is being loaded before the json extension, so I guess that you, as myself, added the extension=phalcon.so line in the main php.ini
What you have to do is add a file in /etc/php/7.0/mods-available called phalcon.ini with the line in it: extension=phalcon.so
Then you just go and make a softlink that points from /etc/php/7.0/cli/conf.d/50-phalcon.ini to that phalcon.ini file, (important to put a number higher than 20 so it gets loaded after the json extension) and that's it!
Repeat the process to any other configuration that you have for php (apache, nginx, etc).

Yii 2.0 showing Warning: Module 'mysql' already loaded in Unknown on line 0

I am new to yii 2.0. I installed my first Yii2.o application on my server and configred URL to use user friendly urls. However, I am getting
Warning: Module 'mysql' already loaded in Unknown on line 0
message when I go to the web/about/ URL. I tried to remove the base rout using "defaultRoute" in web.php but that is also not possible.
Please help me to figure out this issue.
That has nothing to do with Yii 2.0. It's a PHP misconfiguration.
Probably, you've enabled mysql extension twice. Search in your php.ini and extensions ini files:
extension=mysql.so
or
extension=mysql.dll
I had the same problem and i fix it by deleting this line in my php.ini:
extension=mysql.so
located in: /etc/php5/apache2/ and restarting apache2 service:
sudo service apache2 restart

Custom Cartridge

I want to create a cartridge for OpenERP, i create one for Python 2.6.6, it's work, and i try to modifie the setup to execute "openerp-server" but i dont know where i can put the openERP code ? Where i puting him in the "Template" folder it gives my this error :
Unable to complete the requested operation due to: The server
ex-std-node295.prod.rhcloud.com that your application is running on
failed to respond in time. This may be due to a system restart..
Reference ID: 377355d1a4f3f9cc0d1914cca77dace9
Also I modified the /bin/setup like this :
Call openerp-server
exec $OPENSHIFT_PYTHON_DIR/cdk/Template/openerp-server
Also when I connect in SSH I don't find my template folder.
How do I fix this?
Openshift Origin has annoying timeout hardcoded in one gem of itself.
Find line 1006 in the following file:
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-console-1.26.3.1/app/models/rest_api/base.rb
The default timeout is set in the following line (line 1006):
self.read_timeout = 240
Other timeouts can be setuped due to documentation.
I have a working quickstart here: https://github.com/caruccio/openshift-openerp-quickstart/blob/master/README_en.md
You could use this code to your template dir. Please not it is "template", not "Template".

Problems to install couponic on localhost

I'm trying to install the couponic on my localhost (xampp), but I'm getting an error message:
Strict Standards: Non-static method UFactory::getModuleAlias() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\couponic\framework\uniprogy\framework\worklets\UWorkletConstructor.php on line 254
This is one of the errors, but all of them are from the same type on the same function (getModuleAlias).
I already rename the protected/config/inital folder to protected/config/public and when I access using the url right url (localhost/couponic/install) I get these errors.
Can you help me?
The problem here is that you have install probably in localhost php 5.4 and couponic doesn't support php 5.4, to bypass this problem you will have to replace
public function getModuleAlias($module)
with
static public function getModuleAlias($module)
but more problem will come up, until uniprogy make the script working on php 5.4
Disable strict errors in your php.ini:
error_reporting = E_ALL
Right now you probably have:
E_ALL & E_STRICT
So you need to lose the E_STRICT part.
I had "E_ALL" already and it wasn't working. I switched to "E_ERROR" and that did the trick.
error_reporting = E_ERROR
E_ALL "includes E_STRICT as of PHP 6.0.0" but we're not quite there yet.