Change Liferay 6.1.2 logfile location - liferay

Does anyone know how I can tell liferay to put its logfile in a location of my choise? Currently all log files are stored in ~/logs. I'd rather hav them in /usr/jboss/liferay/logs due to file system storage limitation.
Thanks for your help and regards
Sebastian

Found it. Set liferay.home in portal-ext.properties to avoid default-location in users home.

Related

Datahub extension for Hybris 6.2.0.10

i'm unable to find the jar file to connect mysqldb with Hybris. I don't have access a SUser id or access to Wiki. Assuming its a very small file, can anyone please send me the path or email me the file (sagarmeena416#gmail.com)?
datahub-extention-archetype-6.2.0.10-RC4.jar file
I am looking for "datahub-extention-archetype-6.2.0.10-RC4.jar" file not MySQL connector jar. Please help, I have read the links users had posted and its not the same
Thanks in advance!
I have seen this file (with a different version) under "hybris/bin/ext-integration/datahub/solution-book" in DataHub 1808. But, I have not seen a DataHub installer for 6.2 in SAP SWDC.
You can try to create Incident ticket on SAP: https://support.sap.com/en/my-support/product-support.html
Maybe they can help you.

Backing up connman settings on linux

I am tasked to do backup and restore for networking settings on linux which uses ConnMan. Is it possible for me to do so by copying settings inside /var/lib/connman and place them in the same folder when doing restore?
If not, any suggestion that I can use instead? Thanks in advance.
I have emailed Jukka Rissanen, the person who works behind ConnMan. He replied this;
Yes, you can backup /var/lib/connman and /var/lib/connman-vpn
directories and restore them to same places to get the settings back.
Note that if you restore to different machine than what the backup is
from, some settings might not be available because network interface mac
address is part of the path name of the settings file.
Cheers,
Jukka
Hope this helps anyone who is looking for the answer in the future.

Liferay + Glassfish 3.1.1 Location of portal-ext.properties file?

Where does the portal-ext.properties file go before the liferay war file is deployed?
It's typically the folder where your appserver resides. if I remember correctly, glassfish typically has two nested "glassfish" folder - there it'd be within the first.
The best way to explore that yourself (and to be sure) is to put your portal-ext.properties in every location you guess it might be, then startup the server and examine the log. There it mentions which file is being read.
Also, AFAIK portal-ext.properties will also be read from the user's home directory if found there - careful, when you run a server like glassfish, that might be a different user account than your own.
domains/domain1/applications/liferay-portal/WEB-INF/lib/portal-impl.jar >>> /content/
you will find all translation files there.

php.ini configuration changes in shared hosting account

Am trying to override the default php.ini configuration using .htaccess / ini_set, but the configurations are not getting reflected while executing the script. Here the PHP is installed as fastcgi and am in a shared hosting account. Is there any way to change the php.ini settings or I need to upgrade my account to virtual dedicated server. Please help in this regard.
Thanks for your answers,
to be more elaborate, i want to change the max_execution_time of my php script as am handling with a huge log file need to be parsed. This script exceeds the default configuration in php.in (i.e) 30 secs. As my site is in the shared hosting, am not able to configure it in php.ini, they given a (php.ini)file in the document root ans ask us to configure the values but that is not reflecting.I tried the dynamic way using ini_set, same result.
The include path is .:/usr/local/php5/lib/php
I doubt you will be able to modify everything in the php.ini file on a shared host. The host could've turned the whole ini_set() function off for all I know! A virtual dedicated server might be what you're looking for (I have never encountered this stuff, as I run my own servers).
Just wondering, what are you trying to set?
Try to create a new php.ini file in the directory from where you are executing your script with your required php.ini environment variables.. Also, if it's cPanel hosting that you are using.. there's one more setting that you need to change in the cPanel.. you might be allowed access to turn this setting on or off depending on your web host. I'll post the setting in a moment.. Please confirm if you use cPanel hosting?
For most shared hosting environments, having a copy of php.ini file in your public_html directory works to override the system default settings. A great way to do this is by copying the hosting company's copy. Put this in a file, say copyini.php
<?php
system("cp /path/to/php/conf/file/php.ini /home/yourusername/public_html/php.ini");
?>
Get /path/to/php/conf/file/php.ini from the output of phpinfo(); in a file. Then in your ini file, make your amendments
Delete all files created during this process (Apart from php.ini of course :-) )

How to control IIS 5.1 from command line?

I found some informations about controlling IIS 5.1 from command line via adsutil.vbs (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true). The utility is available at c:\InetPub\AdminScripts.
The utility throw only errors like the following:
ErrNumber: -2147463164 (0x80005004)
Error Trying To GET the Schema of the property: IIS://localhost/Schema/ROOT
Can you tell me, how to check if there exists a virtual directory and create it, if it does not exist?
Hope this helps you.
http://www.codeproject.com/KB/system/commandlineweb.aspx
I could not comment your post, so I have to write a new message. I was able to use the script CreateWebDir.vbs from your link and use it to create/update my virtual directory with only one call:
CreateWebDir.vbs DirName Path 80
If the virtual directory already exists, it changes the path and that's exactly, what I need. Thank you!

Resources