I've installed Drupal for my personnal website and I'm having a couple of problems.

- When I check out the System Parameters for my site, I get a message saying that "/tmp directory doesn't exist"
- When I want to upload pictures to appear in a blog message, the pictures do not show
- The calendar month showing the current month's archive is all wrong: Shows that I have archives for July 30th and July 4th when then only archives I have for July are from July 5th.
- I should have an image in my blog posts that shows the same picture as the one on the top left corner of my website, but they do not show at all even though the setup it ok for that. When you move the mouse over the upper left corner of my blog messages, you can see that there is an indentation in the text where the picture should be...but it doesn't show up.

Anybody can help me out with these problems? My website can be found at http://www.steff.qc.ca
Yes I know...My website is in french.

Comments

spiff06’s picture

1. Did you create the /tmp directory at the root of your Drupal site? You should set its permissions access to 755

2. No, the pictures do not show. That is quite a stumper for any sensible individual (like me), but as a first step and if you're the only user, I suggest you use the image.module to upload images, then link to the image you uploaded using a plain old A tag in your blog entry.

3. Noticed the same about the calendar. Bug.

4. Haven't used this feature.

C'est assez difficile d'avoir de l'aide ces temps-ci, peut-être à cause de l'été qui commence... Entre Francophones, faut se tenir les coudes. Amitiés de Normandie :-)

Steff-1’s picture

Merci beaucoup pour la réponse spiff. Je vais faire en sorte de tenter de corriger les problèmes avec les solutions que tu m'as données.

Pour ce qui est des photos dans mes messages de blog, je peux effectivement mettre les liens à partir de mon album photo que j'ai installé avec Gallery. Je me disais qu'étant donné qu'il y avait l'option pour mettre les photos directement en écrivant un message blog, ca facilitait les choses.

Encore une fois merci et continuez de visiter mon site ;)

Steff
http://www.steff.qc.ca

Steff-1’s picture

I have tried creating a directory named tmp in the root folder for Drupal, then when I go in the parameters section to see if it works, I get the same problem that says the /tmp directory doesn't exist. I did create it in the Drupal directory and the default CHMOD for directories is 755 on my server...so I didn't have to change it.

Also, once I get in the parameters section of my website, I get 2 error messages:

warning: is_dir(): Stat failed for /tmp (errno=70 - Stale NFS file handle) in /www/s/steffqcca/htdocs/drupal/includes/file.inc on line 85.

warning: mkdir(/tmp): File exists in /www/s/steffqcca/htdocs/drupal/includes/file.inc on line 86.

Any ideas?

Steff
http://www.steff.qc.ca

spiff06’s picture

Ok, you need to either:

  • find out where the server-wide temporary folder is (on a linux box using /home/user/ structures, it is usually located at /tmp, not sure where it would lie on /www/u/user/ boxes, check your host docs or upload a php file with a phpinfo(); call in it, then look in the environment variables section on the resulting page), or;
  • create a temporary folder (chmod 700 or 755) at your user root (above htdocs, e.g. /www/s/steffqcca/tmp).

Whatever you choose, you'll need to update the settings (2/3 down the page at http://www.steff.qc.ca/admin/settings, under "Temporary directory") and set it to that exact path.

sstrange’s picture

I've installed Drupal and I also got the same error /tmp does not exist.
I'm not able to find out what the server-wide temp folder is (phpinfo) is disabled. I can only find this info with capa.php (do you it?)
server path: /ext/s/st/stranger.nl/html
After that I created a tmp folder in the user root (below /html folder) and changed the attributes to 755.
After that I changed the tempary path in the settings to /ext/s/st/stranger.nl/tmp but I stil get the error message.

What am I doing wrong?

Regards,
Stefan Stranger

sstrange’s picture

I created a tmp folder under the drupal folder and problem was solved.

banesto’s picture

i created tmp folders in main folder and gave it permission 755 and there's still no effect! on my localhost it works fine, because i use hosts file to configure drupal folder, but in the hosting, it is not configured, because it is http://www.filmumuzika.lv/drupal/

but i made tmp folder in the folder that error massage told me to:

warning: mkdir(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/www/ekon/filmumuzika_lv/)

What should i do?

ArthurHP’s picture

every time i use link, my index.php don´t work. ex. create the first account ... http://localhost/drupal-4.6.3/?q=user/register, i thing the problem is my apache httpd.conf, but i try change it, and the problem persist. when i try open my brownser which or default is http://localhost/drupal-4.6.3, i see first the index of drupal and i have to click in index.php to start the process.

Where i have do copy my .htaccess ? in htdocs ?

Please, Help me. Thanks.

banesto’s picture

find line in httpd.conf - "DirectoryIndex" and add "index.php" to the others - index.html index.htm

vdd’s picture

In administrer -> setings you can configure where the tmp folder exists. By default this is "/tmp". Simply by replacing this by "tmp" (so removing the slash) drupal is finally looking in its own root for the tmp folder which I then created. If you prefer you can also use "../tmp" so the tmp folder will be placed one level up. I hope this will help.

edg’s picture

www.iofilm.co.uk - Not a Drupal site yet!

jiv’s picture

i am a new user and tried different cms installs. found this tread looking for the tmp problem. removing the slash works.

Joomla is much easier to install but somehow I did not like it. trying drupal now.

the drupal install docs are not very easy. seems that a lot of info is for older versions.
also don't understand why the tmp and files folder is not in the install package.

another issue is that none of the cms's i installed has good documentation on chmod settings. (or I can't find it yet)
i would like something like:
every file in root 777
sites 777
every file in sites 655
every subdir of sites 750

that kind of stuff.
even better a script that sets everything correctly.

I am afraid that once I start investing time in the website, at some point a hacker comes along and ruins everything.
i would like to prevent that.

john