Search found 183 matches

by chris
Mon Jun 18, 2012 11:25 am
Forum: HTML
Topic: max width of a table
Replies: 1
Views: 18377

Re: max width of a table

you can use max-width in css. for example you can use the following class: .bigtable{max-width:1024px;valign:top;margin-left: auto;margin-right: auto} max-width:1024px : The maximum size of your table will be 1024 pixels. valign:top : position of the table margin-left: auto;margin-right: auto : it c...
by chris
Sun Apr 15, 2012 10:01 pm
Forum: Apache
Topic: kubuntu stop apache from starting automatically
Replies: 1
Views: 15598

Re: kubuntu stop apache from starting automatically

You can use update-rc.d

Code: Select all

update-rc.d apache2 disable
The remove will completely remove the startup files,
you don't want that.

Code: Select all

update-rc.d -f apache2 remove
Hope this is what you are looking for.
by chris
Mon Apr 09, 2012 11:03 am
Forum: Apache
Topic: Solved: ssl not working on apache
Replies: 2
Views: 16432

Re: ssl not working on apache

Usually it means there are still some settings wrong with your apache configuration. Make sure all the port is set : Listen 10443 But also NameVirtualHost *:10443 and <VirtualHost *:10443> you can find the settings in /etc/apache2/httpd.conf or for virtual hosts /etc/apache2/vhosts.d/0x_yoursite.con...
by chris
Tue Mar 20, 2012 7:29 pm
Forum: Servers
Topic: Solved: How do I let a service start at boot on CentOS
Replies: 2
Views: 17080

Re: How do I let a service start at boot on CentOS

You can do this with the builtin chkconfig utility: sudo /sbin/chkconfig --list This command show you all the services and their status on each runlevel. If you don't see your service in it (mysqld for example?), you can add it. sudo /sbin/chkconfig --add mysqld You also need to set it to ON, in the...
by chris
Thu Mar 15, 2012 6:05 pm
Forum: HTML
Topic: back button
Replies: 1
Views: 18517

Re: back button

Just create a button with a little javascript.

Code: Select all

<form>
<INPUT type="button" value="Click here to go back" onClick="history.back()">
</form>
That should work in any browser.
by chris
Thu Feb 02, 2012 2:17 pm
Forum: General
Topic: Solved: How to check urls in linux
Replies: 4
Views: 22631

Re: How to check urls in linux

Jus use grep to get the 404 error out: less links.txt | grep -B 4 '404 Not Found' -B 4 tells grep to also return the 4 lines before each match. You don't want linkchecker to test the amazon URLs, you can exclude them: linkchecker --ignore-url="amazon" http://www.sitetotest.com > links.txt
by chris
Wed Feb 01, 2012 9:18 am
Forum: General
Topic: Solved: How to check urls in linux
Replies: 4
Views: 22631

Re: How to check urls in linux

You can use wget. It is not the best tool but it is probably already installed on your system. wget -r -nd --spider -o links.txt -np -p http://www.sitetocheck.com It shows the results in links.txt . just search for the 404 errors. A better tool is linkchecker ( http://linkchecker.sourceforge.net ) Y...
by chris
Sun Aug 07, 2011 9:33 pm
Forum: Apache
Topic: Apache redirect domain to another domain
Replies: 1
Views: 16113

Re: Apache redirect domain to another domain

I think what you are looking for is ServerAlias redirect . In you virtualhost config files you can put the following: <VirtualHost *:80> ServerAlias yoursite.net redirect permanent / http://yoursite.com/ </VirtualHost> It will respond with a permanent redirect status (301), and redirect all request ...
by chris
Sun Jul 31, 2011 3:00 pm
Forum: General
Topic: phpBB error: Could not get style data
Replies: 1
Views: 21938

Re: phpBB error: Could not get style data

I had the same problem once.
Delete the contents of the folder cache/; except index.html and .htaccess.

Make also sure the folder is writable by apache (or whatever user you webserver has),
Same for the folder store/.
by chris
Tue Apr 19, 2011 7:31 pm
Forum: SQL
Topic: Solved: How to execute a SQL query from shell
Replies: 1
Views: 16954

Re: How to execute a SQL query from shell

The easiest way I know is with the SQL-command. mysql -u user -p -e 'SELECT data FROM table;' database If you want juts the data: mysql -u user -p'password' -sNe 'SELECT data FROM table;' database -s : separates the values with only tabs N : skips the column names -p the password (without spaces, no...