Re: Enabling sqlite in php 5.3.5
by Dietz, Andrew
Thanks guys, I do have php-pdo installed, but there must be something
else still missing.
I have a snippet of test code that calls sqlite_open and sqlite_query
functions, and they throw errors:
PHP Fatal error: Call to undefined function sqlite_open() in
/var/www/html/test/sqlite.php on line 2
PHP Fatal error: Call to undefined function sqlite_query() in
/var/www/html/test/sqlite.php on line 3
Again, thanks for the help this far.
Andrew
13 years, 3 months
SeLinux, should I disable it?
by Parshwa Murdia
Hi,
After I install F14 (KDE), how should I disable SeLinux? Because more
of the time it gives alerts and it is highly technical in nature to
understand the SeLinux (for a normal person, not from computers).
--
Regards,
Parshwa Murdia
Making the simple complicated is commonplace, making the complicated
simple, awesomely simple, that's innovation.. -C Mingus
13 years, 3 months
korganizer crash
by Walter Cazzola
Dear all,
today after an attempt of adding a new calendar korganizer has crashed
and from that moment on it is impossible to access to the GUI and to my
data. Doesn't a matter if I launch it from the tray, from the
commandline or from the menu.
When I try to launch it I get the following message:
>korganizer
>KCrash: Application 'korganizer' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
sock_file=/home/cazzola/.kde/socket-surtur/kdeinit4__0
and the KDE crash handler starts but no way to send a track bug (the
crash handler itself crashes).
I've tried to cancel the sockets files, the configuration files and to
clear the cache but without success.
korganizer has always worked (up to this morning) and contains all my
appointments and I'd like to have it working again.
Any suggestion?
Walter
--
Walter Cazzola, PhD - Associate Professor, DICo, University of Milano
E-mail: cazzola(a)dico.unimi.it Ph.: +39 02 503 16300 Fax: +39 02 503 16253
· · · ---------------------------- · · · ---------------------------- · · ·
... recursive: adjective, see recursive ...
· · · ---------------------------- · · · ---------------------------- · · ·
13 years, 3 months
iptables and NAT
by Jatin K
Dear All
I'm trying to configure iptables with Network Address Translation
Scenario is like
server 1 with IP address 192.168.131.131 is running httpd
server 2 with two NIC, one is xx.xx.xx.xx ( live ip ) and another is
192.168.131.133,
---
I run following command on server 2 ( which is going to be acting as
firewall )
iptables -t NAT -A PREROUTING -d xx.xx.xx.xx -J DNAT --to-destination
192.168.131.131
but it ends with following error
iptables v1.3.5: can't initialize iptables table `nat': Table does not
exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
----------Following are some details of my server--------
*uname -r *
2.6.18-194.32.1.el5
*lsmod | grep ip *
ip_tables 17029 0
x_tables 17349 1 ip_tables
ipv6 270561 19
xfrm_nalgo 13381 1 ipv6
acpiphp 27089 0
dm_multipath 25421 0
scsi_dh 12097 1 dm_multipath
dm_mod 63225 15
dm_multipath,dm_raid45,dm_snapshot,dm_zero,dm_mirror,dm_log
Can anyone guide me ??? whats going wrong with it ? how to resolve this
problem
Thanx & regards
--
°v°
/(_)\
^ ^ Jatin Khatri
Registerd Linux user No #501175
www.counter.li.org
No M$
13 years, 3 months
internet connection tester script
by kellyremo
http://pastebin.com/raw.php?i=rykHdvBh
bix.hu and www.yahoo.com are "pingable" test sites.
127.0.0.1 could not be pinged [firewall drops all icmp]
i have a "oneliner" that echoes if theres "internet connection or no".
$ ping -W 1 -c 2 bix.hu >& /dev/null && ping -W 1 -c 2 www.yahoo.com >& /dev/null && echo "internet connection ok" || echo "no internet connection"
internet connection ok
$ ping -W 1 -c 2 127.0.0.1 >& /dev/null && ping -W 1 -c 2 www.yahoo.com >& /dev/null && echo "internet connection ok" || echo "no internet connection"
no internet connection
$ ping -W 1 -c 2 127.0.0.1 >& /dev/null && ping -W 1 -c 2 127.0.0.1 >& /dev/null && echo "internet connection ok" || echo "no internet connection"
no internet connection
$ ping -W 1 -c 2 bix.hu >& /dev/null && ping -W 1 -c 2 127.0.0.1 >& /dev/null && echo "internet connection ok" || echo "no internet connection"
no internet connection
$ ping -W 1 -c 2 bix.hu >& /dev/null && ping -W 1 -c 2 www.yahoo.com >& /dev/null && echo "internet connection ok" || echo "no internet connection"
internet connection ok
$
Ok!
But: if i want the "oneliner" to only go along when theres internet connection:
$ while $TORF; do ping -W 1 -c 1 bix.hu >& /dev/null && ping -W 1 -c 1 www.yahoo.com >& /dev/null && TORF=false || TORF=true; done
$ while $TORF; do ping -W 1 -c 1 127.0.0.1 >& /dev/null && ping -W 1 -c 1 www.yahoo.com >& /dev/null && TORF=false || TORF=true; done
$ while $TORF; do ping -W 1 -c 1 127.0.0.1 >& /dev/null && ping -W 1 -c 1 127.0.0.1 >& /dev/null && TORF=false || TORF=true; done
$ while $TORF; do ping -W 1 -c 1 bix.hu >& /dev/null && ping -W 1 -c 1 127.0.0.1 >& /dev/null && TORF=false || TORF=true; done
$ while $TORF; do ping -W 1 -c 1 bix.hu >& /dev/null && ping -W 1 -c 1 www.yahoo.com >& /dev/null && TORF=false || TORF=true; done
$
It just doesn't work.
Goal: if theres no internet connection, then the oneliner must loop until there is internet connection. if theres internet connection the oneliner ends.
what am i missing?
13 years, 3 months
Yum repo
by mattias
If i have a fedora 13 iso dvd image
Can I use the iso as an yum repo?
I no I can use a physical cd
13 years, 3 months
octave problems
by H Xu
Hello everybody,
I'm using Fedora 14 x86_64. In octave, "xlabel('\mu')" could not show
the '\mu' correctly. How could I solve this?
Thanks.
Regards,
H Xu
01/28/2011
13 years, 3 months
What is up with the libdvd* packages ?
by linux guy
Why aren't these packages from F14 ?
yum list libdvd\*
Loaded plugins: changelog, downloadonly, kmdl, refresh-packagekit
Installed Packages
libdvdcss.i386 1.2.10-1
installed
libdvdnav.i686 4.1.4-0.1.svn1184.fc12
@fedora/12
libdvdread.i686 4.1.4-0.2.svn1188.fc13
@anaconda-InstallationRepo-201005130056.i386/13
Available Packages
libdvdnav-devel.i686 4.1.4-0.1.svn1184.fc12
fedora
libdvdread-devel.i686 4.1.4-0.2.svn1188.fc13
fedora
13 years, 3 months
New logwatch module not working in cron
by Gordon Charrick
I wrote a new logwatch module for vnstat and put it in
/etc/logwatch/scripts/services. If I run logwatch from the command line,
it works fine. When cron runs it, the vnstat module doesn't run. The
module is extremely simple - all it does is run the vnstat command.
There are no errors being reported. All I get is an empty begin/end
section for vnstat in the email from logwatch.
I know it's not selinux because I originally had problems with that and
I fixed that with a local selinux module for vnstat. I also specifically
have the full path to the vnstat command in the logwatch vnstat script.
Anyone have any clues on fixing this?
Gordon
13 years, 3 months
intrusion tracking
by Wolfgang S. Rupprecht
Once again I find myself trying to help someone piece together how an
intruder managed to get into their system. The system was way out of
date (FC6) so it is no surprise that they got compromised. What I can
tell, the intruder managed to get root which allowed them to remove the
iptables file and lower the protection on ssh to allow unix passwords.
The attacker then installed an ssh-probing client that was installed in
/root. That lowered ssh security allowed a second intrusion at user
level (probably by password guessing) where an IRC bot was installed and
run from cron with normal user permissions.
I would have been nice to know when and how they initially got in. The
site runs a handful of daemons (postix, named, ntp, apache, dovecot), so
any of them could have allowed the initial intrution. They didn't have
selinux enabled, so that compounded problems. Clearly the top level
answer is to just impress upon them the fact that they need to stay
current and keep selinux enabled. It still would be nice to know how
the attackers got in though.
The real issue is that there isn't a good activity log. While I can
install tripwire to watch for changed files, it probably won't tell me
how they got in. Is there something that addresses that problem? Some
poor sucker always has to be the first victim of a new attack. It would
be nice to know which service to disable or reconfigure until a fix is
distributed. Is there some way to track intruders that I'm missing?
-wolfgang
--
Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/ (IPv6-only)
13 years, 3 months