Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8479431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:01:23+00:00 2026-06-10T19:01:23+00:00

Edit: I know what is causing the problem now, but still no solution. Basically

  • 0

Edit: I know what is causing the problem now, but still no solution. Basically unless the tmp directory is 777 Cake is unable to write to it so it fails. And if tmp is 777 then because of maybe some weird security setting PHP doesn’t work. Any ideas if this is a possibility and how I can fix it?

Edit 2: Is it possible that because of character encoding the tmp is not 777 its showing ? garbage characters.

I just migrated my CakePHP app to Amazon AWS (Using a BitNami LAMPstack). I was getting PHP errors saying Could Not Connect to DB (which means PHP is executing).

When I fixed the DB settings it is now printing inline PHP.
For example:

<title><?php echo $title_for_layout; ?></title>

is showing in the HTML and the document title is hence a snippet of PHP code!

Please help I’m at a loss. Things I’ve tried doing:

  • Changing AllowOverride to All in the section in/opt/bitnami/apache2/conf/httpd.conf
  • Editing my php.ini for short_open_tag=On just in case
  • Making sure mod_rewrite is enabled in httpd.conf and that my htdocs and app folder have the correct .htaccess files.

Here are my .htaccess files just in case:

htdocs/.htaccess

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

Options All -Indexes

htdocs/app/.htaccess

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

htdocs/app/webroot/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:01:24+00:00Added an answer on June 10, 2026 at 7:01 pm

    Well all I can say is thank god I paid attention in class last semester when they explained character encoding.

    So I opened up all the .ctp files that weren’t being exec’d as PHP in vim. I said :set encoding=utf-8 and :set fileencoding=utf-8
    and then :x (keeping it newb-friendly just in case somebody wants a quick fix) 🙂

    And its working like it should now. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

EDIT: I've found what's causing the issue, but I don't know why and I
Most of you probably know the following problem: You edit an HTML, view the
I am facing an interesting problem right now. I know it is not that
EDIT: I know it is a little strange design, and so it is difficult
May i know how could i edit the style of description of the images
does anyone know how you edit/maintain regions in magento - specifically adding ones for
Does anyone know how can I edit a subitem on a listView? I've tried
Does anyone know how to allow users to edit another user´s email in a
Does anyone know how to enable or disable programmatically the Quick Edit Mode in
I would like to know how I could edit mp3 files on the server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.