Attempt to install and start Apache, PHP, MySQL descending into chaos
andi.darmawan at gmail.com
Tue Oct 25 15:51:10 UTC 2005
On Wed, 26 Oct 2005 00:03:31 +0900
Dave M G <martin at autotelic.com> wrote:
> Ubuntu Users,
> I have been making web sites with MySQL and PHP for years,
> but this is a first attempt to have MySQL, PHP, and Apache running on
> my local machine for testing purposes. And before I say anything
> else, I am a newbie when it comes to Ubuntu/Linux.
> Of course, I searched the web for instructions on how to
> install and start these applications. But with each step, I'm less
> sure I'm doing the right thing.
> I think what I have successfully done is install Apache 2,
> PHP 4.4, MySQL 4.1, and phpMyAdmin 6.5 by using apt-get. I opted for
> these versions because they are the versions in use on my web site
> host server.
> I *think* I successfully set up a root password for MySQL
> with the following command:
> dave at ubuntu1:~$ mysqladmin -u root password "password"
> (Of course, I didn't actually use "password" as my password)
> So I think I have everything installed, and all I need to do
> is start the services. I tried the following:
> dave at ubuntu1:~$ sudo chmod +x /etc/init.d/apache2
actually you don't have to chmod +x it
> dave at ubuntu1:~$ /etc/init.d/apache2 start
> * Starting web server (Apache2)... (13)Permission denied: make_sock:
> could not bind to address [::]:80
> no listening sockets available, shutting down
> Unable to open logs
try run it like this
sudo /etc/init.d/apache2 start
> That didn't seem to work. What am I doing wrong?
> And, unless I'm mistaken, this will only start Apache for the
> current session. I'd like to have Apache and MySQL running all the
> Surely it's just a simple command line to do that?
> Dave M G
Andi "Belutz" Darmawan
More information about the ubuntu-users