Tag Archives: apache

How to Install Ruby Enterprise Edition and Passenger Phusion (mod_rails) on CentOS/RHEL x86_64

INSTALL SYSTEM PREREQUISITES Install the prerequisite development headers. If this is a production system, make note of all the packages installed, for future removal. # yum install apr-devel.x86_64 apr-util-devel.x86_64 curl-devel.x86_64 gcc-c++.x86_64 httpd-devel.x86_64 mysql-devel.x86_64 mysql-server.x86_64 openssl-devel.x86_64 zlib-devel.x86_64 INSTALL RUBY ENTERPRISE EDITION First, install the End Point yum repository: # yum update m2crypto # curl -O https://packages.endpoint.com/rhel/5/os/x86_64/endpoint-repo-1.0-1.x86_64.rpm [...]

Posted in essays | Also tagged , , , , | Leave a comment

Install WordPress on CentOS/RHEL in Five Minutes Flat (remix)

Install the System Prerequisites # yum install mysql-server httpd nano php php-mysql # chkconfig httpd on # chkconfig mysqld on # service mysqld start # service httpd start Create the Database # mysqladmin create wordpress # mysql mysql> GRANT ALL PRIVILEGES ON wordpress.* TO ‘wordpress’@'localhost’ IDENTIFIED BY ‘please+use+a+strong+password’; mysql> FLUSH PRIVILEGES; mysql> quit Download and [...]

Posted in essays | Also tagged , , , | 1 Comment

CakePHP + mod_rewrite on Snow Leopard

Creating a CakePHP 1.2.5 app on a Snow Leopard machine, which comes with PHP 5.3, I encountered the following error when I tried to run the app: “The requested URL /Users/username/Sites/cakeapp/app/webroot/ was not found on this server.” The solution is to use the RewriteBase directive in ~/Sites/cakeapp/.htaccess: <IfModule mod_rewrite.c> RewriteEngine On # NOTE THE TILDE: [...]

Posted in essays | Also tagged , , , | Leave a comment

Flash Player Mac Woes: File Upload, Remoting, Port 80

Symptom: Your Flash file uploads fail for Mac users. Cause: Flash Remoting and FileReference objects automatically append :80 to all requests (in the Mac player). Your web server redirects requests for example.com:80 to example.com. That’s bad. Solution: Stop redirecting explicit :80 requests. example.com:80 is a valid resource. Your sysadmin (or hosting provider) may insist otherwise, [...]

Posted in essays | Also tagged , , , | Leave a comment