Hi,
You should make your domain "redirect" to your webroot app :
---------------------------------------------| root of your domain
/<cakephp>/<your_app>/webroot
and use /img/picture.jpg
else you have to put the full path (of the server) of your pictures :
Ex. /var/www/your_web_space/cakephp/your_app/webroot/img/picture.jpg
the last solution, use helpers :
$html->image('picture.jpg') ...
so you can't put it in the css file.
Well the first solution is the most secure and the best way (I think).
But you should have access to the apache config. (you can do it easily
on 1and1. Few free providers allow this)
May be there's other solutions.
+
On 2 mai, 11:10, korcs <[EMAIL PROTECTED]> wrote:
> Hi Bakers,
>
> I have a little problem with installing cake on a webserver.
>
> I copied the files and set up the database.php.
>
> Then when I type :
>
> http://<webserver>/my_cake_app
>
> then the standard welcome page is shown:
>
> "CakePHP Rapid Development
>
> Your database configuration file is present.
>
> Cake is able to connect to the database..."ect.
>
> I created then one controller, model and some views and now comes the
> problem:
>
> when i type http://<webserver>/my_cake_app/index.php/controllername/action
> , a 404 error mesage comes back.
>
> The path should be ok, i set in the core.php the define ('BASE_URL',
> env('SCRIPT_NAME')); line, because there is no mod_rewrite on the
> server activated.
>
> Actually the problem is maybe becase of the following setting of the
> webserver (that i cannot change):
>
> If i look in the browser the properties of one image, which location
> should be the:
>
> http://<webserver>/images
>
> I find that it is the: http://<providername>/<webserver>/images
>
> Is it possible that cake won't run on this server?
>
> Any ideas?
>
> Best,
>
> korcs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---