Search found 197 matches

by chris
Wed Mar 29, 2017 8:45 pm
Forum: HTML
Topic: wrap long words in table
Replies: 1
Views: 20072

Re: wrap long words in table

You can use CSS,

Code: Select all

 td{word-wrap: break-word;}
by chris
Wed Mar 15, 2017 7:10 pm
Forum: PHP
Topic: end php script
Replies: 1
Views: 17925

Re: end php script

You can use exit //exit program normally exit; exit(); exit(0); //this program ran successfully/without errors" //exit with an error code exit(1); exit("error text"); //octal You can also use die() , wich is the same but mostly used with a error code die("There was a fatal error&...
by chris
Tue Jan 24, 2017 11:04 pm
Forum: Apache
Topic: SOLVED: httpd (pid 4561?) not running
Replies: 2
Views: 44175

Re: httpd (pid 4561?) not running

Did you try:

Code: Select all

/etc/init.d/apache2 restart

It also possible that the process crashed.
Look for the file

Code: Select all

/run/apache2.pid
If it exists, delete it;
and retry.
by chris
Thu Dec 22, 2016 8:23 am
Forum: Servers
Topic: bincimap reset password
Replies: 1
Views: 48384

Re: bincimap reset password

I'm not sure,
but I thought that Binicimap used system users and passwords.

I don't have a system with bincimap,
so I can't test it.
by chris
Wed Nov 23, 2016 8:26 pm
Forum: General
Topic: cannot access /var/spool/cron/crontabs: Permission denied
Replies: 2
Views: 24270

Re: cannot access /var/spool/cron/crontabs: Permission denied

There can be several reasons:

check that the group crontab has all the necessary rights

Code: Select all

chown root:crontab /usr/bin/crontab
chmod g+s /usr/bin/crontab

Code: Select all

chown root:crontab /var/spool/cron/crontabs
chmod u=rwx,g=wx,o=t /var/spool/cron/crontabs
by chris
Wed Nov 09, 2016 9:32 pm
Forum: MySQL
Topic: MYSQL ERROR 1878 (HY000): Temporary file write failure.
Replies: 1
Views: 28481

Re: MYSQL ERROR 1878 (HY000): Temporary file write failure.

When you do a ALTER TABLE in MySQL it re-create the table,
so two copies of the table exists on the system.

So you need enough free space.
specially in /tmp/
Because this dir is used as default.
you can change it in /etc/mysql/my.cnf

Code: Select all

tmpdir          = /tmp
by chris
Tue Nov 08, 2016 7:51 pm
Forum: Servers
Topic: Lots of audit messages polluting my logs
Replies: 1
Views: 24445

Re: Lots of audit messages polluting my logs

It look like you have hardening on your system. but the audit service is not running Check it with the following command (as root) /etc/init.d/auditd status If not start it /etc/init.d/auditd start It will direct the messages to the proper log: /var/log/audit/audit.log It will not solve any of the p...
by chris
Mon Oct 31, 2016 1:44 pm
Forum: Shell
Topic: screen connect: No such file or directory
Replies: 1
Views: 22985

Re: screen connect: No such file or directory

Check to see if you have the environment variable STY set: [] echo $STY 251.pts-0 If the variable is set, then you are telling screen to reattach to an existing session. If that session doesn't exist, then you will see the error you are getting. To solve this, just clear the environment variable by ...
by chris
Fri Oct 28, 2016 6:21 pm
Forum: MySQL
Topic: How to get history of mysql commands
Replies: 1
Views: 24575

Re: How to get history of mysql commands

You can find the history file in you home directory:

Code: Select all

less ~/.mysql_history
by chris
Sat Aug 27, 2016 3:51 pm
Forum: SQL
Topic: SOLVED: mysql compare case-sensitive
Replies: 2
Views: 23368

Re: mysql compare case-sensitive

You can use binary to make it work:

Code: Select all

SELECT name FROM table WHERE name LIKE BINARY 'a%';
It converts to binary and then compares,
so It is not exactly case insensitive.
It will not match 'à' for example.

Binary also works with REGEXP

Code: Select all

SELECT name FROM table WHERE name REGEXP BINARY '^[a-z]';