FAQ
PHP was installed from testing repository, because standard repository has too old version.- how to setup php5-mysql?
apt-get -t testing install php5-mysql
- how to setup phpmyadmin?
apt-get -t testing install phpmyadmin
MySQL configured by default to allow access only from localhost and it is listening only to localhost. If you want to access it from your home computer then you need to do next.
edit /etc/mysql/my.cnf and set bind-address to 0.0.0.0bind-address = 0.0.0.0then connect to MySQL and runt this
mysql> GRANT ALL PRIVILEGES ON . TO ‘root’@'%’ IDENTIFIED BY ‘some_strong_password’; mysql> FLUSH PRIVILEGES;
Sun Java JDK is installed by default. You may setup these variables in your system .
export JAVA_HOME=/usr/lib/jvm/java-6-sun export JAVA_OPTS=-Djava.awt.headless=true
Tomcat 6.x is also installed and it is running after reboot.
/etc/default/tomcat6 – configuration file for Tomcat
/var/lib/tomcat6/ – default Tomcat Home directoryhow to start|stop|restart tomat
/etc/init.d/tomcat start|stop|restart
Apache 2.2 + Tomcat connection how to. We suggest to do it with Proxy Module from Apache.
First you need you enable Proxy module.
a2enmod proxy a2enmod proxy_http
a2enmod proxy_ajp
then add to your virtual host config, by default it is /etc/apache2/sites-enabled/000-default
ProxyPass /tomcattest ajp://localhost:8009/tomcattest/
ProxyPassReverse /tomcattest ajp://localhost:8009/tomcattest/
after adding ProxyPass to 000-default, it will look like this
<VirtualHost *:80>
ServerAdmin webmaster@localhost
….
ProxyPass /tomcattest ajp://localhost:8009/tomcattest/
ProxyPassReverse /tomcattest ajp://localhost:8009/tomcattest/
….
</VirtualHost *:80>
Required Packages :
acpid– This package is required for correct stop of VDS in case of reboot of root server.
