sudo apt-get install tomcat6
source : https://help.ubuntu.com/11.04/serverguide/C/tomcat.html
# locate php.ini-development /usr/share/doc/php5-common/examples/php.ini-development
sudo a2enmod rewrite
sudo service apache2 restart
sudo apt-get install php5-mcrypt
sudo apt-get install php5-mcrypt
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
sudo fuser -cuk /var/lib/dpkg/lock; sudo rm -f /var/lib/dpkg/lock
$ sudo apt-get install php5-cli php5-dev php-pear Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: autoconf autoconf2.13 automake automake1.4 autotools-dev libltdl-dev libssl-dev libtool m4 php5-common shtool zlib1g-dev Suggested packages: autobook autoconf-archive gnu-standards autoconf-doc gettext libtool-doc automaken gfortran fortran95-compiler gcj php5-suhosin The following NEW packages will be installed: autoconf autoconf2.13 automake automake1.4 autotools-dev libltdl-dev libssl-dev libtool m4 php-pear php5-cli php5-common php5-dev shtool zlib1g-dev 0 upgraded, 15 newly installed, 0 to remove and 5 not upgraded. Need to get 0B/8,690kB of archives. After this operation, 27.7MB of additional disk space will be used. Do you want to continue [Y/n]? y Selecting previously deselected package m4. (Reading database ... 127272 files and directories currently installed.) Unpacking m4 (from .../archives/m4_1.4.13-2_i386.deb) ... ...
sudo /usr/sbin/apache2 -k restart
Open /etc/host . Since file hosts is owned by root-like user, we need to use sudo.
# sudo hosts
To configure apache webserver VirtualHost in Ubuntu server is different from other linux OS like fedora/redhat/centos. In Ubuntu apache2 have separated the virtual host into sites-available and sited-enabled directory.
sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart
sudo apt-get install mysql-server php5-mysql
get
, put
, delete
, and query
. You can use the low-level API to implement other interface adapters, or just use it directly in your applications.<?xml version="1.0" encoding="UTF-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <persistence-unit name="transactions-optional"> <provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider> <properties> <property name="datanucleus.NontransactionalRead" value="true"/> <property name="datanucleus.NontransactionalWrite" value="true"/> <property name="datanucleus.ConnectionURL" value="appengine"/> </properties> </persistence-unit> </persistence>
Add Eclipse Helios Update Site |