Category Archives: PHP

Wamp Url Rewrite Error: The Requested Url Was Not Found In This Server

I received this error after setting up my CakePHP with Url Rewrite in Wamp Server 2.5, which includes Apache 2.4.9:

“the requested url /wamp/cake/app/webroot/index.php was not found on this server.”

After reviewing my .htaccess configuration I found the error in a missing RewriteBase directive.

If your Cake installation folder were /yourbaseaddress/cake/, your RewriteBase directives should look like


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /yourbaseaddress/cake/
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]



<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /yourbaseaddress/cake/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Cómo instalar Firebird en Centos con Apache, PHP, MySQL y CPanel

En este post se muestra cómo instalar y configurar este excelente motor de base de datos en un servidor
Centos con Apache, PHP, MySQL y CPanel.

1) Instalar Firebird desde el repositorio de la distro.
En mi caso, Centos 6, hay que instalar como fuente el repositorio EPL donde se
encuentran los packages.
Incluir los paquetes de desarrollo, ya que contienen librerias a utilizar por EasyApache
durante el build de PHP.

2) Esta es mi configuración PHP antes de realizar la instalación.

‘./configure’ ‘–disable-fileinfo’ ‘–disable-pdo’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-ftp’
‘–enable-libxml’ ‘–enable-sockets’ ‘–prefix=/usr/local’ ‘–with-apxs2=/usr/local/apache/bin/apxs’
‘–with-curl=/opt/curlssl/’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’
‘–with-kerberos’ ‘–with-libdir=lib64′ ‘–with-libxml-dir=/opt/xml2/’ ‘–with-mysql=/usr’
‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-openssl=/usr’ ‘–with-openssl-dir=/usr’
‘–with-pcre-regex=/opt/pcre’ ‘–with-pic’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’

3) cd /var/cpanel/easy/apache/rawopts/
3.1) Crear/modificar archivo all_php5
3.2) Agregar la siguiente linea:

4) Ejecutar EasyApache


5) Luego de escupir una lista larga de resultados de compilación en la consola, muestra el suiguiente mensaje:

!! Build Complete! !!
!! Verbose logfile is at ‘/usr/local/cpanel/logs/easy/apache/build.1403968238′ !

6) Mi configuración PHP ahora muestra a Firebird como una opción de PHP.

‘./configure’ ‘–disable-fileinfo’ ‘–disable-pdo’ ‘–enable-bcmath’ ‘–enable-calendar’ ‘–enable-ftp’
‘–enable-libxml’ ‘–enable-sockets’ ‘–prefix=/usr/local’ ‘–with-apxs2=/usr/local/apache/bin/apxs’
‘–with-curl=/opt/curlssl/’ ‘–with-imap=/opt/php_with_imap_client/’ ‘–with-imap-ssl=/usr’
‘–with-interbase=/opt/firebird/’ ‘–with-kerberos’ ‘–with-libdir=lib64′ ‘–with-libxml-dir=/opt/xml2/’
‘–with-mysql=/usr’ ‘–with-mysql-sock=/var/lib/mysql/mysql.sock’ ‘–with-openssl=/usr’
‘–with-openssl-dir=/usr’ ‘–with-pcre-regex=/opt/pcre’ ‘–with-pic’ ‘–with-zlib’ ‘–with-zlib-dir=/usr’


How to configure configure a WAMP server to support Firebird SQL

Adding Firebird support to your WAMP installation is an straightforward step by step process.
I have found an excelent post at Lorenzo’s Alberton blog. This article really helped me to go directly to the point, even seven years after being published.
Just as a litle contribution, I’d like to mention php.ini file is located into the Apache’s bin folder.
In my installation, this folder is C:\wamp\bin\apache\apache2.2.22\bin

After uncommenting the line


and restarting apache, it just worked!
Let´s see the Wamp server dashboard to check the newly loaded module.

You can also check your phpinfo script to see your PHP installation is now Interbase (Firebird) compliant.

phpinfo script