Deploy CakePHP project

Status
Not open for further replies.

picksand

New Member
Messages
4
Reaction score
0
Points
1
Hi guys!

I have problem when deploy my CakePHP project. I have a Free account and I don't set the DocuentRoot.

I was uplodaded my files on "public_html" but don't work.

Can someone help me?
 

annotat2

New Member
Messages
4
Reaction score
0
Points
1
Hey!
What do you mean by it doesn't work?
Maybe people may need more info to help you troubleshoot!
I guess you need some configuration but first need to know where you are now. What kind of error do you get when trying to access your website ? Some firebug info would help !
 

picksand

New Member
Messages
4
Reaction score
0
Points
1
Hi annotat2!

Sorry, I hope to be clear this time.

I have a CakePHP project on my localhost and works fine, I was uploaded files as I said above.

up to this point it's ok.

now, one of the steps to deployment is Set Document Root and activate rewrite_module but I don't find do it.

My site is http://rancholamision.x10host.com/ if you visit this URL you will see a blank page.

Thanks!
 

picksand

New Member
Messages
4
Reaction score
0
Points
1
Yes, I modified .htaccess files.
In "public_html" i have this.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

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

annotat2

New Member
Messages
4
Reaction score
0
Points
1
I am not an expert in cakePhp but from my understanding you should have a redirection from the public dir to webroot and from webroot a rewrite rule to the app folder.
 

annotat2

New Member
Messages
4
Reaction score
0
Points
1
I would see it more like that in the webroot:
<IfModulemod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

You should have one in the app folder:
<IfModulemod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>

And the one in the public dir:
<IfModulemod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi picksand,

It looks like CakePHP requires the "intl" PHP extension. I have enabled this for your account, and your site is now loading. ;)

Thank you,
 

picksand

New Member
Messages
4
Reaction score
0
Points
1
Hi Dead-i!

thank very much for enabled the extension "intl". But now send me this message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at no-reply@x10hosting.com to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

and, how i can activate the Module rewrite_module lib

regards!
 
Status
Not open for further replies.
Top