Can I migrate the installed OpenAM to another machine? - openam

Thank you everyone in advance... ^^;
My manager asked me to migrate the installed OpenAM (already used) to another machine (newly obtained).
I tried to migrate it by file level.
(.openamcfg folder, openam folder, tomcat whole folder, ...)
But, after file migration... first access to /openam, it showed initial page(wizard) again. (no using installed configurations)
So, I should do first step. (amadmin password setting, and so on...)
Hmm... Is there any solution for pre-installed OpenAm instance migration?
If No, I can tell her there's no migration way.

Migrating the files should be enough, however you must make sure that :
The .openamcfg folder is in Tomcat's home folder
The file inside the .openamcfg folder contains a valid path to the openam folder
The .openamcfg and openam folders can be read/write by the user who runs the Tomcat service
The webapp context (the part of the URL after the server's IP address, typically /openam) stays the same
Also, when you copy the files, you must first properly stop the Tomcat service, especially if you use OpenAM's embedded datastore.

Related

How can I change the directory of weblogic installation?

I have the Oracle Weblogic binaries installed in a particular location on linux servers. For example, -
/oracle/middleware1211/
I also have the 'user_projects/domains' installed in the same directory. For example, -
/oracle/middleware1211/user_projects
My question is , how do I reconfigure/move the "user_projects" or "domains" directory out of the current directory ? For example, location should be, -
/oracle/user_projects
Not planning to rename the domains , just move the directories so we have a same directory structure across all weblogic environments.
We are in the process of consolidation of all our Weblogic environments, and one of the steps is getting the domains moved outside the main Weblogic binary installation.
Thank you for your replies in advance.
I have tried using , reconfig.sh , to change the installation directory, but could not get it to work as I wanted to. Hoping there are some other alternatives or methods I can look into.
You can move a Weblogic Domain, changing the DOMAIN_HOME in the domain scripts.
If you check all the scripts in the path /oracle/middleware1211/user_projects/domain_name/bin, you have this variable, with the current domain path, in some of them.
You have to copy all the domain directory to the new location, the best way is with rsync command and the domain stopped. You can sincronice the first time with the domain started, but i recomend you to do a last sincronization when you stop the domain, before the domain path changes.
After that, you have to change all the DOMAIN_HOME variables in all the scripts located in the new location (/new_domains_location/domain_name/bin/), with the new domain path and starts the domain.
Starts first the admin server in the new location, and check in the log files that all is correct, then starts the managed servers.
If you have any problem and does not works, you can starts the domain in the old location, that is unchanged and have to works.
Obviously, you could make a first attempt in a test domain (or a new installed domain), to verify that the process is correct. Then you have to do the same steps with the rest of the domains.
Hope this can help you.

Possible to use Virtual Path to an external disk on Plesk Managed Windows server?

After getting a helpful answer from this post I want to store media on a separate harddrive on the windows server. Is it possible to make those files available via http?
I soon discovered that Plesk does not allow me to create a virtual path that points to a location outside of my website root. I want the virtual path to point to a folder on D: (an extra disk, not the same as the website root directory)
Only two possible solutions I could think of, although I can't find them any where.
1) Maybe plesk has an advanced configuration file that prevents it from overwriting certain things in IIS when it runs its maintenance jobs or updates, specifically the Virtual Path I created directly in IIS outside of plesk.
2) Maybe there is a third party component available that offers this functionality, setting virtual paths outside of web root or the config file I just mentioned in #1.
Any other solutions are also welcome.
cd "%plesk_vhosts%\"domain.tld\httpdocs
mklink /J point c:\outOfSpace
Now provide permissions to "psacln" group to c:\outOfSpace and that's it.
Also you can create "point" not in httpdocs but in web space root and than from Plesk create Virtual Folder inside /httpdocs with needed access permissions.
There is issue that your custom permissions may lost after Plesk upgrade, this KB article describe how your can avoid it kb.sp.parallels.com/111194

How to deploy a data file on tomcat web server in linux debian OS

I have a web application developed using JSP and Servlet. This web application is deployed on server having Debian Linux as OS and The Tomcat version is 5.5.31. As this applications required some data files, These data files will be get created automatically when setting are done using a standalone java application. This application is deployed on another machine. This setup is done. As I dont know much about Debian Linux and where my application is goes on it so I have some doubts in deployment of these autimatically generated data files which are as follows
As I made the .war file of my web application and deployed it using Tomcat Manager. so I dont know where exactly my application goes. I dont know the exact path. How do I find it?
Is it possible to create FTP for this web application which is deployed on Debian Linux server? I think that if creating FTP is possible then I will directly connect to FTP using my Stand alone Java program and will easily do the creation of the file and other file and directory manipulation.
If you've deployed a war, the application isn't anywhere on the filesystem as such. Most servers will unpack the war somewhere, but you shouldn’t rely on where that is.
I can think of several options:
getServletContext().getAttribute("javax.servlet.context.tempdir") to get the application's temp directory, then inform you external program of this location and place the file somewhere in there in a know location.
Arrange for a "know location" outside of the application, such as /tmp/somewhere or /var/cache/your-app/somewhere to place such files. (Note: /tmp is usually cleaned on startup of a linux machine)
As for getting the file onto the server from a remote machine: You could get your client to upload the file directly to your webapp (something like Apache HTTPClient will help you there), which means that you could do without the "know location" above. If you want to do this outside of the application though, I'd avoid FTP (due to security). Instead, I'd go with scp (secure copy).
Edit: Reading between the lines a little, you mention "setting" in the data file. If this is a configuration file which is not changed once the app is running, you may find it more convenient to have a "deploy" step on your server which simply takes the settings file and adds it to the war before deploying it. This is easy enough with "ant war" for example. You could then access the file using getClass().getResourceStream(..) or such.

Transfer Resources to fresh installation

I have live website running on MODx Revolution 2.1.3pl. Some days back I had to restore my entire site from backup. This messed up some file ownerships (for packages installed and images uploaded etc.) because in my server PHP runs as 'nobody' user which is different from my cPanel user.
Now I can't change much things on the server(like installing suPHP because its a shared server) and I don't know which all files are created by PHP, I decided to wipe the site clean and perform a clean install. My site has a large number of already published resources which is impossible to be posted into the new site individually.
Is there any way that I can transfer those resources to the new installation?
Why don't you create a mysql dump of your old site (with phpmyadmin or the like) and import this into a new database, which you use to run your new site from?
I've not tried it myself but provisioner seems to do (or at least claim to) what you need.

Can SharePoint be installed by simply copying files?

I have a SharePoint website I need to move to another completely different server.
Can I do this by simply copying files from IIS to the other server's IIS folder?
I assume I need to copy the database as well as change the config file's database connection.
I assume I don't need to install anything on the server other than ftp files across i.e. I don't need to install files via an installer or exe.
The short answer is no.
SharePoint includes Service applications (ex. OWSTimer) that have to be registered and installed.
Also there are COM components that must be registered properly.

Resources