OpenERP which addons directory to use? - migration

I had previously installed OpenERP on an Ubuntu 12 server and discovered we have two addons directories one located in /opt/openerp/openerp-7.0-20131205-002453/openerp/addons/ and the other here /opt/openerp/server/addons.
I have then installed Ubuntu Server 14 and now see that the addons folder is located in /usr/share/pyshared/openerp/addons.
which addons directory do I use to migrate or which way to go about moving OpenERP from one server to another.
I'm new to this.

Use ./openerp-server --addons-path urpath
For More options like port change use --help

Related

How to get mod_jk.so/mod_jk.dll file for windows?

I am configuring httpd in windows server for load balancing. One of the step in configuration is to download tomcat connector for windows and put mod_jk.so file into modules folder.
I downloaded latest connector of windows from https://tomcat.apache.org/download-connectors.cgi
But after extracting, I could not find this file. I found some steps to build it on some sites, but those steps are of linux environments.
How to get mod_jk.so for windows environment ?
If you want mod_jk for Windows/httpd, then you should get it from the same place you got your binary distribution of httpd.
You probably got it from ApacheLounge, which BTW is not directly-affiliated with the Apache Software Foundation, but has been providing Windows binaries for quite some time and seems to be reputable. YMMV.

after XAMPP install on Mac Sierra - it works, but there is no XAMPP folder. Where is everything?

I have installed XAMPP. It works. I'm trying to figure out the following:
1/ it appears there are now TWO apache servers on my mac. XAMPP just installed an additional server. One is already installed on the default Sierra OS. Is that correct?
2/ I can't find where XAMPP is reading files (document root). in the newly created directory: XAMPP.APP, the file structure is not as indicated in the FAQ's. For example, there is no xamppfiles or logs directory in the XAMPP.app directory.
Many thanks in advance
I installed XAMPP-VM (VM - as in virtual machine). Therefore, in the XAMPP application, I needed to click on "Volumes" and select "Mount" . I can then see this mounted volume in the MAC finder under "Shared". From there, I can get to all the necessary files including "lampp/htdocs".
I haven't encountered a web server on the default installation of macOS.
Run XAMPP in the applications folder and then click on the 'Open Terminal' button. At the prompt, type cd /opt/lampp and this is the document root.

installing and running Redis and Memcached on Xampp on Windows

I have a Win 10 (Creator edition) PC, running Xampp with Apache and MySQL.
I need to install and run Redis and Memcached (not memcache) on it.
I've looked it up and found out that all I need to do is to enable the existing extensions located in the /xampp/php/ext folder for these components.
So:
I don't have a DLL file for memcached (again, not memcache) there.
(everything I found for this matter is talking about enabling the existing extension, but again - I need memcached and not memcache)
I do have the php_redis.dll file under the /xampp/php/ext folder and I enable it in the php.ini file, but when I run "phpinfo()" in my code, I don't see "redis" in the list of running components there.
What am I missing here and how can I get these two "clowns" to run on my Win-based Xampp system??

How to upgrade Apache on a Windows server?

I have just upgraded our webserver from PHP 5.3.6 to 5.3.10, and I now want to upgrade Apache as well from 2.2.17 to 2.2.22 (on a Windows Server). How do I go about this in a good way (on a live webserver)? A little downtime is alright, but not too much.
Apache is installed via an MSI installer and I'm not sure how to upgrade safely with the least downtime.
Do I just download the latest installer and install that? And what about my config files? I don't think it's possible to have both instances installed 'next to each other'? Or is it?
For anyone else who searches for this, I found that uninstalling the old Apache (in my case, 2.2.22) from Add/Remove Programs and installing the new version (in my case, 2.2.24) kept all the previous settings.
We had locked down the httpd.conf file and had an application that modified/added files in the "htdocs" directory.
Upon uninstalling and re-installing, all of these files were left unchanged and the new version of Apache Server is reflected.
Download a latest version of apache installer.
Make the necessary config changes.
Run it on a different port, other than your live server.
If things work well, correct the port number, and replace.
It will really take a little down-time.
I did it today on windows server 2012R2, apache was installed from "source" (installer was not used-updated to 2.4.55):
1.Stop apache service
2.Rename apache directory (from C:\Apache24 to C:\Apache24-old)
3.Extract Apache24 folder from zip archive downloaded from apache web site to original location (C:\)
4.Copy conf folder from previous installation to the extracted folder (Copy C:\Apache24-old\conf to C:\Apache24\conf-overwrite)
5.(Optional), if you have any certs copy it from C:\Apache24-old\ to C:\Apache24
6.Start apache service,no issues faced

Uninstalling user install of Apache on Mac Mini

I got a MacMini at work for development, and was asked to follow this article to install SVN on it: http://developer.apple.com/tools/subversionxcode.html The article assumes that only Apache 1.3 was installed and asks the reader to install Apache 2. I've since learned that the MacMini has Apache 2 already installed. So basically I've installed two versions of Apache 2. The preinstalled one has access to PHP, so I wanted to remove my version, but I'm unsure of how.
My version has httpd.conf stored at:
/usr/local/apache2/conf/httpd.conf
And the preinstalled version has it stored at:
/etc/apache2/httpd.conf, which I believe is an alias for /private/etc/apache2/httpd.conf
Thanks for your help
Delete the Apache2 folder from the location you specified, /Library/StartupItems/Apache2, and /Library/Receipts/Apache2.pkg according to:
http://www.glinder.com/bulkfiles/UNIXInfo/Apache2_Install_Guide.pdf