Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 6
Lurker
Lurker
Offline
Joined: Nov 2001
Posts: 6
Hi I was trying to get another php script working on my server and i changed ownership of the temp folder to the apache user account. I am on a red hat linux 7.x box. Do I need to change the ownership back to what ever group my mysql user is in. I am not very good with permissions and it seems like everything works but searches?

Below is the error i am getting.

Can't create/write to file '/tmp/#sql4cb_688336_0.MYI'

Sponsored Links
Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
It won't matter who the owner of the script is as long as in the config file of your program specifies this name. Make sure your permissions for your tmp directory are set to include write permissions.


Some people read their stars..... I choose to write my own
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
the tmp dir should be owned by the root user (root:root).
chmod it back to 777 (chmod 777 /tmp) and set the t-flag (chmod +t /tmp).

Then it should work again. But you should take a look at your mysql configuration. mysql should not write such files to the temp directory. The file you mentioned is created while resorting the table indices.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 4445
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)