Farid Ahmadian / PHP

CakePHP 1.3 - Prerequisits in Slackware 13.1

Public domain


  1. Check if php is enabled in httpd.conf

    DirectoryIndex index.php index.html
    Include /etc/httpd/mod_php.conf
    
  2. Check if mod_rewrite is enabled in httpd.conf

    LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
    
  3. Change "AllowOverride None" to "AllowOverride All" in httpd.conf :

    <Directory "/srv/httpd/htdocs">
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
    </Directory>
    
  4. PCRE should compile with --enable-unicode-properties option :

    cd /usr/src
    mkdir pcre
    cd pcre
    wget -c http://slackware.at/data/slackware64-13.1/source/l/pcre/\
    {pcre-8.02.tar.bz2,pcre.SlackBuild,slack-desc}
    sed -i -e \
      's,./configure \\,./configure --enable-unicode-properties \\,' \
       pcre.SlackBuild
    chmod +x pcre.SlackBuild
    ./pcre.SlackBuild
    mv /tmp/pcre-8.02-*.t?z . 
    removepkg pcre
    installpkg pcre-8.02-*.t?z
    /etc/rc.d/rc.httpd stop
    /etc/rc.d/rc.httpd start
    

BY: Pejman Moghadam
TAG: php, cakephp, pcre
DATE: 2011-11-04 10:50:48


Farid Ahmadian / PHP [ TXT ]

With many thanks and best wishes for dear Pejman Moghadam, someone who taught me alot in linux and life :)