Tuesday, August 24, 2010

Re: sudo apt-get install cakephp-scripts php5-mysql

ogoinfo(); works. I don't really understand what you mean by php mod.
I run sudo a2enmod php5 and get 'Module php5 already enabled' as
feedback. So i guess it's enabled. Thanks for helping me out.

On 25 Aug, 03:09, cricket <zijn.digi...@gmail.com> wrote:
> On Tue, Aug 24, 2010 at 8:19 PM, Daniel Samani <daniel.sam...@gmail.com> wrote:
> > So i do the following
>
> > sudo apt-get install cakephp-scripts php5-mysql
>
> > mysql (make databases and tables i want)
>
> > sudo cake bake -app /var/www/weblog (and bake the app)
>
> > Now when i visit 127.0.0.1/weblog i download a file instead of showing
> > it
>
> > Haven't I already installed php? Any ideas?
>
> I presume that installing php5-mysql would also pull in the PHP libs
> if they're not already installed but I can't say I've ever tried.
> Perhaps you should begin with a *plain* PHP script, then move to Cake.
>
> <?php
> echo 'hello world';
> ?>
>
> Better:
> <?php
> phpinfo();
> ?>
>
> Name that info.php and see if it works.
>
> Does this show the php mod?
> ls /etc/apache2/mods-enabled/
>
> If not,
> sudo a2enmod php5
> sudo /etc/init.d/apache2 reload

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: