After install Drupal, successfully, I see the main page of my site but when I pressed any option of my main menu I've had the error shown below and I can't run any option I'cant even go to Administer users.
* warning:
fopen(): SAFE MODE Restriction in effect. The script whose uid is 10023 is not allowed to access /tmp/filebCkCSE owned by uid 48 in /home/httpd/vhosts/ffiguerola.net/httpdocs/includes/file.inc on line 773.
* warning: fopen(/tmp/filebCkCSE): failed to open stream: Success in /home/httpd/vhosts/ffiguerola.net/httpdocs/includes/file.inc on line 773.
* No se pudo crear el archivo.
* warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 10023 is not allowed to access /tmp/file2za6Dc owned by uid 48 in /home/httpd/vhosts/ffiguerola.net/httpdocs/includes/file.inc on line 773.
* warning: fopen(/tmp/file2za6Dc): failed to open stream: Success in /home/httpd/vhosts/ffiguerola.net/httpdocs/includes/file.inc on line 773.
* No se pudo crear el archivo.
Comments
The short answer is to
The short answer is to disable PHP's "safe mode", if you can. If you can't, you will always have some problem or another.
See http://php.net/manual/en/features.safe-mode.php
quote: "Warning: This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged."
The long answer:
"The script (Drupal) whose uid is 10023 (owned by you, your user ID) is not allowed to access /tmp/filebCkCSE (files in the temp directory) owned by uid 48 (because it is owned by user 'apache' or 'www-data')". This could also happen to your uploaded "files" directory, not only to "tmp".
With safe mode a script owned by someone can't access files owned by someone else, no matter how you set the permissions.
Looking for workarounds:
- You could try to make everything be owned by you (your own "files" directory, your own "tmp" directory). On most server configurations this won't work, because Drupal writes files as the apache user, and then safe mode wouldn't allow Drupal to access the files that it wrote itself. Maybe it could work on servers running suexec, where Drupal writes files "in your name".
- You could try to make Drupal itself be owned by the apache user, for example by having a php script write all the installed Drupal files (or ask your host to chown them). That might work, but it is really inconvenient. To FTP anything you would need to make everything writable by all (777).
So, ditch the safe mode or switch hosts.
Thank you very much
Thank you very much
I've asked my server provider to change the PHP SAFE MODE.
Perhaps this arrange everything.
I'll send a message when all will be finish.
Safe mode with a new Drupal user
Hi,
There's a handbook page - http://drupal.org/node/82223 - about how to add a new 'drupal' unix user and group to work around the safe mode restriction. You'll need shell access to the server, and will need to be familiar with using the command line, but the setup works for me.
Thanks a lot
Thanks a lot
Please, ask your support team
Please, ask your support team turn off SAFE MODE for your hosting.
--> worked with me
My sites: Medicare