Koozali.org: home of the SME Server

PHP problem

Offline lguzman

  • **
  • 31
  • +0/-0
    • http://micasa.servehttp.com/
PHP problem
« on: August 14, 2005, 11:38:12 PM »
I have sme 6.5. and I unable to upload files with PHPMYADMIN I always get File could not be read /tmp/php5nlNwB
I found this and I tried it but still no working.



I cannot insert a text file in a table, and I get an error about safe mode being in effect.
Your uploaded file is saved by PHP in the "upload dir", as defined in php.ini by the variable upload_tmp_dir (usually the system default is /tmp).
We recommend the following setup for Apache servers running in safe mode, to enable uploads of files while being reasonably secure:
•   create a separate directory for uploads: mkdir /tmp/php
•   give ownership to the Apache server's user.group: chown apache.apache /tmp/php
•   give proper permission: chmod 600 /tmp/php
•   put upload_tmp_dir = /tmp/php in php.ini
•   restart Apache

Do i missing some steps?
......

Offline Smitro

  • *
  • 350
  • +0/-0
PHP problem
« Reply #1 on: August 18, 2005, 11:41:24 AM »
I have seen an answer to this some where, can't remember where.
But what you could do is cut and paste the content into the SQL box. (simple way around it)
.........

Offline kruhm

  • *
  • 680
  • +0/-0
PHP problem
« Reply #2 on: August 21, 2005, 02:22:33 PM »
hmmmm... did you install the smeplus script? if so, uninstall PHPMYADMIN then reinstall it with the rpm. for some reason the PHPMYADMIN doesn't install correctly on some installs. then make sure your permissions are correct.