Difference between revisions of "Talk:PhpMyAdmin"
m (→deny from all (.htaccess for phpyadmin)) |
|||
(8 intermediate revisions by 3 users not shown) | |||
Line 20: | Line 20: | ||
'''But should the mysql package do this?''' | '''But should the mysql package do this?''' | ||
− | + | ||
− | + | ||
+ | == typo? == | ||
+ | |||
+ | in the section that begins with; | ||
+ | |||
+ | Use for PHP 5.x: | ||
AddHandler php5-script php | AddHandler php5-script php | ||
Line 28: | Line 33: | ||
AddHandler php5-script .php | AddHandler php5-script .php | ||
+ | |||
+ | :It's the same, see the official documentation: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler | ||
+ | :"The extension argument is case-insensitive and can be specified with or without a leading dot." -- [[User:Kynikos|Kynikos]] 04:35, 4 June 2011 (EDT) | ||
+ | |||
+ | == deny from all (.htaccess for phpmyadmin) == | ||
+ | |||
+ | Commenting out 'deny from all' as the article states will allow ''everyone'' access. Wouldn't a safer way to do this be: | ||
+ | deny from all | ||
+ | allow from localhost | ||
+ | allow from 192.168.1.0/24 | ||
+ | Or something to this extent? [[User:Axanon|Axanon]] 06:54, 19 June 2011 (EDT) |
Revision as of 10:57, 19 June 2011
I have just installed mysql, and I've got
- mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Thanks to the wiki i've done:
General MySQL Connectivity
Check /var/run/mysqld for mysqld.sock and /tmp for mysql.sock. If mysql.sock doesn't exist, create a softlink:
- ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
Then restart the daemon:
- /etc/rc.d/mysqld restart
But should the mysql package do this?
typo?
in the section that begins with;
Use for PHP 5.x:
AddHandler php5-script php
to
AddHandler php5-script .php
- It's the same, see the official documentation: http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addhandler
- "The extension argument is case-insensitive and can be specified with or without a leading dot." -- Kynikos 04:35, 4 June 2011 (EDT)
deny from all (.htaccess for phpmyadmin)
Commenting out 'deny from all' as the article states will allow everyone access. Wouldn't a safer way to do this be:
deny from all allow from localhost allow from 192.168.1.0/24
Or something to this extent? Axanon 06:54, 19 June 2011 (EDT)