Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 15th October 2012, 18:45
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,751
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

What are the exact error messages that you get in the error.log of the website and that you get on the screen.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 15th October 2012, 21:45
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

I got this message in the error.log:

[Mon Oct 15 20:39:07 2012] [warn] [client 192.168.0.48] mod_fcgid: stderr: PHP Warning: is_writable(): open_basedir restriction in effect. File(/var/www/clients/client1/web3/web/../app/logs) is not within the allowed path(s): (/var/www/clients/client1/web3/web:/var/www/clients/client1/web3/tmp:/var/www/website.fr/web:/srv/www/website.fr/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php) in /var/www/clients/client1/web3/web/config.php on line 34

And this to the screen :

Change the permissions of the "app/cache/" directory so that the web server can write into it.
Change the permissions of the "app/logs/" directory so that the web server can write into it.
Reply With Quote
  #13  
Old 15th October 2012, 22:06
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

That is ok, I have to add the open_base_dir to the options of the website.

Now when I want to open app_dev.php, the page is blank and I got this in error.log :

[Mon Oct 15 21:03:07 2012] [warn] [client 192.168.0.48] mod_fcgid: stderr: PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client1/web3/web/../app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/clients/client1/web3/web/app_dev.php on line 17, referer: http://website.fr/config.php
Reply With Quote
  #14  
Old 16th October 2012, 09:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,751
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

Seems as if there is a wrong path in your symfony configuration as it tries to access a file outside of the web folder. It tries to open the path:

/var/www/clients/client1/web3/app/bootstrap.php.cache

while all files should be inside the web folder, so it should be:

/var/www/clients/client1/web3/web/app/bootstrap.php.cache
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
dsautet (16th October 2012)
  #15  
Old 16th October 2012, 12:27
dsautet dsautet is offline
Member
 
Join Date: Feb 2012
Posts: 31
Thanks: 2
Thanked 2 Times in 2 Posts
Default

Yes you were right, I put the Symfony folder in the wrong folder.

Now it's work.

Thank you very much
Reply With Quote
  #16  
Old 7th June 2013, 13:46
nikro nikro is offline
Junior Member
 
Join Date: Aug 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
Seems as if there is a wrong path in your symfony configuration as it tries to access a file outside of the web folder. It tries to open the path:

/var/www/clients/client1/web3/app/bootstrap.php.cache

while all files should be inside the web folder, so it should be:

/var/www/clients/client1/web3/web/app/bootstrap.php.cache
Well this is not "wrong" by Symfony. Modern PHP Frameworks avoid to put all its stuff in the document root of the webserver.

Symfony needs only one single php file (app.php) in the document root for bootstraping. The source is located in ../{app,src,vendor}

Quote:
Originally Posted by Symfony.com
All public files and the front controller that handles incoming requests in a Symfony2 application live in the Symfony/web/ directory. So, assuming you unpacked the archive into your web server's or virtual host's document root, your application's URLs will start with http://localhost/Symfony/web/. To get nice and short URLs you should point the document root of your web server or virtual host to the Symfony/web/ directory. Though this is not required for development it is recommended when your application goes into production as all system and configuration files become inaccessible to clients.

Source: http://symfony.com/doc/current/book/...oad-an-archive
Having such a setup supported in a proper way natively would be awesome.
Reply With Quote
  #17  
Old 7th June 2013, 13:52
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,751
Thanks: 840
Thanked 5,601 Times in 4,412 Posts
Default

Quote:
Modern PHP Frameworks avoid to put all its stuff in the document root of the webserver.
And for exact that reason there is a folder called "private" in ispconfig to hold all files and directories which shall not be accessible by http.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #18  
Old 7th June 2013, 18:26
nikro nikro is offline
Junior Member
 
Join Date: Aug 2008
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
And for exact that reason there is a folder called "private" in ispconfig to hold all files and directories which shall not be accessible by http.
I thought about that, but on my system private/ is not in open_basedir by default, so I skipped that direction.

Just recognized "php_open_basedir=[website_path]/web:[website_path]/private:[...]" - I will give it a try.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Relay access denied when using SMTP to external recipients Kamran Shah Installation/Configuration 111 14th May 2014 19:10
ISPConfig 3.0.3.3 fresh instalation - email tab is empty artur_gib Installation/Configuration 14 28th January 2014 20:02
Ubuntu 11.10, ISPConfig 3.0.4.1 needs some nginx.conf tweaks after following guide. talkingnews Installation/Configuration 10 28th November 2011 22:55
PHP warnings after upgrade to ISP config 3.03 stevegjacobs Installation/Configuration 5 30th October 2010 15:31
ISPConfig 3.0.0.7 Beta released till General 78 24th December 2008 12:47


All times are GMT +2. The time now is 22:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.