I used the configs/dev/local/portal-ext.properties file and this contains:
# Hypersonic
#
jdbc.default.driverClassName=org.hsqldb.jdbcDriver
jdbc.default.url=jdbc:hsqldb:c:/data/hsql/lportal
jdbc.default.username=
jdbc.default.password=
Still when I add content to the site none of the lportal files have been changed in the c:/data/hsql/ folder?
The default configuration uses Hypersonic and creates the lportal folder inside LIFERAY_HOME/data path, see portal.properties
But in some Liferay 7 testing I realized that lportal files are not written to file until you stop Liferay.
So try stoping Liferay and check the files after that.
A last warning: Hypersonic is not recommended for production use. My advice: never use Hypersonic, install Postgresql or MySQL and configure Liferay to connect to them.
Related
I have the following directory structure
The circled directories are the paths of the liferay tomcat server and the sdk respectively.
and I have the file build.osama.properties with the following settings :
app.server.parent.dir=D:\sources\lr_bundles\liferay_tomcat\liferay-ce-portal-7.0-ga3
app.server.tomcat.dir=${app.server.parent.dir}/tomcat-8.0.32
and when I try to create a liferay plugin project it keeps saying :
I am using LR 7 ga3 with tomcat 8 and sdk 7 ga3
Try with the slash using the *NIX way, or at least, double the '\', as it may be understood as an escape character.
app.server.parent.dir=D:/sources/lr_bundles/liferay_tomcat/liferay-ce-portal-7.0-ga3
or
app.server.parent.dir=D:\\sources\\lr_bundles\\liferay_tomcat\\liferay-ce-portal-7.0-ga3
and see if it helps.
Regards
If I were you, I'd reinstall the Liferay one more time with brief step-by-step instruction.
In a few words, you should install:
Database (if you want to use custom one)
Liferay Portal
Liferay IDE
Plugins SDK.
In the plugins SDK folder you should copy build.properties file, and change the copied build.propertis file name to build.osama.properties. (check this step one more time, may be your profile is named as Osama instead of osama). Then you should open newly created build.osama.properties file and uncomment following lines:
app.server.type=tomcat
app.server.parent.dir=${sdk.dir}/../bundles
app.server.tomcat.dir=${app.server.parent.dir}/tomcat-7.0.42
app.server.tomcat.deploy.dir=${app.server.tomcat.dir}/webapps
app.server.tomcat.lib.global.dir=${app.server.tomcat.dir}/lib/ext
app.server.tomcat.portal.dir=${app.server.tomcat.dir}/webapps/ROOT
Make sure that app.server.type and app.server.dir properties should be correct.
In my case I had to combine previous answers ('/' instead of Windows' default '\') AND move liferay portal directory to C:/ (and point build.Username.Properties file to this directory).
I'm trying to remove sample data (Welcome screen and everything else) from my Liferay server.
I tried to:
remove all directories from the webapps directory except ROOT directory
create new (blank) portal-ext.properties in ROOT/WEB-inf/classes (there was no portal-ext.properties file)
search via Google :)
Nothing of the above helped. Thank you for your advices.
You might have configured a database, or are using the built-in demo hsql database. This holds all the regular data. If you've configured Liferay to access another database either remove the tables from that database or point to another one. There's also the document library that holds documents and images (the binary content). By default they all live in the data directory, on the same level as your tomcat directory (assuming you use a bundle)
A new blank portal-ext.properties will not help you, as it overrides all the standard values defined in Liferay. If there's no content, you're using all the default. And the file should rather be in ${liferay-home}, e.g. the directory that also has the tomcat directory in a bundle.
As you've removed all content and bundled webapplications anyway, you can also just install a new bundle in another directory and use it, pointing it to a new database.
Working with liferay and portlets from last 3 weeks.
I downloaded the bundled liferay server and placed it on my local drive.
I did the set up and was able to access localhost:8080 properly.
I also created some custom portlets and when build them in eclipse the war files were getting deployed in the path C:/liferay/deploy.
Now, I changed the server location, I wanted to have the server in D:/ drive.
When I did the transition, started the tomcat server from D:/liferay/tomcat/bin/startup.bat
and then build the project, the war files are still building in c:/ drive.
When I copy the war file manually from c:/liferay/deploy to D:/liferay/deploy it gets deployed successfully.
I want the war file to be created directly in the d:/liferay/deploy folder.
Can someone help me understand what all changes do i need to do here?
If you are using Liferay plugin sdk then there would be file named as
build.<userid>.properties
in your plugin sdk.Change the below properties as per new configuration and give a try
app.server.portal.dir
app.server.lib.portal.dir
app.server.lib.global.dir
app.server.deploy.dir
auto.deploy.dir
I downloaded Liferay files from a livesite to setup a local environment for some local development. After downloading the files, I run the the catalina file (./catalina.sh start) But unfortunately I got a 404 error.
I'm not sure where to start in setting up Liferay locally.
I think there are some initial settings that I should be doing as I had moved from live server to a local machine.
I think I need to also connect my database. I now have a local copy of the database and is already imported on MySQL. I just need to connect them (im guessing entering my user and password for the database).
Other than downloading the files and starting up the server, I really haven't done anything else yet as I am not sure what setting and configuration I should be doing.
I'm new to Liferay, I apologize for my silliness.
Edit
my portal-ide.properties settings:
See portal-ext.properties or someelse *.properties file in the root folder of portal.
For error details, see the log file at liferay/tomcat/logs/catalina.out
I have to update, add and fix a drupal website.
The website is on a live working server and i have full access to everything.
Drupal version is: Drupal 6.22, 2011-05-25
I want to make a copy on my machine (win7+iis+(any php needed)) to be able to change and test my updates without touching the server.
I already copied the project folder and i found the database file.
The Database is odb file.
Download whole database. You can use drush or Backup_migrate. Then setup a fresh drupal system and inject the whole database there.
As I fortunately never used Windows, unfortunately I can't give you OS specific details. But xampp or similar solutions are there.
Get the backup of your project files folder and databse from c panel or from the server folders and SQL command prompt
Then install wamp or xampp in your local system place project folder in c:/wamp/www folder and create a database in phpMyAdmin and import database with db backup file.
Then run your project as localhost/YouProjectFolder in browser
config the default.ini the site folder and you all set