Saturday, January 26, 2013
Failure when start service httpd on Fedora 18
Follow @drayanaindra
hai guys, i try install Feodra 18
mmm.. when i try install and start service httpd on my fedora 18. i find problem when will start service httpd.
this tutorial i can share the solution for this problem.
when typing :
sudo service httpd start
service respone and show this message :
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -xn' for details.
you can check for the problem using :
sudo systemctl status httpd.service
and will show log:
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Sun 2013-01-27 00:26:20 WIT; 9s ago
Process: 7518 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 7516 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
and then,
sudo journalctl -xn
and will show log:
-- Unit httpd.service has failed.
--
-- The result is failed.
Jan 27 00:26:20 tkl systemd[1]: Unit httpd.service entered failed state
Jan 27 00:26:30 tkl systemd[1]: SELinux Got Sender :1.132
Jan 27 00:26:50 tkl yum[6634]: Installed: libmng-1.0.10-8.fc18.x86_64
Jan 27 00:26:51 tkl yum[6634]: Installed: kde-filesystem-4-42.fc18.x86_64
Jan 27 00:26:52 tkl yum[6634]: Installed: qt-settings-4.9-16.fc18.1.noarch
Jan 27 00:26:53 tkl sudo[7598]: drayanaindra : TTY=pts/1 ; PWD=/home/drayanaindra ; USER=root ; COMMAND=/bin/journalctl -xn
now, you can cek your ServerName in /etc/httpd/conf/httpd.conf and config same with this :
ServerName localhost
cek your error log when will start your service using :
sudo tail -f /var/log/httpd/error_log
and in my fedora show :
[Sun Jan 27 00:29:38.704621 2013] [core:notice] [pid 7770] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sun Jan 27 00:29:38.706668 2013] [suexec:notice] [pid 7770] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jan 27 00:29:39.201736 2013] [unique_id:alert] [pid 7770] (EAI 2)Name or service not known: AH01564: unable to find IPv4 address of "tkl"
AH00016: Configuration Failed
check your hostname in /etc/hostname
tkl
and check your /etc/hosts, if in your configuration sam with this :
127.0.0.1 localhost.localdomain localhost
you can change with example :
127.0.0.1 localhost tkl
now, edit your SELINUX in /etc/selinux/config, SELINUX=disable
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disable
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
now, you can try
sudo service httpd start
and enjoy guys.. :)
Tuesday, January 1, 2013
Install Sublime Text 2 via Repo (Fedora 17)
Follow @drayanaindra
hi guys, now I'll try to share a tutorial on how to install Sublime Text via Repo in Fedora 17. Sublime Text is a text editor full power, because the sublime is a lot of support programming languages such as C #, C + +, PHP, CSS, Lua, Python, Ruby, Rails, Java, HTML and many more. Okay, just us to tutoral installation.
going into a super user:
$ su
add repository :
# yum-config-manager --add-repo http://repo.cloudhike.com/sublime2/fedora/sublime2.repo
enable the repo :
# yum-config-manager --enable
install sublime text :
# yum install sublime-text
i try this tutorial using fedora 17. you can try in another version fedora.
may be useful
Friday, December 28, 2012
Workshop Ruby On Rails Session 2 (Bandung)
Follow @drayanaindra
Hai sobat Ruby on Rails, kami dari komunitas Ruby on Rails UNIKOM Bandung mengadakan Workshop Ruby on Rails. Kegiatan ini kami rutin lakukan setiap 1 bulan sekali. Untuk acara kali ini adalah acara yang kedua. dimana dalam Workshop yang pertama merupakan Fundamental Ruby on Rails itu sendiri. Workshop akan berlangsung selama kurang lebih 7 jam. Untuk detail acaranya bisa dilihat dibawah ini :
Tempat : BCCF Bandung
Alamat : Jalan Purnawarman No 70 Bandung
Waktu : 13.00 - 20.00 WIB
Tanggal : 29 Desember 2012
Biaya administrasi sebesar Rp. 15.000,-
(biaya tersebut sudah termasuk Welcome Drink dan Cemilan)
untuk informasi bisa menghubungi M Asep Indrayana di nomer -
jika anda yang ada diuar kota Bandung dan ingin mengikuti acara ini, anda bisa melakukan transfer terlebih dahulu ke rekening BNI 0175042383 an M Asep Indrayana. Lalu konfirmasi melalui sms atau via email masepindrayana@gmail.com dan setakan bukti transfer nya.
Persyaratan perserta :
- Membawa laptop pribadi
- Laptop sudah terkonfigurasi Ruby on Rails dengan DBMS MySQL
- Membawa modem
- Membawa terminal listrik
- Membawa cemilan (dikarenakan acaranya cukup lama)
- Disarankan sistem operasi mengguna Linux Ubuntu atau Fedora atau Distro Linux yang mendukung Ruby on Rails.
Informasi lebih lanjut bisa join ke Group Facebook Komunitas Ruby on Rails UNIKOM (Group)
Sampai bertemua di Workshop Ruby on Rails Session 2
Tempat terbatas hanya untuk 30 orang peserta
untuk mengetahui sisa jumlah peseta bisa menghubungi nomer di atas.
Wednesday, December 26, 2012
Download CISCO Packet Tracer 5.3.3 (Mediafire)
Follow @drayanaindra
Download Packet Trace Windows and Linux Version
on Mediafire
Windows Version
- For Windwos [EXE] (Aplication Only) Download (Size 49MB)
- For Windows [EXE] (Aplication and Tutorial) Download (Size 81MB)
- For Ubuntu [BIN] (Aplication Only) Download (Size 71MB)
- For Fedora [BIN] (Aplication Only) Download (Size 69MB)
- For Fedora [BIN] (Aplication and Tutorial) Download (Size 100MB)
- For Fedora [TAR.GZ] (Application and Tutorial Generic Fedora) Download (Size 101MB)
Download, Install, and Enjoy guys..
Monday, December 17, 2012
Install MOC (Music on Console) on Fedora
Follow @drayanaindra
Sunday, December 16, 2012
Can't execute script php in httpd
Follow @drayanaindra
hello, now I will try to give you a tutorial how to cope with the php script is not executed by httpd. how easy to follow this below:
Some linux distros (especially those based on RHEL such as CentOS or Fedora) comes with SELinux enabled by default. This can be checked, and for a change, with the following command:
- Sudo / usr / sbin / getenforce
it will display information Enforcing
- Sudo / usr / sbin / setenforce Permissive
- / Usr / sbin / getenforce
it will display the Permissive
You can see the current configuration, how
- Sudo / usr / sbin / sestatus
I was in the operating system:
SELinux status: enabled
SELinuxfs mount: / sys / fs / selinux
SELinux root directory: / etc / selinux /
Loaded policy name: targeted
Current mode: permissive
Mode from config file: enforcing
MLS Policy status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
This change can be made permanent by editing the / etc / selinux / config file and set the variable SELinux to permissive or disabled.
But, the correct way to solve this kind of issue, if you are indeed in this situation, is to check the / var / log / audit / audit.log log file. It will Contain all the events related to SELinux rules. You'll then probably your script should give the correct context, ie being authorized to be run by the apache / php user. Checking SELinux security context is done with ls-Z:
- ls- alZ / var / www / cgi-bin /
drwxr-xr-x. root root system_u: object_r: httpd_sys_script_exec_t: s0.
drwxr-xr-x. root root system_u: object_r: httpd_sys_content_t: s0 ..
good luck and hopefully useful.
How to extract file .rar on Fedora 12,13,14
Follow @drayanaindra
basically archives can be read by the operating system Linux in general is. zipped. tar.gz but when we menumkan file. rar in linux operating system, we will kesulitas to extract the archive. need to install additional applications called unrar. where unrar is a project of the RARLAB. okay, to get the file can be downloaded at the link below:
- Unrar 32 bit, Download
- Unrar 64 bit, Download
or visit the website RARLAB.
the first to be done, we have to extract unrar files that we download.
- Go to the terminal, and go to the location where the file is located.
- Extract the contents of the file by typing the tra -xvf namafile.tar.gz
- Then go into the extracted files directory named rar or can be adapted to the state of the file name
- After going into a root, type ./unrar
- After that, we copy beberpa file by cp rar unrar / bin
- Once copied now you can do extract archives.rar
how to extract:
- unrar e namafile.rar
Thus this tutorial, may be useful.
sorry, if my english not so good.
Subscribe to:
Comments (Atom)




