LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-29-2013, 12:11 AM   #1
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Rep: Reputation: 15
Slackware64 - 14.0 and Cakephp URL Rewriting Configuration


Seeking help on the above.

application involved - apache 2.4.3 and cake 2.3.8

Error message when trying to access cake app - URL rewriting is not properly configured on your server.
http://book.cakephp.org/2.0/en/insta...rewriting.html

I followed the above URL steps but still having the same issue.

/etc/httpd/httpd/conf (already uncommented and AllowOverride All)
Code:
LoadModule rewrite_module libexec/apache2/mod_rewrite.so

<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
phpinfo() confirmed that mod_rewrite module was loaded.

There was no error on the httpd error log that tell me anything obvious was wrong beside this URL rewriting.

Note: the same cake application was working on another machine running Slackware 13 and httpd 2.2

Major difference is the httpd version upgrade v2.2 to v2.4.

Appreciate any help or advice.

Thanks.
 
Old 07-29-2013, 01:50 AM   #2
cisneros
Member
 
Registered: Jul 2012
Distribution: Slackware
Posts: 95

Rep: Reputation: 5
is the website in subfolder or in the root htdocs folder?, maybe something like:

Quote:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

<Directory /cakephp_app>
Options FollowSymLinks
AllowOverride All
</Directory>
would work.

something similar happened to me with codeigniter, that solved it.
 
Old 07-29-2013, 02:31 AM   #3
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Original Poster
Rep: Reputation: 15
Hi Cisneros,

Yes, the website is on another folder.

/etc/httpd/httpd.conf
Code:
<Directory /test>
        AllowOverride All
        Options FollowSymLinks
        Require all granted
</Directory>
As I am using vhost, I also modified the httpd-vhost.conf as well.
All not successful.

I also tried using the full path, but same result.
Code:
<Directory /var/www/htdocs/test>
        AllowOverride All
        Options FollowSymLinks
        Require all granted
</Directory>
Note: restarted apache after each modification.
 
Old 07-29-2013, 10:24 AM   #4
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
Are the .htaccess file definitely copied over? As they are hidden files sometimes they're missed.
 
Old 07-29-2013, 08:47 PM   #5
Manuel-H
Member
 
Registered: Apr 2003
Location: Singapore
Distribution: Slackware32/64, Ubuntu, Fedora, RHEL
Posts: 138

Original Poster
Rep: Reputation: 15
Yes, .htaccess files are both there at app and webroot folders.

If all else fail, I will have to revert to previous versions of Slackware which still uses apache 2.2.
Default Slackware 14.0 using httpd 2.4.3, is there a package for httpd 2.2 that is supported in Slackware 14?

My current options:
- Fix this URL rewriting on Slackware 14.0 and httpd 2.4.3
- Downgrade to httpd 2.2.x
- Use Slackware 13.x which uses httpd 2.2.x

I still wish to get it work in 14 and 2.4
Thanks guys for your effort to help, still hoping for someone to assist and help me out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Apache URL rewriting linuxlover.chaitanya Linux - Server 4 05-07-2013 03:42 AM
htaccess url rewriting dazzler20 Programming 1 12-22-2011 12:47 AM
URL Rewriting mrpraveen.p Linux - Newbie 1 06-03-2008 07:07 AM
URL Rewriting getmeontop Linux - Newbie 1 04-02-2008 02:12 AM
url rewriting in localhost pamount Red Hat 0 01-08-2008 08:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration