Question

I have recently upgraded the Ubuntu OS (10.04 -> 12.04) in my development workstation, and know I'm getting trouble in running the project I'm working on. I think it's some permission related problem. The fact is that I already have it running with no problems in a production server.

Is there any tool I can check project's folder permissions for errors, more or less like "symfony project:permissions" in Symfony 1 ?

I'm getting a css troubled first page in my dev frontend and a JS alert that reads:

An error occurred while loading the web debug toolbar (404: Not Found). Do you want to open the profiler?

The web folder .htacess is the same from the working production environment and I have an apache configuration equal to production only with ssl disabled.

Edit:

Virtual Host configuration:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www
    #<Directory />
    #       Options FollowSymLinks
    #       AllowOverride None
    #</Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            AcceptPathInfo On
            Order allow,deny
            allow from all
    </Directory>
    Alias /myproject /home/nelson/des/php/myproject/Symfony/web

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel debug

    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

The "AcceptPathInfo On" was included in an attempt to solve. I already tried with and without it.

Any help apreciated

Était-ce utile?

La solution

It seems that you haven't published your assets (css, js, images...)

Try the following from command line in the root folder of Symfony :

php app/console assets:install web/ --symlink

Also, check that the rewrite mod is enabled : a2enmod rewrite

EDIT: Given your VirtualHost config file, it seems that you gave the wrong folder to Apache. You configuration must point to the web folder of Symfony2. For example :

<VirtualHost *:80>
    DocumentRoot /home/myuser/www/Symfony/web
    <Directory /home/myuser/www/Symfony/web>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    #......
</VirtualHost>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top