xboxscene.org forums

Author Topic: Help Installing Apache, Php4 And Mysql  (Read 17 times)

gothi

  • Archived User
  • Jr. Member
  • *
  • Posts: 84
Help Installing Apache, Php4 And Mysql
« on: May 20, 2005, 01:35:00 PM »

Can anyone suggest any guidence for this?

After creating a loopback install (700MB allocated), logging in as root and enabling apt I've changed the config to the test server and done apt-get update.

I then went ahead with
apt-get apache php4 mysql-server mysql-client php4-mysql

All going well that should install everything I need to turn my xbox into a nice php dev tool however after progressing soundly through the install it errors out complaining that Sub-process /usr/bin/returned an error code(1)

I have a feeling that at some point some dependency has been unfullfilled but I was under the impression that this is what apt-get was supposed to avoid :-|

Any assistence is gratefully received :)

This post has been edited by gothi: May 20 2005, 08:37 PM
Logged

the_devil73

  • Archived User
  • Full Member
  • *
  • Posts: 134
Help Installing Apache, Php4 And Mysql
« Reply #1 on: May 20, 2005, 04:55:00 PM »

Even when you get apache2 with php installed, its HORRIBLE. I hope you dont plan on installing a forum or a cms, it has problems logging in and it wont letu log in as admin and i have never ben able to get passed that.

I adivse u use another distro than xdsl if you want to  turn it into a quote on wuote "dev machine"

Logged

friedgold

  • Archived User
  • Sr. Member
  • *
  • Posts: 266
Help Installing Apache, Php4 And Mysql
« Reply #2 on: May 20, 2005, 08:15:00 PM »

QUOTE(gothi @ May 20 2005, 09:46 PM)
Can anyone suggest any guidence for this?

After creating a loopback install (700MB allocated), logging in as root and enabling apt I've changed the config to the test server and done apt-get update.

I then went ahead with
apt-get apache php4 mysql-server mysql-client php4-mysql

All going well that should install everything I need to turn my xbox into a nice php dev tool however after progressing soundly through the install it errors out complaining that Sub-process /usr/bin/returned an error code(1)

I have a feeling that at some point some dependency has been unfullfilled but I was under the impression that this is what apt-get was supposed to avoid :-|

Any assistence is gratefully received :)
*



I assume you mean you tried

apt-get install apache php4 mysql-server mysql-client php4-mysql

I just tried this myself and ran into problems. It looks like the problem is with setting up exim4-config, which in turn means the other apps cannot be resolved due to dependency problems. The errors I got were

CODE
Setting up exim4-config (4.50-4) ...
find: invalid argument `mail' to `-user'
find: invalid argument `mail' to `-group'
2005-05-21 06:08:55 Exim configuration error in line 79 of /var/lib/exim4/config
.autogenerated.tmp:
  user uucp was not found
2005-05-21 06:08:55 Exim configuration error in line 79 of /var/lib/exim4/config
.autogenerated.tmp:
  user uucp was not found
2005-05-21 06:08:55 Exim configuration error in line 79 of /var/lib/exim4/config
.autogenerated.tmp:
  user uucp was not found
exim: could not open panic log - aborting: see message(s) above
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp
not installing /var/lib/exim4/config.autogenerated.tmp to
/var/lib/exim4/config.autogenerated
dpkg: error processing exim4-config (--configure):
 subprocess post-installation script returned error exit status 1


Seeing as it looked like the necessary mail users weren't in place I ran update-passwd as root and then ran apt-get again.

This allowed exim4 to be setup but it still failed on seting up apache (although annoyingly it doesn't give much error infomation). I tried apache2 instead and that seemed to work fine. i.e.

CODE
apt-get remove apache
apt-get install apache2


Hope this helps.
Logged

gothi

  • Archived User
  • Jr. Member
  • *
  • Posts: 84
Help Installing Apache, Php4 And Mysql
« Reply #3 on: May 21, 2005, 10:44:00 AM »

It did indeed friedgold and I'm very gratefull :)

I had some problems installing apache2 so I decided to install apache, remove it and then install apache2, for some reason this did the trick although I'm not convinced it's a neccessary step :)

Anyone else who wishes to install PHP4 and apache2 should make note that you will also need to install libapache2-mod-php4 and then restart apache2 if it's already running (which it probably is), do this with
apache2 -k restart

You are of course correct, I did mean apt-get install, I was concentrating on making sure that I listed all the apps I was installing that I forgot to pay attention to the rest of the command when writing the post :)

The reason why I feel XDSL is perfect for my 'dev enviroment' is that it's small and I can still use my Xbox for other activities such as playing games etc. I only want to use it for PHP development when my Significant Other decides she must use the PC to talk to her friends, browse eBay, play the Sims 2 etc and this makes it perfect for my personal needs :)

Now all I need to do is setup mySQl and I'm good to go :)

A big thumbs up and my thanks for the work done so far on this extremely usefull distro :)

This post has been edited by gothi: May 21 2005, 05:47 PM
Logged

Keo-Keo

  • Archived User
  • Sr. Member
  • *
  • Posts: 477
Help Installing Apache, Php4 And Mysql
« Reply #4 on: May 21, 2005, 01:24:00 PM »

You can install Webmin to help with alot of stuff.. Worked great for me.
Logged

gothi

  • Archived User
  • Jr. Member
  • *
  • Posts: 84
Help Installing Apache, Php4 And Mysql
« Reply #5 on: May 31, 2005, 06:27:00 PM »

Well I have to say the_devil73 was absolutely correct, after installing Apache2 and all the rest my Xbox suffered a serious loss of performance and even locked up a few times, just using phpMyAdmin was horrible let alone doing any work on the thing :(

So I started again on a fresh install, instead of installing Apache (or indeed Apache2) I opted to install php-cgi and use the inbuilt Monkey ftpd with it.

This works like a charm, a few minutes spent with google to find out what I needed to add to the conf file and I was good to go and the speed of Monkey, php-cgi and mySQL is very decent, good enough for me to work on when I'm ousted from the PC (which is quite a lot at the moment as she's just picked up the Sims 2 University expansion)
So again, thanks for all the assistence guys :)
Logged