Showing posts with label phpMyAdmin. Show all posts
Showing posts with label phpMyAdmin. Show all posts

set directory owner, group, and permissions on *nix machine

Execute the following commands via the command line:

sudo chgrp -R _www /Users/user_dir/target_dir
sudo chmod -R ug=rwx /Users/user_dir/target_dir
sudo find /Users/user_dir/target_dir -type d -exec chmod 2770 {} \;
sudo find /Users/user_dir/target_dir -type f -exec chmod ug=rwx {} \;
The first command sets the group to _www recursively.
The second command sets the owner and group permissions to rwx recursively.
The third command makes it so all new directories get created with the correct permissions (i.e. 2770).
The fourth command makes it so all new files get created with the correct permissions (i.e. rwx).

This post is simply a guide. Your values will differ depending on your desired outcome. In your case you may want to set only the group permissions or only the owner permissions (as opposed to both as illustrated in this post). The actual permission values you end up setting may differ too.
Continue Reading

Change a directory's group on *nix

chgrp usergroup somedir
If you want to change the directory's contents too, simply append the -R option to the chgrp command as shown below:
chgrp -R usergroup somedir
Note that somedir could also be a file (it doesn't have to be a directory). Also, if you want to change a directory's owner simply switch chgrp to chown. The options between the two commands are the same.
Continue Reading

Why is MAMP PRO so slow

Not sure. But I can tell you how to fix it.

Run the following series of commands:
# Where yoursite.local is the name of your site
sudo echo '::1 yoursite.local' > /tmp/newfile
sudo cat /etc/hosts >> /tmp/newfile
sudo mv /tmp/newfile /etc/hosts
Problem solved! Check it out for yourself at yoursite.local right now.

Cheers!
Continue Reading

Install phpMyAdmin on new server

 Followed up by:
 
 
# Open Apache's conf file:
sudo nano /etc/apache2/httpd.conf

# Add this line:
Include /etc/phpmyadmin/apache.conf

# Then, run:
sudo /etc/init.d/apache2 restart

# And now phpMyAdmin should work! Check it out at http://yourip/phpmyadmin/.
Continue Reading