HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Can't install Prestashop due to open_basedir error (http://www.howtoforge.com/forums/showthread.php?t=61118)

kareemhali 25th March 2013 01:59

Can't install Prestashop due to open_basedir error
 
Hi,

After upgrading ISPconfig, I can't install Prestashop on my server anymore. I get this error, which happens on step (Configure Shop Information at 58%).

[Mon Mar 25 00:40:51 2013] [warn] [client 82.37.187.108] mod_fcgid: stderr: PHP Warning: file_exists(): open_basedir restriction in effect. File(/var/www/clients/client1/web6/web/cms-shop/modules/error_log.txt/mails/en/) is not within the allowed path(s): (/var/www/clients/client1/web6/web:/var/www/clients/client1/web6/tmp:/var/www/mysite.com/web:/srv/www/mysite.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php) in /var/www/clients/client1/web6/web/cms-shop/classes/Tools.php on line 1264, referer: http://mysite.com/cms-shop/install/i...p?restart=true


I'm using Fast-CGI with SSL and SuEXEC ticked, and latest ISPconfig.

I tried setting file permissions, gave 777 to all files, didn't work. I tried putting directories in PHP open_basedir config on the site panel, didn't work, although I'm not sure if I put the correct directories.

When I disable it and put "none", installation works fine.

As I'm no PHP expert, I'm not sure if this is bad for the server to disable it completely or if it doesn't matter.

How can I fix it please?, also, what is the best settings on the site panel for a PrestaShop site.

Thanks,
Kareem.

kareemhali 26th March 2013 17:51

Any help ?

I thought by becoming a subscriber I would get more help to be honest !.

Kareem.

ressel 26th March 2013 22:18

try with
Code:

/var/www/clients/client1/web6/web:/var/www/clients/client1/web6/tmp:/var/www/mysite.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin
I have installed a website with prestashop on one of my servers.

kareemhali 29th March 2013 15:06

Hi,

Thanks for the info, that didn't work!.

Kareem.

Quote:

Originally Posted by ressel (Post 294781)
try with
Code:

/var/www/clients/client1/web6/web:/var/www/clients/client1/web6/tmp:/var/www/mysite.com/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin
I have installed a website with prestashop on one of my servers.


ressel 29th March 2013 15:09

Quote:

Originally Posted by kareemhali (Post 294984)
Hi,

Thanks for the info, that didn't work!.

Kareem.

I'm actually using suphp

kareemhali 30th March 2013 05:48

Hi Ressell,

I think Till recommends that we stick with Fast-CGI with SuEXEC ticked when using a CMS site.

I'm not sure why no one from ISPConfig team is replying to this post.

Anyway, thanks for your help Ressell.

Quote:

Originally Posted by ressel (Post 294985)
I'm actually using suphp


falko 2nd April 2013 14:23

Quote:

Originally Posted by kareemhali (Post 295039)
I'm not sure why no one from ISPConfig team is replying to this post.

We sometimes have to do other work, and a day has only 24 hours...

kareemhali 4th April 2013 01:19

Quote:

Originally Posted by falko (Post 295214)
We sometimes have to do other work, and a day has only 24 hours...

I submitted the post on the March 24th. I also subscribed before submitting the post because I really like ISPConfig. I expected to have a quicker answer as it's been over 10 days!.

Thanks anyway.

till 4th April 2013 11:26

Quote:

I submitted the post on the March 24th. I also subscribed before submitting the post because I really like ISPConfig. I expected to have a quicker answer as it's been over 10 days!.
This is the ISPConfig community forum and not the official ispconfig support. In a community forum, ispconfig users discuss things related to the software ispconfig in their free time and there is no gurarantee to get an answer at all like with all community forums. The ispconfig developers try to answer questions here if possible but we cant answer all posts and we encourage community members to help others like reseel did.

If you need urgent support or want to ensure that you get a answer form a ISPConfig developer, then please use the support system instead of asking the community: http://support.ispconfig.org

Weare really thankful that you became a subscriber here at howtoforge as the howtoforge subscription supports the development of ISPConfig and we would not be able to continue the development of new ISPConfig versions without that support. But the subscription is not a support plan for ISPConfig, what the subscription includes is described here: http://www.howtoforge.com/subscription

Quote:

- Download the ISPConfig 3 Manual.
- Access the whole HowtoForge web site without any ads.
- Download the results of our tutorials as VMware images (where available) (a list of downloadable VMware images is available here: http://www.howtoforge.com/list-of-do...-vmware-images ).
- Download our tutorials as PDF files.
- View our tutorials as printer-friendly pages.
- You will be marked as a "HowtoForge Supporter" in your forum posts.
P- lus, you support the ISPConfig development.
Please contact us trough the ticket system at http://support.ispconfig.org if you need a support plan for ISPConfig.

till 4th April 2013 11:30

Quote:

Originally Posted by kareemhali (Post 295039)
Hi Ressell,

I think Till recommends that we stick with Fast-CGI with SuEXEC ticked when using a CMS site.

I'm not sure why no one from ISPConfig team is replying to this post.

Anyway, thanks for your help Ressell.

suphp should not be used anymore, we support it just for legacy reasons.

The recommended option is to use php-fcgi + suexec or php-fpm + suexec.

Regarding open_basedir: the open_basedir path is correct as /var/www/clients/client1/web6/web/ is included in the path and the script is in a subdirectory of that path. ensure that all files in /var/www/clients/client1/web6/web/ are owned by user web6 and group client1


All times are GMT +2. The time now is 16:59.

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