|
|
|
|
Joined: Nov 2001
Posts: 6
Lurker
|
|
Lurker
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'
|
|
|
|
|
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
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.
|
|
|
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.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 4445
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
|
|
|
|
|
|