<IMG SRC="next.jpg">
</A<A HREF="http://www.pageresource.com">
<IMG SRC="next.jpg">
</A
--
--
<VirtualHost *>
# Basic setup
ServerAdmin webmaster@test-server.com
ServerName drupal.test-server.com
ServerAlias drupal.test-server.com
DocumentRoot /var/www/drupal/
# HTML documents, with indexing.
<Directory />
Options +Includes
</Directory>
# CGI Handling
# ScriptAlias /cgi-bin/ /home/www/www.foo.com/cgi-bin/
# <Location /cgi-bin>
# Options +ExecCGI
# </Location>
#Logfiles
ErrorLog /var/log/test-server.com/drupla/error.log
CustomLog /var/log/test-server.com/drupal/access.log combined
</VirtualHost>
<VirtualHost *>
# Basic setup
ServerAdmin webmaster@test-server.com
ServerName www.messenger.test-server.com
ServerAlias messenger.test-server.com
DocumentRoot /var/www/ajaxim/
# HTML documents, with indexing.
<Directory />
Options +Includes
</Directory>
# CGI Handling
# ScriptAlias /cgi-bin/ /home/www/www.foo.com/cgi-bin/
# <Location /cgi-bin>
# Options +ExecCGI
# </Location>
#Logfiles
ErrorLog /var/log/test-server.com/ajaxim/error.log
CustomLog /var/log/test-server.com/ajaxim/access.log combined
</VirtualHost>
how to delete user assigned for a particular database*
DELETE FROM user WHERE User='Dude3' AND Host='localhost';
how to delete permisission for particular db
DELETE FROM user WHERE User='Dude3' AND Host='localhost';
how to grant all ( permission) to a certain database for a particular user to use this DB
GRANT ALL ON joomla.* to 'joomla'@'localhost' IDENTIFIED BY '';
delete databse
DROP DATABASE dbname
<?php
include("config.php");
mysql_connect("$dbhost", "$dbuname", "$dbpass");
mysql_select_db("$dbname");
echo mysql_error();
phpinfo();
?>
# HTML documents, with indexing.
<Directory />
Options +Includes
</Directory>
# CGI Handling
# ScriptAlias /cgi-bin/ /home/www/www.foo.com/cgi-bin/
# <Location /cgi-bin>
# Options +ExecCGI
# </Location>
#Logfiles
ErrorLog /var/log/test-server.com/joomla/error.log
CustomLog /var/log/test-server.com/joomla/access.log combined
</VirtualHost>
restart apache 2
now try http://www.test-server.com/administrator/ -----> admin login
http://www.test-server.com -----> your site
all holds true if DNS settinga are changed ( i have used a internal DNS server )
--
apt-get install apache2 php5 libapache2-mod-php5
2. Installing MySQL Database Server
apt-get install mysql-server mysql-client php5-mysql
--
--
#!/bin/sh
echo "this is a script tp install postfix fro virtual domains "
apt-get install -y postfix-mysql
or you can also try
#!/bin/sh echo "this is a script tp install postfix fro virtual domains " #apt-get install -y postfix-mysqlapt-get install postfix-mysql <<>
y
END
if you wan to install many packages ( put in loop )
#!/bin/sh
echo "this is a script tp install postfix fro virtual domains "
for package in package1 package2 package3
do apt-get install $package <<>
y
END
done
hope this helps you!!!!
$TTL 86400
$ORIGIN test-server.com.
@ IN SOA ns1.test-server.com. admin.test-server.com. (
2004042601 ; serial
21600 ; refresh
3600 ; retry
604800 ; expires
86400 ) ; minimum
IN NS ns1.test-server.com.
IN MX 10 mail.test-server.com.
IN A 192.168.0.242
ns1 IN A 192.168.0.242
www IN A 192.168.0.247
ftp IN A 192.168.0.247
mail IN A 192.168.0.244
aggi IN A 192.168.0.247