Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,eveyone!
I have just installed apache and mysql on ubuntu8.04.But when I start the machine,apache didn't start automatically.
Because when I type " /usr/local/apache2/bin/apachectl restart"
I got the error :
Code:
httpd not running, trying to start
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Does this mean I should run as root?
And the MYSQL problem,I try to start mysql server with
/usr/local/mysql/bin/mysqld_safe -user=mysql&
Unluckily,error comes again!
Code:
$ nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/bin/mysqld_safe: 380: cannot create /usr/local/mysql/var/dear-laptop.err: Permission denied
rm: cannot remove `/usr/local/mysql/var/dear-laptop.pid': Permission denied
eval: 1: cannot create /usr/local/mysql/var/dear-laptop.err: Permission denied
STOPPING server from pid file /usr/local/mysql/var/dear-laptop.pid
tee: /usr/local/mysql/var/dear-laptop.err: Permission denied
081007 07:23:10 mysqld ended
tee: /usr/local/mysql/var/dear-laptop.err: Permission denied
But befor I have running
cd /usr/local/mysql
chown -R root .
chown -R mysql var
chown -R mysql var/.
chgrp -R mysql .
Maybe I can't express the problem clearly with my poor English.
Thanking you in anticipation.
Any particular reason for this? Why the packages from repositories are not suitable? If you install them from repos one command will give you installed, running and configured Apache and MySQL.
Any particular reason for this? Why the packages from repositories are not suitable? If you install them from repos one command will give you installed, running and configured Apache and MySQL.
Sorry,my English is poor.I mean I install them from files with .tar.gz
not from apt-get
Unless you have a particular reason for this installing Apache and MySQL on Ubuntu from source is a huge waste of time when 'sudo apt-get install mysql-server apache2' gives you fully configured, running and functional servers.
But if I use 'sudo apt-get install mysql-server apache2',I can't decide which directory to be installed or configured.
So,can anyone solve above problem?
hmm, then i would go to Linux from scratch or Gentoo instead. as they both use source packages instead of Binary's. Ubuntu build system is poor for Source Packages.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.