General TC > General TC Talk

mysql error message

<< < (2/3) > >>

bigpcman:
I'm finally making some progress again. I decided rather than trying to get my web server working on tc to instead go back to good old xampp. I downloaded xampp and tried to install it with the usual tar command "tar xvfz xampp-linux-1.7.tar.gz -C /opt". This syntax did not work so I used "tar -C "/opt" -zxf "xampp-linux-1.7.tar.gz". Don't know why the old syntax doesn't work but that's a problem for another day. I should also note that the -v option was rejected as file not found. Anyway, xampp installed fine but had all the same problems - no sock file and  mysql file access permission problems. So I decided to do a brute force test and changed the entire lampp directory recursively to user nobody and group staff with permissions set to 777. I then had to set lampp/bin back to 755 and my.cnf to 755. Once this was done apache, mysql, php and proftp all worked correctly.   

My humble conclusion is that there is something going on in tc (ash?) with both the cp and tar commands regarding maintaining permissions that prevents all the permissions from being maintained. I've used both commands as user tc and user root. I would have thought the root user would have worked.

Now comes the hard part, tracking down exactly what files and directories have the wrong permissions.

tobiaus:

--- Quote from: bigpcman on January 06, 2009, 04:55:09 PM ---My humble conclusion is that there is something going on in tc (ash?) with both the cp and tar commands regarding maintaining permissions that prevents all the permissions from being maintained. I've used both commands as user tc and user root. I would have thought the root user would have worked.
--- End quote ---

if all your problems seem to come from busybox's ash, have you tried simply installing bash as a tce?

bigpcman:
I have bash loaded as an extension but I don't know how to make it the default shell. Also, I'm not sure that the ash shell is the problem. Although I do know now that the "lamp kit" scripts require bash. What are other people seeing in this regard?

^thehatsrule^:
It should keep the permission if the user is allowed to do so - try it again with root privileges.  As for cp, the same applies, but you'll probably also need to specify other switches, such as "-a".

It looks like the busybox tar needs to have the 'f' switch at the end, as anything after that is taken as the input filename.  `tar zxvf somefile.tar.gz ` should work.

cp and tar are (usually) not part of shell builtins, but you can invoke "/bin/bash" to get the bash shell, or change the symlink /bin/sh to point to /bin/bash to have it used for all sh scripts.

bigpcman:
Could you offer any ideas as to why "tar -C "/opt" -zxf "xampp-linux-1.7.tar.gz" did not maintain permissions. I executed this command in aterm after performing sudo su. If tar is not part of "builtin shell commands then does bash have anything to do with the tar program in tc (assuming the extension is installed)?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version