This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if u have rewrite module installed : check by apachectl -M or apache2ctl -M | |
| then check if the .htaccess is enabled (by default default is disabled) | |
| to enable it go /etc/httpd/conf/httpd.conf and change: | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride None /* change None to All */ | |
| to | |
| <Directory /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| systemctl start mysqld.service | |
| systemctl stop mysqld.service | |
| systemctl enable mysqld.service Enable the service over reboots (which just sets up some symlinks in the relevant dirs). same as chkconfig mysqld on | |
| systemctl disable mysqld.service | |
| systemctl status mysqld.service | |
| If you want to use the service commands they should still work as well: | |
| service mysqld start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for start we suggest that you combine all configuration on virtual hosting into a single file called vhost.conf located in the /etc/httpd/conf.d/ directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error | |
| ur server dont serve css files | |
| fix | |
| AddHandler application/x-httpd-php .css /* To each virtualhost */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MySQL errors | |
| ------------- | |
| ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ | |
| start mysql deamon | |
| phpMyAdmin | |
| ---------- | |
| Forbidden | |
| You donEdit the /etc/httpd/conf.d/phpmyadmin.conf and uncomment the line deny from all. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| groups username check the groups of that user | |
| useradd -G {group-name} username add user to a group | |
| gpasswd -d username groupname remove a user from a group |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tar | |
| --- | |
| tar -zxvf {file.tar.gz} | |
| another distenation | |
| tar -zxvf tarball.tar.gz -C <directory> | |
| or move to ur destination and use: | |
| tar -zxvf {path to file.tar.gz} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Gnome 3 | |
| ------- | |
| to add shortcut application to gnome luncher | |
| for ur account: | |
| add the file: ~/.local/share/applications/Your_app.desktop | |
| and past: | |
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Version=1.0 | |
| Type=Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rpm | |
| +++ | |
| To install a package (i=install v=verbose h=show hash marks) rpm -ivh package | |
| To uninstall (erase) a package rpm -e package | |
| To upgrade a package rpm -Uvh package | |
| To test a package to see how it would install (without installing, also checks dependencies) rpm -Uvh --test package | |
| To verify a package (extra verbose output) rpm -Vvv package | |
| To verify ALL installed packages on the system rpm -Va |
NewerOlder