mysql -p
31 Temmuz 2012 Salı
28 Temmuz 2012 Cumartesi
Centos 6 and Asterisk
Asterisk can be installed with Add/Remove Software. But when I did so and started it with the command;
service asterisk start
I wanted to use the Graphical User Interface of Asterisk and surprisingly!! dumped into trouble again..
Asterisk Gui also can be loaded by add/remove. Time to configure..
1) /etc/asterisk/http.conf
enabled=yes
bindaddr=0.0.0.0
bindport=8088
enablestatic=yes
redirect = / /static/config/index.html
2) /etc/asterisk/manager.conf
[general]
enabled = yes
webenabled = yes
[administrator]
secret = password
allow=0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
3) From wiki.asterisk ;
service asterisk start
I wanted to use the Graphical User Interface of Asterisk and surprisingly!! dumped into trouble again..
Asterisk Gui also can be loaded by add/remove. Time to configure..
1) /etc/asterisk/http.conf
enabled=yes
bindaddr=0.0.0.0
bindport=8088
enablestatic=yes
redirect = / /static/config/index.html
2) /etc/asterisk/manager.conf
[general]
enabled = yes
webenabled = yes
[administrator]
secret = password
allow=0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
3) From wiki.asterisk ;
chown -R asterisk:asterisk /etc/asterisk/ /var/lib/asterisk /usr/share/asterisk27 Temmuz 2012 Cuma
Centos Php Mcrypt
First get the epel repository. To do this go to the page fedoraproject.org and choose the epel-release under the header "How can I use these extra packages?".
After that, download the package to a location you like. Open command line, get into the directory that you just placed the new rpm.
rpm -i epel-release*.rpm
This will add the epel repository. Next step is to let yum install what we need..
yum install php-mcrypt
And restart your apache..
This has done the trick in my centos..
After that, download the package to a location you like. Open command line, get into the directory that you just placed the new rpm.
rpm -i epel-release*.rpm
This will add the epel repository. Next step is to let yum install what we need..
yum install php-mcrypt
And restart your apache..
This has done the trick in my centos..
26 Temmuz 2012 Perşembe
vsftpd and centos 6 configuration..
I didnt want to use home directory because i would be uploading files to var/www/html folder. But i wanted to lock the user to his/her home directory at the same time. Solution:
1) vsftp.conf configuration
local_enable=YES
wite_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
than save the file..
2) Create a folder in your home dir
mkdir /home/umut/www
3) Bind the real www to the one in your home dir.
mount --bind /var/www/html/ /home/umut/www
{
if you want to (and possibly want to..) create a permanent binding add a line under the /etc/fstab;
/var/www/html /home/umut/www none bind 0 0
}
4) If you have selinux;
setsebool -P ftp_home_dir=1
5) Restart vsftpd
service vsftpd restart
6) If there are writing problems in www than right click on the /var/www/html and select "user data" in selinux area..
for further information:
http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/
1) vsftp.conf configuration
local_enable=YES
wite_enable=YES
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_local_user=YES
than save the file..
2) Create a folder in your home dir
mkdir /home/umut/www
3) Bind the real www to the one in your home dir.
mount --bind /var/www/html/ /home/umut/www
{
if you want to (and possibly want to..) create a permanent binding add a line under the /etc/fstab;
/var/www/html /home/umut/www none bind 0 0
}
4) If you have selinux;
setsebool -P ftp_home_dir=1
5) Restart vsftpd
service vsftpd restart
6) If there are writing problems in www than right click on the /var/www/html and select "user data" in selinux area..
for further information:
http://www.ducea.com/2006/07/27/allowing-ftp-access-to-files-outside-the-home-directory-chroot/
Linux..
When using terminal as the root, if you want to switch between users;
su user_name
is enough. Than use whoami..
su user_name
is enough. Than use whoami..
Linux how to find which yum package to install..
If you are sure about the location of the executable, than you can make yum, search the packages that uses the same executable.
yum provides /usr/sbin/semanage
My output:
......
base | 3.7 kB 00:00
extras | 3.0 kB 00:00
updates | 3.5 kB 00:00
policycoreutils-python-2.0.83-19.24.el6.i686 : SELinux policy core python.....
So after finding out the package, now it is time to install it..
yum -y install policycoreutils-python
yum provides /usr/sbin/semanage
My output:
......
base | 3.7 kB 00:00
extras | 3.0 kB 00:00
updates | 3.5 kB 00:00
policycoreutils-python-2.0.83-19.24.el6.i686 : SELinux policy core python.....
So after finding out the package, now it is time to install it..
yum -y install policycoreutils-python
Kaydol:
Kayıtlar (Atom)
