symfony
symfony forum
Home » development » Documentation » A todo list to check if your application is finished !
Re: A todo list to check if your application is finished ! [message #80577 is a reply to message #79445 ] Wed, 24 June 2009 16:28 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
@Ases Only power users use Xdebug. These ones should know that it shouldn't be installed on the production server.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81332 is a reply to message #79445 ] Wed, 08 July 2009 12:21 Go to previous messageGo to next message
benhaines  is currently offline benhaines
Messages: 62
Registered: August 2006
Location: London
Member
I suggest you add 'checklist' to the meta keywords. I'm no SEO expert, but searching google for 'symfony checklist' brings up my blog Sad

http://www.google.com/search?q=symfony+checklist&ie=utf- 8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&a mp;client=firefox-a

I posted a blog entry about this great idea a while back and it seems to have stuck. My logs also show me I'm getting 35+ hits a day from google using these search terms.
Re: A todo list to check if your application is finished ! [message #81333 is a reply to message #81332 ] Wed, 08 July 2009 13:13 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
Done.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81964 is a reply to message #79445 ] Thu, 16 July 2009 10:48 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
Just a little typo :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<php echo $sf_user->getCulture() ?>"↵
  lang="<php echo $sf_user->getCulture() ?>">


become :

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $sf_user->getCulture() ?>"↵
  lang="<?php echo $sf_user->getCulture() ?>">


Jérôme M.
Re: A todo list to check if your application is finished ! [message #81966 is a reply to message #81964 ] Thu, 16 July 2009 10:56 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
It's fixed, thanks gouiggou


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81968 is a reply to message #79445 ] Thu, 16 July 2009 11:00 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
And a little optimisation for apache.

Avoid htaccess. Put it into virtual host configuration, and then tell apache to not read htaccess on each request !

<VirtualHost *:80>
  ...

  <Directory "/monprojet/web">
    Options FollowSymLinks ExecCGI
    AllowOverride None
    Allow from All

    RewriteEngine On

    # uncomment the following line, if you are having trouble
    # getting no_script_name to work
    #RewriteBase /

    # we skip all files with .something
    #RewriteCond %{REQUEST_URI} \..+$
    #RewriteCond %{REQUEST_URI} !\.html$
    #RewriteRule .* - [L]

    # we check if the .html version is here (caching)
    RewriteRule ^$ index.html [QSA]
    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f

    # no, so we redirect to our front web controller
    RewriteRule ^(.*)$ index.php [QSA,L]
  </Directory>

  Alias /sf /var/www/common/symfony-1.2/data/web/sf
  <Directory "/var/www/common/symfony-1.2/data/web/sf">
    AllowOverride None
    Allow from All
  </Directory>
  
  ...
</VirtualHost>

[Updated on: Thu, 16 July 2009 11:10]


Jérôme M.
Re: A todo list to check if your application is finished ! [message #81970 is a reply to message #79445 ] Thu, 16 July 2009 11:23 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
The tip doesn't work on shared hosting environment, but it's definitively interesting on dedicated servers.

I'll test it and add it to the site with the "performance" tag.
As I'm very busy these days, it probably won't be before next week.

I may also add a small popup with the contributors list. Can I add your name to it, Jérôme Macias?

[Updated on: Thu, 16 July 2009 11:24]


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #81988 is a reply to message #79445 ] Thu, 16 July 2009 14:47 Go to previous messageGo to next message
gouiggou  is currently offline gouiggou
Messages: 44
Registered: October 2005
Location: Paris
Member
Eric, you can add my name.


Jérôme M.
Re: A todo list to check if your application is finished ! [message #82180 is a reply to message #81988 ] Mon, 20 July 2009 14:52 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
I've added gouiggou's tip.

Optimize Apache: avoid .htaccess

As usual, typos and error reports are welcome.

[Updated on: Mon, 20 July 2009 15:02]


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #84683 is a reply to message #82180 ] Tue, 01 September 2009 17:50 Go to previous messageGo to next message
COil  is currently offline COil
Messages: 465
Registered: September 2006
Faithful Member

I don't know if it was said before, but it would be really great to have a cookie that remembers witch checkbox are checked... With an init button to uncheck all once you have finished the check list for one project.

Thanks for the site, very usefull and easy to use.


my Symfony Blog - http://www.strangebuzz.com
The symfony web debug bar as a standalone library : PEAR::PHP_Debug
Re: A todo list to check if your application is finished ! [message #86476 is a reply to message #79445 ] Sun, 11 October 2009 21:29 Go to previous messageGo to next message
SonicM  is currently offline SonicM
Messages: 11
Registered: December 2006
Location: Germany
Junior Member
In the askeet or the jobeet tutorial there is an introdution to svn. I don´t want to miss that feature, but it is important, that you delete the ".svn" folders, or at least deny the access.
With apache it is simple, you only have to put the following in the apache2.conf
<Directory ~  '*\.svn'>
Order Allow,Deny
Deny from All
</Directory>

The other possibility is to deploy the code with svn export, but this takes some time and I like "svn update" for fast debugging Smile

The files that are accessable from the web, such as the frontend.php are not that important, but I think you should remember the developer on your site.
Re: A todo list to check if your application is finished ! [message #86493 is a reply to message #86476 ] Mon, 12 October 2009 07:10 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
The symfony standard way to export a project to production is to use the "php symfony project:deploy" tool.

During deployment, the files listed in "myproject/config/rsync_exclude.txt" are ignored. As ".svn" is set by default in rsync_exclude.txt, the sf users just don't have to deal with this issue by default.

I'm not sure to understand well what you mean about "frontend.php", but files like "frontend_dev.php" shall not be available on the production server.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #86497 is a reply to message #86493 ] Mon, 12 October 2009 09:22 Go to previous messageGo to next message
SonicM  is currently offline SonicM
Messages: 11
Registered: December 2006
Location: Germany
Junior Member
Deployment is the first step. But in most cases you have to update the site, be it bugs or new wishes. In this case I use svn update and delete then the *_dev.php files. But the problem are the files in the subdirectory ".svn". You can see all the files in the directory and if the webserver deliver .svn-base compiled, you can see anything like that: http://www.gutefrage.net/.svn/text-base/error.php.svn-base but if not, the file is readable.

I don´t think that it is a very big security problem, but everyone has the possibility to see what your directory structure is and which files you use. By the way, if you use svn to deliver the updated files to the webserver (svn update) the *_dev.php needn´t to be there to be read. see this link http://www.gutefrage.net/.svn/text-base/frontend_dev.php.svn -base
In this case the file is executed, so that none could read the content, but in other cases you can read it.

Like I said, it is not such a big security problem, but it is worth to remark it.
How do other symfony users update their projects? I mean debugging or adding new wishes for the customer? With svn export?
Re: A todo list to check if your application is finished ! [message #86499 is a reply to message #86497 ] Mon, 12 October 2009 09:45 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
I insist, symfony deployment system uses Rsync, you could (should ?) use project:deploy not only for the initial commit, but also to deploy the modifications.

Here is a quote from the related sf documentation :

Quote:

With incremental transfer, only the modified data will be sent. If a file didn't change, it won't be sent to the host. If a file changed only partially, just the differential will be sent. The major advantage is that rsync synchronizations transfer only a small amount of data and are very fast.


You can check all the deployment options in your terminal :

php symfony h project:deploy


Of course you can use subversion for your deployments.
Subversion is a great powerful tool, but as using it for deployments doesn't follow symfony practices, so I won't add your advice to symfony-check, sorry Smile


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #86889 is a reply to message #79445 ] Sat, 17 October 2009 23:45 Go to previous messageGo to next message
alecs  is currently offline alecs
Messages: 3
Registered: June 2009
Junior Member
maye it is, maybe is not the place where we could put a hit on how we can deploy the symfony project in a shared hosting. i guess the simple method is by creating a folder and upload in ityour sf project on your server (preferably not in public_html) andd then edit 3-4 files

in config/projectConfiguration... to add a like like $this->setWebdir('/path/to/your/public_html/'); in your configure method

edit the web/*.php and change the require path like
require dirname(__FILE__).'/../sf_project/(and the rest here, without ../ )';

I have gave the example assuming that i have /home/alecs/sf_project/ folder and the www folder is placed in /home/alecs/public_html/

I will come with a functional example tommorow
Re: A todo list to check if your application is finished ! [message #87346 is a reply to message #86889 ] Sun, 25 October 2009 13:35 Go to previous messageGo to next message
weaverryan  is currently offline weaverryan
Messages: 772
Registered: November 2007
Location: Nashville, TN
Faithful Member

Absolutely love the site - well done and well executed.

Going through it this morning in some details and found a few quick "typos".

  1. 'Customize the "Login Required" Page': About half-way down, there is a header that says "Display the error page to test it". I think that's just copied from the previous item - should be "Display the login page to test it". The next section. 'Customize the "Credentials Required" page' suffers from this same problem.
  2. Right below that, ordered list item #2, "preferencies" should be "preferences".
  3. 'Customize the "This Module is Unavailable" page' - First paragraph, "default/login" should be "default/disabled"

If I find any more, I'll post them. The site has been a great resource for us - glad to see everyone is pitching in.

Also, someone mentioned putting "checklist" in the meta tags. I thought you had put it in there, but I don't see it now. I'd throw "checklist" in both the meta tags and the title tag - when I google it, I get a blog about it.

Thanks!

[Updated on: Sun, 25 October 2009 13:40]


Ryan Weaver
http://www.thatsquality.com
Follow me on twitter: http://www.twitter.com/weaverryan
Re: A todo list to check if your application is finished ! [message #87350 is a reply to message #87346 ] Sun, 25 October 2009 14:58 Go to previous messageGo to next message
weaverryan  is currently offline weaverryan
Messages: 772
Registered: November 2007
Location: Nashville, TN
Faithful Member

Hey guys-

A few other tiny details:

 - 'Delete "/backend.php/" from your uri'
    - "Personnaly" should be "Personally"

 - 'Optimize Apache: avoid .htaccess'
    - "dealed" in first paragraph isn't a word - not sure what it should be.
    - "can't be cached apache" should be "can't be cached by apache"
    - "the server has to scann the" should be "the server has to scan the"
    - "If you moving the .htaccess rules to your virtual host configuration file, the rules will be put in cache and apache performances will be improved." should be
      "If you move the .htaccess rules to your virtual host configuration file, the rules will be cached and apache performance will improve."
    - "apache configuration files on virtual host environments" should be "apache configuration files on shared hosts"
    - Hmm, not sure about this: "Most often, you'll find the virtual host configurations in the bottom of the httpd.conf, but sometimes, they are moved in some vhosts.conf file."
      Apache 2 places vhosts in a sites-available directory inside /etc/apache2
    - "Unless If you added extra rules in it, the file is now useless." should be "Unless you added extra rules in it, the file is now useless."
    - "but it could be on your configuration." - not sure what this means, does it mean that it could be in your executable "path"?
    - "Your project really should have at least a README file where this kind to modifications are reported."
      should be
      "Your project really should have at least one README file where these kinds of modifications are reported."
    - the final 2 paragraphs have pretty sloppy english


Thanks! As I said before, it's great, which is the only reason I care about the wording!


Ryan Weaver
http://www.thatsquality.com
Follow me on twitter: http://www.twitter.com/weaverryan
Re: A todo list to check if your application is finished ! [message #87360 is a reply to message #79445 ] Sun, 25 October 2009 17:44 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
Weaverryan, thanks you for your support on symfony-check, I've fixed the typos you kindly reported.

And thank you for thatsquality, your articles about symfony and the Amazon services are really great !


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #89251 is a reply to message #79445 ] Fri, 04 December 2009 03:30 Go to previous messageGo to next message
Ninj  is currently offline Ninj
Messages: 3
Registered: March 2008
Location: France
Junior Member
Hi, a big thanks for your sheet, which is already in my bookmarks Smile

This page of the symfony doc shows some tips in the frame named "Is your application finished?":

http://www.symfony-project.org/book/1_2/16-Application-Manag ement-Tools#chapter_16_sub_using_rsync_for_incremental_file_ transfer
(just check at the end of this 'Using rsync for..." sub-chapter)

Most of them are shown on your sheet, but i see for example the robots.txt being a really itneresting final touch to a website, and i did not find read anything about it on your sheet.


-= Ninj =-
Re: A todo list to check if your application is finished ! [message #89259 is a reply to message #89251 ] Fri, 04 December 2009 08:18 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
Thanks Ninj, I'll try to add it before the end of the year.

I also plan to update some tips for sf 1.3/1.4.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #91186 is a reply to message #79445 ] Mon, 11 January 2010 13:31 Go to previous messageGo to next message
j4cKiE  is currently offline j4cKiE
Messages: 15
Registered: October 2008
Junior Member
Great list, thanks for sharing!
Re: A todo list to check if your application is finished ! [message #91980 is a reply to message #79445 ] Thu, 21 January 2010 17:46 Go to previous messageGo to next message
forkmantis  is currently offline forkmantis
Messages: 37
Registered: November 2005
Location: Texas
Member
Your site is excellent. Thanks for sharing. I find it odd, though, that you do not have a favicon Smile



will killian
Re: A todo list to check if your application is finished ! [message #92764 is a reply to message #79445 ] Tue, 02 February 2010 17:36 Go to previous messageGo to next message
lacyrhoades  is currently offline lacyrhoades
Messages: 1
Registered: February 2010
Location: Nashville
Junior Member

for consideration:

http://groups.google.com/group/symfony-devs/browse_thread/th read/7ef9104bd36e834a

remove execution of server side code in the upload area
Re: A todo list to check if your application is finished ! [message #92766 is a reply to message #92764 ] Tue, 02 February 2010 17:48 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
Thanks lacyrhoades, I know, I'm Éric Rogé, I reported the vulnerability.

I plan to add a new todo point about it the sooner I can.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #92769 is a reply to message #79445 ] Tue, 02 February 2010 18:05 Go to previous messageGo to next message
j4cKiE  is currently offline j4cKiE
Messages: 15
Registered: October 2008
Junior Member
Great! Let us know, when the new point is released. Smile

Besides, I'd like to see even more ToDo-Points that improve my symfony projects. Embarassed
Re: A todo list to check if your application is finished ! [message #92770 is a reply to message #79445 ] Tue, 02 February 2010 18:13 Go to previous messageGo to next message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
I'll have more time for evolutions on Symfony check later this month.

New todo points and new features proposals are welcome.


http://symfony-check.org
Re: A todo list to check if your application is finished ! [message #93093 is a reply to message #79445 ] Mon, 08 February 2010 20:18 Go to previous message
El Riiico  is currently offline El Riiico
Messages: 39
Registered: February 2007
Location: Paris
Member
I've added a new todo about the way to secure the file uploads.


http://symfony-check.org
Previous Topic:[TICKET] Day 9: The Functional Tests - no link
Next Topic:Problem with documentation generation (phpDocumentor)
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software