Re: CakePHP 1.3 setup on Ubuntu
On Wed, Aug 25, 2010 at 11:17 AM, Jon Bennett wrote: >> yea, thanks everyone, it was a missing .htaccess file. I always >> download packages to /usr/src to unpack, and when I copied cake from / >> usr/src to /var/www/cakephp, it didn't move the .htaccess files. I'm >> seasoned enough to know cp doesn't catch hidden files unless you >> specify them, it just didn't jump out at me right away. > > As you're able to set the doc root specifically - you'd be better off > having a restrictive general config, and then setting AllowOveride All > on a per host basis. > > I'd also suggest putting the rewrite rules into the vhost directly, > and pointing the doc root at app/webroot. Second all of that. Whenever you can edit the apache vhost configs it's a really good idea to put the rewrite stuff in there and delete the htaccess files. That'll moderately speed things up. 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
> yea, thanks everyone, it was a missing .htaccess file. I always > download packages to /usr/src to unpack, and when I copied cake from / > usr/src to /var/www/cakephp, it didn't move the .htaccess files. I'm > seasoned enough to know cp doesn't catch hidden files unless you > specify them, it just didn't jump out at me right away. As you're able to set the doc root specifically - you'd be better off having a restrictive general config, and then setting AllowOveride All on a per host basis. I'd also suggest putting the rewrite rules into the vhost directly, and pointing the doc root at app/webroot. Cheers, Jon > > Thanks! > > > > On Aug 24, 3:27 pm, Marek Sebera wrote: >> Are files .htaccess placed in root,app and app/webroot ? >> >> On 24 srp, 18:22, david wrote: >> >> >> >> > First, let me say I have CakePHP up and running perfectly on windows >> > with a wampserver instance running, so I'm familiar with the process. >> > I know how to get mod_rewrite setup, and set the permissions >> > appropriately, etc. >> >> > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and >> > I'm now trying to get CakePHP setup. I've seen plenty of posts >> > outlining getting setup on Ubuntu, because the debian arrangement of >> > Apache config files can be confusing to those not familiar with it. >> > I've used Debian for a long time, so I'm good on that front. >> >> > Basically, my problem is the 404 error for cake.generic.css and >> > cake.power.gif, which everyone says is caused by a mod_rewrite >> > problem. I have tested mod_rewrite separately and it works fine, so I >> > know it's running and working. >> >> > I've tried the following in my sites-enabled (basically a snippet of >> > what would be part of httpd.conf on most other systems): >> >> > DocumentRoot /var/www/cakephp >> > >> > Options FollowSymLinks >> > AllowOverride All >> > allow from all >> > >> > >> > Options Indexes FollowSymLinks MultiViews >> > AllowOverride All >> > Order allow,deny >> > allow from all >> > >> >> > I've changed the directories to /var/www; I've recursively changed the >> > owner of /var/www to www-data and set permissions to 755, and >> > recursively set 777 to app/tmp. >> >> > I'm a bit stumped and have no idea why it's not working. Any thoughts? > > 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+unsubscr...@googlegroups.com For more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- jon bennett - www.jben.net - blog.jben.net 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
yea, thanks everyone, it was a missing .htaccess file. I always download packages to /usr/src to unpack, and when I copied cake from / usr/src to /var/www/cakephp, it didn't move the .htaccess files. I'm seasoned enough to know cp doesn't catch hidden files unless you specify them, it just didn't jump out at me right away. Thanks! On Aug 24, 3:27 pm, Marek Sebera wrote: > Are files .htaccess placed in root,app and app/webroot ? > > On 24 srp, 18:22, david wrote: > > > > > First, let me say I have CakePHP up and running perfectly on windows > > with a wampserver instance running, so I'm familiar with the process. > > I know how to get mod_rewrite setup, and set the permissions > > appropriately, etc. > > > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and > > I'm now trying to get CakePHP setup. I've seen plenty of posts > > outlining getting setup on Ubuntu, because the debian arrangement of > > Apache config files can be confusing to those not familiar with it. > > I've used Debian for a long time, so I'm good on that front. > > > Basically, my problem is the 404 error for cake.generic.css and > > cake.power.gif, which everyone says is caused by a mod_rewrite > > problem. I have tested mod_rewrite separately and it works fine, so I > > know it's running and working. > > > I've tried the following in my sites-enabled (basically a snippet of > > what would be part of httpd.conf on most other systems): > > > DocumentRoot /var/www/cakephp > > > > Options FollowSymLinks > > AllowOverride All > > allow from all > > > > > > Options Indexes FollowSymLinks MultiViews > > AllowOverride All > > Order allow,deny > > allow from all > > > > > I've changed the directories to /var/www; I've recursively changed the > > owner of /var/www to www-data and set permissions to 755, and > > recursively set 777 to app/tmp. > > > I'm a bit stumped and have no idea why it's not working. Any thoughts? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
I do most of what you do and its working fine. First check that php_mysql installed and apach2 is working and mod_rewrite is loaded. 1. Extract cake anywhere, usually not /var/www, in you home . /home/zaky/projects/cakesample/ 2. Change /etc/apache2/sites-available/default to "AllowOverride All" Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all 3. rename database.php.default to database.php 4. in /var/www sudo ln -s /home/zaky/projects/cakesample/ cakesample 4.Now check at http://localhost/cakesample. The site should work and notify you about tmp directory access and the need to change cipherSeed and salt. 5. To farther create an application you need to rename database.php.default an create a database etc ... If something is wrong please write what you get at http://localhost/cakesample On Tue, Aug 24, 2010 at 10:26 PM, The Brian Martin wrote: > What does your .htaccess look like? > > > > > On Aug 24, 12:22 pm, david wrote: > > First, let me say I have CakePHP up and running perfectly on windows > > with a wampserver instance running, so I'm familiar with the process. > > I know how to get mod_rewrite setup, and set the permissions > > appropriately, etc. > > > > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and > > I'm now trying to get CakePHP setup. I've seen plenty of posts > > outlining getting setup on Ubuntu, because the debian arrangement of > > Apache config files can be confusing to those not familiar with it. > > I've used Debian for a long time, so I'm good on that front. > > > > Basically, my problem is the 404 error for cake.generic.css and > > cake.power.gif, which everyone says is caused by a mod_rewrite > > problem. I have tested mod_rewrite separately and it works fine, so I > > know it's running and working. > > > > I've tried the following in my sites-enabled (basically a snippet of > > what would be part of httpd.conf on most other systems): > > > > DocumentRoot /var/www/cakephp > > > > Options FollowSymLinks > > AllowOverride All > > allow from all > > > > > > Options Indexes FollowSymLinks MultiViews > > AllowOverride All > > Order allow,deny > > allow from all > > > > > > I've changed the directories to /var/www; I've recursively changed the > > owner of /var/www to www-data and set permissions to 755, and > > recursively set 777 to app/tmp. > > > > I'm a bit stumped and have no idea why it's not working. Any thoughts? > > 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+unsubscr...@googlegroups.comFor > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
What does your .htaccess look like? On Aug 24, 12:22 pm, david wrote: > First, let me say I have CakePHP up and running perfectly on windows > with a wampserver instance running, so I'm familiar with the process. > I know how to get mod_rewrite setup, and set the permissions > appropriately, etc. > > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and > I'm now trying to get CakePHP setup. I've seen plenty of posts > outlining getting setup on Ubuntu, because the debian arrangement of > Apache config files can be confusing to those not familiar with it. > I've used Debian for a long time, so I'm good on that front. > > Basically, my problem is the 404 error for cake.generic.css and > cake.power.gif, which everyone says is caused by a mod_rewrite > problem. I have tested mod_rewrite separately and it works fine, so I > know it's running and working. > > I've tried the following in my sites-enabled (basically a snippet of > what would be part of httpd.conf on most other systems): > > DocumentRoot /var/www/cakephp > > Options FollowSymLinks > AllowOverride All > allow from all > > > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > allow from all > > > I've changed the directories to /var/www; I've recursively changed the > owner of /var/www to www-data and set permissions to 755, and > recursively set 777 to app/tmp. > > I'm a bit stumped and have no idea why it's not working. Any thoughts? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
And once more, some tuts say that, in .htaccess, must be var RewriteBase, to get it work. That's when your .htaccess files are present. On 24 srp, 18:22, david wrote: > First, let me say I have CakePHP up and running perfectly on windows > with a wampserver instance running, so I'm familiar with the process. > I know how to get mod_rewrite setup, and set the permissions > appropriately, etc. > > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and > I'm now trying to get CakePHP setup. I've seen plenty of posts > outlining getting setup on Ubuntu, because the debian arrangement of > Apache config files can be confusing to those not familiar with it. > I've used Debian for a long time, so I'm good on that front. > > Basically, my problem is the 404 error for cake.generic.css and > cake.power.gif, which everyone says is caused by a mod_rewrite > problem. I have tested mod_rewrite separately and it works fine, so I > know it's running and working. > > I've tried the following in my sites-enabled (basically a snippet of > what would be part of httpd.conf on most other systems): > > DocumentRoot /var/www/cakephp > > Options FollowSymLinks > AllowOverride All > allow from all > > > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > allow from all > > > I've changed the directories to /var/www; I've recursively changed the > owner of /var/www to www-data and set permissions to 755, and > recursively set 777 to app/tmp. > > I'm a bit stumped and have no idea why it's not working. Any thoughts? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP 1.3 setup on Ubuntu
Are files .htaccess placed in root,app and app/webroot ? On 24 srp, 18:22, david wrote: > First, let me say I have CakePHP up and running perfectly on windows > with a wampserver instance running, so I'm familiar with the process. > I know how to get mod_rewrite setup, and set the permissions > appropriately, etc. > > So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and > I'm now trying to get CakePHP setup. I've seen plenty of posts > outlining getting setup on Ubuntu, because the debian arrangement of > Apache config files can be confusing to those not familiar with it. > I've used Debian for a long time, so I'm good on that front. > > Basically, my problem is the 404 error for cake.generic.css and > cake.power.gif, which everyone says is caused by a mod_rewrite > problem. I have tested mod_rewrite separately and it works fine, so I > know it's running and working. > > I've tried the following in my sites-enabled (basically a snippet of > what would be part of httpd.conf on most other systems): > > DocumentRoot /var/www/cakephp > > Options FollowSymLinks > AllowOverride All > allow from all > > > Options Indexes FollowSymLinks MultiViews > AllowOverride All > Order allow,deny > allow from all > > > I've changed the directories to /var/www; I've recursively changed the > owner of /var/www to www-data and set permissions to 755, and > recursively set 777 to app/tmp. > > I'm a bit stumped and have no idea why it's not working. Any thoughts? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakePHP 1.3 setup on Ubuntu
First, let me say I have CakePHP up and running perfectly on windows with a wampserver instance running, so I'm familiar with the process. I know how to get mod_rewrite setup, and set the permissions appropriately, etc. So, I just installed Ubuntu server 10.04 / Apache 2 / MySQL / PHP, and I'm now trying to get CakePHP setup. I've seen plenty of posts outlining getting setup on Ubuntu, because the debian arrangement of Apache config files can be confusing to those not familiar with it. I've used Debian for a long time, so I'm good on that front. Basically, my problem is the 404 error for cake.generic.css and cake.power.gif, which everyone says is caused by a mod_rewrite problem. I have tested mod_rewrite separately and it works fine, so I know it's running and working. I've tried the following in my sites-enabled (basically a snippet of what would be part of httpd.conf on most other systems): DocumentRoot /var/www/cakephp Options FollowSymLinks AllowOverride All allow from all Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all I've changed the directories to /var/www; I've recursively changed the owner of /var/www to www-data and set permissions to 755, and recursively set 777 to app/tmp. I'm a bit stumped and have no idea why it's not working. Any thoughts? 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en