Fedora Core 5 NAT routing
Posted by Robert Swarthout | Filed under Fedora
After searching online for a hour or so I was able to get iptables setup correctly to use a Fedora Core 5 server as a router for an internal network. The following iptable rules is all I needed. I ended making a file and putting these 4 lines into it, then calling the file at system bootup from rc.local.
iptables –flush -t nat
iptables –table nat –append POSTROUTING –out-interface eth0 -j MASQUERADE
iptables –append FORWARD –in-interface eth0 -j ACCEPTecho 1 > /proc/sys/net/ipv4/ip_forward
The above setup does make an assumptions, that all nodes within the network will use static IP address. They all need to have their gateway addresses set to the IP address of the routing server. Now I need to figure out how to get this working with LVS.
Payflow Pro Support in PHP
Posted by Robert Swarthout | Filed under PHP
Today was just one of those days. After getting all of PHP to compile correctly I thought I was off to the races and nothing could stop me, wrong! The Verisign API for Payflow Pro is not compatible with 64bit systems, at least in a linux environment. After contacting Verisign/Paypal support, start laughing now, they told me that I could post to their pages that are at a special URL. Also they were nice enough to tell me that they would be happy to see the PHP code I came up with to “build your own API.” What morons! It looks as though Paypal is rubbing off on them after all.
64bit Install of PHP 5.2.0 & MySQL 5.0.18, Awh!!!
Posted by Robert Swarthout | Filed under Fedora, MySQL, PHP
This post is meant to be a time saver for anyone else attempting to do a custom compile of PHP 5.2.0 with mysql and mysqli support built in. The systems this setup is being install on are 64bit Pentium machines running Fedora Core 5.
After way too many hours, 30+, of trial and error I found the magic solution, at least in this setup. Basically PHP when doing the configure was looking in the wrong place for the 64bit version of the mysql libraries, mainly libmysqlclient.a. Mysql is installed into /usr/local/mysql and works like a champ. The configure looks for the library in /usr/lib instead of looking in /usr/lib64 as it should considering the –with-libdir=/usr/lib64 was used. To solve this fiasco a simple symbolic link was the answer.
# ln -s /usr/lib64/libmysqlclient.a /usr/lib/mysqlclient.a
After that you should be in good shape for a good compile.
A few confessions
Posted by Robert Swarthout | Filed under I dunno
I have a few confessions to make before we get started here:
- I write to get a point across, not to be a English professor. If I make a spelling or grammatical error and you still understood what I was saying, mission accomplished.
- I may/may not post often, it really depends on my schedule.
Okay, here we go….