Search found 212 matches

by chris
Sun Apr 15, 2012 10:01 pm
Forum: Apache
Topic: kubuntu stop apache from starting automatically
Replies: 1
Views: 64171

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: 74489

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 ...
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: 75140

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 ...
by chris
Thu Mar 15, 2012 6:05 pm
Forum: HTML
Topic: back button
Replies: 1
Views: 65062

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: 88883

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: 88883

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 ...
by chris
Sun Aug 07, 2011 9:33 pm
Forum: Apache
Topic: Apache redirect domain to another domain
Replies: 1
Views: 62664

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 ...
by chris
Sun Jul 31, 2011 3:00 pm
Forum: General
Topic: phpBB error: Could not get style data
Replies: 1
Views: 65638

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: 30267

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 ...
by chris
Mon Mar 14, 2011 5:08 pm
Forum: Apache
Topic: Solved:You don't have permission to access / on this server.
Replies: 2
Views: 75567

Re: You don't have permission to access / on this server.

Perhaps i you post your config-files we could help you.

It sounds like file permission problems.
Makes sure the user www-data has read access.