Search found 199 matches
- Sat Apr 27, 2019 6:30 pm
- Forum: WordPress
- Topic: wordpress test site
- Replies: 2
- Views: 40611
Re: wordpress test site
I think the easiest way is to use you domain name and add it to the hosts-file of your local PC and point it to localhost. But you wont be able to access the actual site, until your from the line form you hosts-file. There are other option, using a sub-domain, or a temporary URL but I haven't worked...
- Wed Nov 07, 2018 10:32 pm
- Forum: General
- Topic: essential email-addresses
- Replies: 1
- Views: 23311
Re: essential email-addresses
Some good email to start: webmaster@ to report broken links, it happens more than you'd think! abuse@ it sometimes keeps people from going directly to your host / data center / bandwidth provider in the event that someone found a way to use your server to send SPAM. postmaster@ if your mail server i...
- Thu Nov 01, 2018 12:31 pm
- Forum: SQL
- Topic: how to Select string starting with lower
- Replies: 1
- Views: 38690
Re: how to Select string starting with lower
In mysql I like to use :
It work really well for me.
Code: Select all
SELECT name FROM table WHERE BINARY(name) REGEXP '^[a-z]';
- Sun Sep 16, 2018 7:45 pm
- Forum: HTML
- Topic: css set to div block next too each other
- Replies: 1
- Views: 41640
Re: css set to div block next too each other
there are probably multiple solution. One I find easy is this one: <div id="parent"> <div id="part1">(200px)</div> <div id="filling">(rest of width)</div> </div> CSS #parent { display: flex; } #part1 { width: 200px; background: lightblue; } #filling { flex: 1; /* Grow t...
- Sat Sep 08, 2018 11:22 am
- Forum: PHP
- Topic: Fatal error: Allowed memory size exhausted
- Replies: 1
- Views: 38201
Re: Fatal error: Allowed memory size exhausted
In the php.ini file (/etc/php/cli-php7.0/php.ini)
you can set the Allowed memory :
You can increase it to 512M or even more.
But you might want to check why your script uses that much memory.
you can set the Allowed memory :
Code: Select all
memory_limit=128M
But you might want to check why your script uses that much memory.
- Thu Sep 06, 2018 6:40 pm
- Forum: MySQL
- Topic: SOLVED: mysql table is marked as crashed and should be repaired
- Replies: 4
- Views: 37557
Re: mysql table is marked as crashed and should be repaired
Default MySQL repair uses /tmp as temporary dir.
In many system /tmp is now mounted as tmpfs in ram memory,
and is limited in size.
You can change it /etc/mysql/my.cnf
change the tmpdir variable to another dir:
and restart MySQL:
In many system /tmp is now mounted as tmpfs in ram memory,
and is limited in size.
You can change it /etc/mysql/my.cnf
change the tmpdir variable to another dir:
Code: Select all
tmpdir=/var/tmp
Code: Select all
/etc/init.d/mysql restart
- Sun Sep 02, 2018 7:31 pm
- Forum: Shell
- Topic: Bash last char of a string
- Replies: 2
- Views: 34334
Re: Bash last char of a string
Found a resolution:
This gives the last character:
This gives the last character:
Code: Select all
echo "${FILENAME:$((${#str}-1)):1}"
- Sun Sep 02, 2018 7:11 pm
- Forum: Shell
- Topic: Bash last char of a string
- Replies: 2
- Views: 34334
Bash last char of a string
Hi,
does anyone know how to get the last characters of a string?
in bash.
Thanks
does anyone know how to get the last characters of a string?
in bash.
Thanks
- Tue Aug 28, 2018 4:03 pm
- Forum: MySQL
- Topic: SOLVED: mysql table is marked as crashed and should be repaired
- Replies: 4
- Views: 37557
Re: mysql table is marked as crashed and should be repaired
The simple answer :
if you want more information:
https://dev.mysql.com/doc/refman/8.0/en ... table.html
or
http://dev.mysql.com/doc/refman/5.0/en/ ... epair.html
Code: Select all
REPAIR TABLE tablename
https://dev.mysql.com/doc/refman/8.0/en ... table.html
or
http://dev.mysql.com/doc/refman/5.0/en/ ... epair.html
- Tue Aug 14, 2018 8:23 pm
- Forum: Postfix
- Topic: postfix forward mail to multiple recipients
- Replies: 2
- Views: 45649
Re: postfix forward mail to multiple recipients
Yes it possible.
Separate the emails with comas.
Edit the file /etc/postfix/vmail_aliases
Separate the emails with comas.
Edit the file /etc/postfix/vmail_aliases
Code: Select all
group@domain.com bob@domain.com,alice@domain.com