Mild Ramblings of a Techhead
Recent
Photo
Sets

Posts Tagged Web

Latest PHP/Mysql/Apache From Source

I setup a new 64-bit virtual server running CentOS 5.6.    It was a pretty much vanilla install of CentOS minus Apache, PHP and MySQL

I  decided to compile MySQL, PHP and Apache from Source.  Everything was installed in /usr/local/ I created sym links to the version directories to keep a copy of the programs just in case anything went wrong.

ln -s /usr/local/php-5.3.6 /usr/local/php
ln -s /usr/local/mysql-5.5.11 /usr/local/mysql
ln -s /usr/local/httpd-2.2.17 /usr/local/httpd

edited /etc/profile to have /usr/local/mysql/bin and /usr/local/php/bin in PATH variable. Below was added to the bottom of /etc/profile

PATH=$PATH:/usr/local/mysql/bin:/usr/local/php/bin
export PATH

Steps to Install MySQL Apache and PHP from source

1. Had to install and compile Cmake first for MySQL from source (cmake.org).  I installed it to /usr to keep things simple.

  • cmake .
  • make -j3
  • make install
  • created mysql user and group
  • changed ownership of data dir to mysql
  • run mysql_install_db from MYSQL_INSTALL_DIR/scripts/mysql_install_db –user=mysql

2. Apache was configured with:

./configure --prefix=/usr/local/httpd --enable-ssl --enable-so --enable-rewrite
3. yum install libicu-devel
4. yum install libmcrypt-devel
5. yum install aspell-devel

6. For PHP, I used the following configure options.  Notice this is for a 64 bit install.

./configure --prefix=/usr/local/php --with-libdir=lib64 --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-sqlite-utf8 --with-apxs2=/usr/local/httpd/bin/apxs --with-mcrypt=/usr/local/mcrypt --with-openssl --with-bz2 --with-curl --with-freetype-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-pspell --with-zlib --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-zip --with-pear --enable-calendar --enable-mbstring --with-ldap=/usr --enable-soap --with-xmlrpc --with-gd --enable-intl


Code Code Code…

The past couple of days, I’ve been churning out some php code.  I’ve been making some modifications to the gallery code.  Mostly back end stuff.  I created a script where I can upload photos into a folder on the server and have a PHP page process those photos and add them to an album I created.  It’s alot quicker (and eaiser) than going the web form route.  I also ended up fixing some bugs and making tweaks here and there.  Still needs alot more work.

One of the major changes I made to the gallery site is how the photos were stored.  Before, I had them all lumped into one folder which would make trying to backup and restore the photos somewhere else a nightmare.  Now, they are all stored in folders named after the album they were created for.  Also, I created some code to automatically create a smaller version of the original photo if it didn’t already exist.  This would save time uploading my album to another host if I needed to.

Last night, I started working on another WordPress theme I’d like to use.  I saw it on another site and I sort of copped it.   :grin:  I like the color scheme and all, but I will add my own unique touches to it.

I’ve been tweeting alot lately, perhaps for the past month or so.  I guess I can “blame” a friend of mine for that.  He suggested I follow a couple of his Oakwood buddies and they ended up being a very chatty bunch.  It’s been fun.  Meet some really cool people.  I’ve only been on Twitter and year, but it feels like it’s been much longer.   I guess because everyone is talking about it and doing it.  It’s the thing to do thanks to Ashton Kutcher and Oprah.

My car turned 40K yesterday somewhere on I-20 on the way to work.  I’ve had it two years and less than 3 months.  The amount of miles I’ve been putting on it a month have slowed down since I’ve moved to Atlanta.   All that traveling between sites with the previous job racked up alot of miles.  But she’s still holding together.

My Mazda3

My Mazda3


Posted
8 July 2009 @ 9am

Tagged
Web

Some Modifications

I decided to add a photo banner of the most recent photo sets I uploaded from my gallery site.

Picture 1

I like it.  Now I gotta think of some ideas to add some more color (tastefully) to the page.


Posted
7 July 2009 @ 10pm

Tagged
Web

New Theme

So, I wasn’t completely happy with the first theme I made, so I went and modified another person’s theme.  It’s very clean and simple and if I wanted to add a splash of color or a funky background to it, I can without too much trouble.

randyjnet_screenshot1

The bottom of this theme is where I made most of the modifications.  I decided to put the links to my other pages at the bottom, as well as my favorite sites, archives and a random photo viewer.  The photo viewer took a little php and css foo to get working and looking right.

randyjnet_screenshot2

I am alot happier with this theme and I will probably modifiy it soon to add some color.  Truthfully, the previous design looks like alot of other cookie cutter wordpress sites.  Wordpress is so flexible you can really make it look like anything.  I got some ideas in my head I might want to try next.  This is kind of fun.   :grin:


Birthday Wishes

Another birthday has come and gone.  No one even called. I got a couple of birthday wishes, but after I told them it was my birthday.  I don’t know how I should feel about that.  I figure birthday’s get less important as you get older. My brother remembered and sent me an ecard.  My parents sent money (mostly to help out with rent and utilities), and Florida Grandma sent me some money as well (recieved it Friday).

I started working on Tuskegee’s University’s NSBE Chapter Web Site.  I really like doing web pages and can even see myself doing it for a living, but I much prefer messing around with Unix boxes and such.  The love I once had for electrical engineering is fading, though I still find some parts of it interesting. My goal is
to have my own buisness doing something, fulfilling a niche or something.  Me and Lutalo will have to do some braintstorming.  He has some ideas.

Got a call from the T-Cam Lab tonight. They need help with some license issues with their Sun Boxes.

My Mid term exams didn’t go well at all. I had a calculus II test Tuesday that I will be diligently preparing for. I may end up dropping Probs and Stats… What an icky class!!! It’s not likes it’s hard. I just don’t put alot of effort into it. What am I doing then…. *sigh* I am so tired of school.

We went to Hurtsboro this past Sabbath for their Youth Day. We had previously
plan to attend Bethany SDA Church in Montgomery, but Anthony spoke with Richard and told him that Youth Federation was next week in Montgomery.
So we decided that we’ll go next week. BIG MISTAKE.

Service in Hurtsburo was pretty dry and as usual, there wasn’t enough food. Still hungry, the college kids opted to go home and get some more food. On the way back, I became nausiated and was feeling pretty bad.

On the ride back, Zahra told me that Mono and Digliserides aren’t from pork as I had previous thought and was told.  She spoke with one of her professors and we had a little debate about it in the car.  I even asked Anthony while we were grocery shopping and he told me that it wasn’t from pork, but might as well be because it’s a bad fat. I’ve been avoiding it pretty much anyway.  Ah well.


Busy

Well, I am been pretty busy the past couple of weeks studying for test and doing homework.  School is becoming very demanding even with 16 hrs.  And all of those are tough classes.  But I am sucking it up because I want to get out of here. :)

John was by the house last night when I got back from a study session.  He, Othello and myself were talking about plans after school, like getting married, grad school and getting a job and stuff like that.

I’ve been working on Tuskegee University’s Solar Decathlon’s web site.  It is going pretty well.

I had three exams last week. They…. went….well, they just went!