Lighttpd is a secure, fast, standards-compliant web server designed for speed-critical environments. This tutorial shows how you can install Lighttpd on an OpenSUSE 11.4 server with PHP5 support (through FastCGI) and MySQL support.
First we install MySQL 5 like this:
yast2 -i mysql mysql-client mysql-community-server
Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:
chkconfig -f --add mysql
/etc/init.d/mysql start
To secure the MySQL installation, run:
mysql_secure_installation
Now you will be asked several questions:
server1:~ # mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none): <-- ENTER
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n] <-- Y
New password: <-- fill in your desired MySQL root password
Re-enter new password: <-- confirm that password
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] <-- Y
... Success!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] <-- Y
... Success!
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] <-- Y
- Dropping test database...
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] <-- Y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
server1:~ #
Now your MySQL setup should be secured.
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Saturday, September 24, 2011
Installing yiiframework in ubuntu 10.04
download yiiframework in yii's web .
uncomprese it , for example
$tar -xvzf yii-1.1.8.r3324.tar.gzrename directory yii-1.1.8.r3324 with yii
$mv yii-1.1.8.r3324 yiimove yii directory into your home
$mv yii /home/usercreate directory ~/bin for accesing yii more simple in your home directory
~$mkdir binmake sure that "bin" directory added in ~/.profile add list
if [-d "$HOME/bin" ] ; then $PATH="$HOME/bin":$PATH ficreate link inside of bin with yii using
ln -s /home/user/yii/framework/yiic yiictest with create project using
$yiic webapp nameofyourwebif you got some error , try to do this
$chmod +x /home/user/yii/framewor/yiiccreate project using
$./yiic webapp nameofyourwebPHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0 Create a Web application under '/home/gelo/yii/framework/demo'? [Yes|No] yes
Tuesday, August 23, 2011
Write Messages to Login users Throught Terminal
To Write message to another users in terminal you can use command write but you must check who online users in there .
checking users whos online
gelo tty7 2011-08-24 08:52 (:0)
pipit pts/3 2011-08-24 11:19 (:0.0)
root pts/4 2011-08-24 11:19 (:0.0)
for example root user will send message for pipit user in pts/3
#write pipit pts/3
Message from ROOT@HOST on pts/4 at 11:42 ...
YOU CAN TYPE MESSAGE HERE
EOF
when hit the enter , your messages will be send to that terminal . finally type Ctrl+D to to terminate write.
checking users whos online
#who
gelo tty7 2011-08-24 08:52 (:0)
pipit pts/3 2011-08-24 11:19 (:0.0)
root pts/4 2011-08-24 11:19 (:0.0)
for example root user will send message for pipit user in pts/3
#write pipit pts/3
Message from ROOT@HOST on pts/4 at 11:42 ...
YOU CAN TYPE MESSAGE HERE
EOF
when hit the enter , your messages will be send to that terminal . finally type Ctrl+D to to terminate write.
Write Messages to Login users Throught Terminal
To Write message to another users in terminal you can use command write but you must check who online users in there .
checking users whos online
gelo tty7 2011-08-24 08:52 (:0)
pipit pts/3 2011-08-24 11:19 (:0.0)
root pts/4 2011-08-24 11:19 (:0.0)
for example root user will send message for pipit user in pts/3
#write pipit pts/3
Message from ROOT@HOST on pts/4 at 11:42 ...
YOU CAN TYPE MESSAGE HERE
EOF
when hit the enter , your messages will be send to that terminal . finally type Ctrl+D to to terminate write.
checking users whos online
#who
gelo tty7 2011-08-24 08:52 (:0)
pipit pts/3 2011-08-24 11:19 (:0.0)
root pts/4 2011-08-24 11:19 (:0.0)
for example root user will send message for pipit user in pts/3
#write pipit pts/3
Message from ROOT@HOST on pts/4 at 11:42 ...
YOU CAN TYPE MESSAGE HERE
EOF
when hit the enter , your messages will be send to that terminal . finally type Ctrl+D to to terminate write.
Friday, July 29, 2011
Installing DVWA (Damn Vulnerable Web Application) in Opensuse 11.4
DVWA (Damn Vulnerable Web Application ) is a web application that is damn vulnerable , its that for test web developer skills and tools in legal environtment . Help us to prevent our web from attacker , better understanding our project to build more secure .
Download DVWA in here
copy to directory /srv/www/htdocs [ in open suse ]
create a database in your local machine
>mysql create database dvwa;
to C0nfigure it , change your database c0nfiguration in /config/config.inc.php
# Database variables
$_DVWA = array();
$_DVWA[ 'db_server' ] = 'localhost';
$_DVWA[ 'db_database' ] = 'dvwa'; >> your database name
$_DVWA[ 'db_user' ] = 'root'; >> your database user
$_DVWA[ 'db_password' ] = ''; >> your database password
config php.ini in /srv/www/htdocs/dvwa/php.ini
change it to be
open in localhost
for setup
c0nfig database
Download DVWA in here
copy to directory /srv/www/htdocs [ in open suse ]
#chmod 777 DVWA-1.0.7.zip
create a database in your local machine
>mysql create database dvwa;
to C0nfigure it , change your database c0nfiguration in /config/config.inc.php
# Database variables
$_DVWA = array();
$_DVWA[ 'db_server' ] = 'localhost';
$_DVWA[ 'db_database' ] = 'dvwa'; >> your database name
$_DVWA[ 'db_user' ] = 'root'; >> your database user
$_DVWA[ 'db_password' ] = ''; >> your database password
config php.ini in /srv/www/htdocs/dvwa/php.ini
change it to be
; This file attempts to overwrite the original php.ini file. Doesnt always work.
magic_quotes_gpc = Off
allow_url_fopen on
allow_url_include on
open in localhost
for setup
c0nfig database
Monday, July 18, 2011
Problem while Installing AdobeAir and TweetDeck in OpenSuse 11.4
TweetDeck is one of twitter client aplications that most popular in twitter users . For install this aplication , its need AdobeAir aplication as requirement .
First , we can download AdobeAir in AdobeSite , choose version that you want to download and then you can download it .
After you have some file AdobeAIRInstaller.bin , install it with type command in terminal
su ./AdobeAIRInstaller.bin
if got : No Such File or Directory
do this chmod 755 AdobeAIRInstaller.bin
Fixing with type su ./AdobeAIRInstaller.bin
Download TweetDeck file in TweetDeck site , open file with Adobe AIR to run .air aplication .
when you used KDE DESKTOP edition in openSuse 11.4 usually there are some problem to sign in your account using TweetDeck . it can solved with manage your KWallet .
KWallet is a tool to managed the password your KDE system .
managed your password using Kwallet , after it , you can log in into your account using Tweet Deck .
Happy Sharing ,,
First , we can download AdobeAir in AdobeSite , choose version that you want to download and then you can download it .
After you have some file AdobeAIRInstaller.bin , install it with type command in terminal
su ./AdobeAIRInstaller.bin
if got : No Such File or Directory
do this chmod 755 AdobeAIRInstaller.bin
Fixing with type su ./AdobeAIRInstaller.bin
Download TweetDeck file in TweetDeck site , open file with Adobe AIR to run .air aplication .
when you used KDE DESKTOP edition in openSuse 11.4 usually there are some problem to sign in your account using TweetDeck . it can solved with manage your KWallet .
KWallet is a tool to managed the password your KDE system .
managed your password using Kwallet , after it , you can log in into your account using Tweet Deck .
Happy Sharing ,,
google-chrome – libpng12.so.0: cannot open shared object file
# download installer google-chrome choose *.rpm
http://www.google.com/chrome
#install google-chrome Opensuse 11.4
$sudo zypper in google-chrome-beta_current_i386.rpm
run google-chrome : applications > internet > web browser > google-chrome
problem that usually we have
/usr/bin/google-chrome: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
its means that google-chrome cannot running ,
this problem can solved with installing libpng12.so.0
$sudo zypper install libpng12*
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: libpng12-compat-devel-1.2.44-7.1.x86_64 conflicts with namespace:otherproviders(libpng-devel) provided by libpng14-compat-devel-1.4.4-2.1.x86_64
Solution 1: Following actions will be done:
do not install libpng12-compat-devel-1.2.44-7.1.x86_64
do not install libpng12-compat-devel-32bit-1.2.44-7.1.x86_64
Solution 2: deinstallation of libpng14-compat-devel-1.4.4-2.1.x86_64
Choose from above solutions by number or cancel [1/2/c] ©: 2
Resolving dependencies...
Resolving package dependencies...
The following NEW packages are going to be installed:
libpng12-0 libpng12-0-32bit libpng12-compat-devel libpng12-compat-devel-32bit libpng12-devel libpng12-devel-32bit
The following package is going to be REMOVED:
libpng14-compat-devel
The following recommended package was automatically selected:
libpng12-compat-devel
6 new packages to install, 1 to remove.
Overall download size: 337.0 KiB. After the operation, additional 828.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package libpng12-0-32bit-1.2.44-7.1.x86_64 (1/6), 73.0 KiB (166.0 KiB unpacked)
Retrieving: libpng12-0-32bit-1.2.44-7.1.x86_64.rpm [done (13.7 KiB/s)]
Retrieving package libpng12-0-1.2.44-7.1.x86_64 (2/6), 72.0 KiB (168.0 KiB unpacked)
Retrieving: libpng12-0-1.2.44-7.1.x86_64.rpm [done (87.3 KiB/s)]
Retrieving package libpng12-devel-1.2.44-7.1.x86_64 (3/6), 116.0 KiB (492.0 KiB unpacked)
Retrieving: libpng12-devel-1.2.44-7.1.x86_64.rpm [done (94.8 KiB/s)]
Retrieving package libpng12-devel-32bit-1.2.44-7.1.x86_64 (4/6), 8.0 KiB (3.0 KiB unpacked)
Retrieving: libpng12-devel-32bit-1.2.44-7.1.x86_64.rpm [done (11.8 KiB/s)]
Retrieving package libpng12-compat-devel-1.2.44-7.1.x86_64 (5/6), 61.0 KiB (53.0 KiB unpacked)
Retrieving: libpng12-compat-devel-1.2.44-7.1.x86_64.rpm [done (60.7 KiB/s)]
Retrieving package libpng12-compat-devel-32bit-1.2.44-7.1.x86_64 (6/6), 7.0 KiB (0 B unpacked)
Retrieving: libpng12-compat-devel-32bit-1.2.44-7.1.x86_64.rpm [done (6.7 KiB/s)]
Removing libpng14-compat-devel-1.4.4-2.1 [done]
Installing: libpng12-0-32bit-1.2.44-7.1 [done]
Installing: libpng12-0-1.2.44-7.1 [done]
Installing: libpng12-devel-1.2.44-7.1 [done]
Installing: libpng12-devel-32bit-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-32bit-1.2.44-7.1 [done]
try for run google-chrome again ....
http://www.google.com/chrome
#install google-chrome Opensuse 11.4
$sudo zypper in google-chrome-beta_current_i386.rpm
run google-chrome : applications > internet > web browser > google-chrome
problem that usually we have
/usr/bin/google-chrome: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
its means that google-chrome cannot running ,
this problem can solved with installing libpng12.so.0
$sudo zypper install libpng12*
Loading repository data...
Reading installed packages...
Resolving package dependencies...
Problem: libpng12-compat-devel-1.2.44-7.1.x86_64 conflicts with namespace:otherproviders(libpng-devel) provided by libpng14-compat-devel-1.4.4-2.1.x86_64
Solution 1: Following actions will be done:
do not install libpng12-compat-devel-1.2.44-7.1.x86_64
do not install libpng12-compat-devel-32bit-1.2.44-7.1.x86_64
Solution 2: deinstallation of libpng14-compat-devel-1.4.4-2.1.x86_64
Choose from above solutions by number or cancel [1/2/c] ©: 2
Resolving dependencies...
Resolving package dependencies...
The following NEW packages are going to be installed:
libpng12-0 libpng12-0-32bit libpng12-compat-devel libpng12-compat-devel-32bit libpng12-devel libpng12-devel-32bit
The following package is going to be REMOVED:
libpng14-compat-devel
The following recommended package was automatically selected:
libpng12-compat-devel
6 new packages to install, 1 to remove.
Overall download size: 337.0 KiB. After the operation, additional 828.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package libpng12-0-32bit-1.2.44-7.1.x86_64 (1/6), 73.0 KiB (166.0 KiB unpacked)
Retrieving: libpng12-0-32bit-1.2.44-7.1.x86_64.rpm [done (13.7 KiB/s)]
Retrieving package libpng12-0-1.2.44-7.1.x86_64 (2/6), 72.0 KiB (168.0 KiB unpacked)
Retrieving: libpng12-0-1.2.44-7.1.x86_64.rpm [done (87.3 KiB/s)]
Retrieving package libpng12-devel-1.2.44-7.1.x86_64 (3/6), 116.0 KiB (492.0 KiB unpacked)
Retrieving: libpng12-devel-1.2.44-7.1.x86_64.rpm [done (94.8 KiB/s)]
Retrieving package libpng12-devel-32bit-1.2.44-7.1.x86_64 (4/6), 8.0 KiB (3.0 KiB unpacked)
Retrieving: libpng12-devel-32bit-1.2.44-7.1.x86_64.rpm [done (11.8 KiB/s)]
Retrieving package libpng12-compat-devel-1.2.44-7.1.x86_64 (5/6), 61.0 KiB (53.0 KiB unpacked)
Retrieving: libpng12-compat-devel-1.2.44-7.1.x86_64.rpm [done (60.7 KiB/s)]
Retrieving package libpng12-compat-devel-32bit-1.2.44-7.1.x86_64 (6/6), 7.0 KiB (0 B unpacked)
Retrieving: libpng12-compat-devel-32bit-1.2.44-7.1.x86_64.rpm [done (6.7 KiB/s)]
Removing libpng14-compat-devel-1.4.4-2.1 [done]
Installing: libpng12-0-32bit-1.2.44-7.1 [done]
Installing: libpng12-0-1.2.44-7.1 [done]
Installing: libpng12-devel-1.2.44-7.1 [done]
Installing: libpng12-devel-32bit-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-1.2.44-7.1 [done]
Installing: libpng12-compat-devel-32bit-1.2.44-7.1 [done]
try for run google-chrome again ....
Adding Repository in OpenSuse 11.4
# from idrepo
penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di.../repo/oss/ idrepo-oss
penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di...o/non-oss/ idrepo-nonoss
# from kambing repo
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-guru/ kambing-guru
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-packman/ kambing-packman
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/update/11.4/ kambing-update
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib.../repo/oss/ kambing-oss
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib...o/non-oss/ kambing-nonoss
************************************************************************************************
# non-activated repo
penguintengil@linux-aue0:~> sudo zypper mr -da
# viewing list of repository
penguintengil@linux-aue0:~> sudo zypper ref
#install software using zypper
$sudo zypper install packagename
#uninstall software using zypper
$sudo zypper remove packagename
more options see $man zypper
penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di.../repo/oss/ idrepo-oss
penguintengil@linux-aue0:~> sudo zypper ar http://opensuse.idrepo.or.id/opensuse/di...o/non-oss/ idrepo-nonoss
# from kambing repo
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-guru/ kambing-guru
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse-packman/ kambing-packman
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/update/11.4/ kambing-update
penguintengil@linux-aue0:~> sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib.../repo/oss/ kambing-oss
penguintengil@linux-aue0:~>sudo zypper ar http://kambing.ui.ac.id/opensuse/distrib...o/non-oss/ kambing-nonoss
************************************************************************************************
# non-activated repo
penguintengil@linux-aue0:~> sudo zypper mr -da
# viewing list of repository
penguintengil@linux-aue0:~> sudo zypper ref
#install software using zypper
$sudo zypper install packagename
#uninstall software using zypper
$sudo zypper remove packagename
more options see $man zypper
Friday, June 10, 2011
Adding Repository and Install Web server in Centos5
Download lastest release
*for RPMforge repository
i386 ::
x86_64 ::
* Install the package
*c0nfigure
Open the RPMforge configuration file >> /etc/yum.repos.d/rpmforge.repo (entry priority=3)
for remi & epel repository
*download package
epel repository
*install package
*c0nfig
Updating packet
Install packet
or
Web Server Installation
*Install Apache and Mod_ssl
activating Apache start automatically after reboot
*Install PHP
Restart service httpd
*install Mysql
enter password mysql: YOURPASSWORD
for login mysql
Activate service myslq after restart
For configure httpd
DONE ! type in your browser http://localhost or http://yourip
*for RPMforge repository
i386 ::
x86_64 ::
* Install the package
*c0nfigure
Open the RPMforge configuration file >> /etc/yum.repos.d/rpmforge.repo (entry priority=3)
for remi & epel repository
*download package
#wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
epel repository
#wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
*install package
#rpm -Uvh remi-release-5-3.noarch.rpm epel-release-5-3.noarch.rpm
*c0nfig
#perl -pi -e 's/enabled=0/enabled=1/g' /etc/yum.repos.d/remi.repo
Updating packet
#yum update
Install packet
or
#yum --enablerepo=remi install packatename
Web Server Installation
*Install Apache and Mod_ssl
activating Apache start automatically after reboot
*Install PHP
Restart service httpd
*install Mysql
enter password mysql: YOURPASSWORD
for login mysql
Activate service myslq after restart
For configure httpd
DONE ! type in your browser http://localhost or http://yourip
Friday, December 17, 2010
menyembunyikan versi Apache
#gedit /etc/apache2/conf.d/security
cari
serverSignatur off >>> ini ajaa yg di aktifin
#serverSignatur on >>> yg ini jgn diaktifin yaa
udah . restart apache nyaa .
cek d localhost kalian ....
WAW udh gk ada kn label versi apache nyaa .... hhhh
Lets play your Codes :*
cari
serverSignatur off >>> ini ajaa yg di aktifin
#serverSignatur on >>> yg ini jgn diaktifin yaa
udah . restart apache nyaa .
cek d localhost kalian ....
WAW udh gk ada kn label versi apache nyaa .... hhhh
Lets play your Codes :*
Membuat Public_html
biasanya directory yang d pakai kan /var/www ..
untuk memudahkan , dibuat satu directory yang dapat di akses seperti /var/www . .
*bikin directory dulu di home kalian
$mkdir ~/public_html
*pindah directory ke /etc/apache2/mods-enabled
$cd /etc/apache2/mods-enabled
*kasih hak akses bwt ngLink ke /home/usermasing*/public_html
$sudo ln -s ../mods-available/userdir.conf userdir.conf
$sudo ln -s ../mods-available/userdir.load userdir.load
*abiss ntu restart apache ny yaa
$sudo /etc/init.d/apache2 restart
Taranggggg ....
coba buka d browser http://localhost/~usermasing*
bisaa kan ...
untuk memudahkan , dibuat satu directory yang dapat di akses seperti /var/www . .
*bikin directory dulu di home kalian
$mkdir ~/public_html
*pindah directory ke /etc/apache2/mods-enabled
$cd /etc/apache2/mods-enabled
*kasih hak akses bwt ngLink ke /home/usermasing*/public_html
$sudo ln -s ../mods-available/userdir.conf userdir.conf
$sudo ln -s ../mods-available/userdir.load userdir.load
*abiss ntu restart apache ny yaa
$sudo /etc/init.d/apache2 restart
Taranggggg ....
coba buka d browser http://localhost/~usermasing*
bisaa kan ...
Subscribe to:
Posts (Atom)



