Toon posts:

Apache/PHP wil niet installeren

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik probeer al 2 dagen MySQL+apache+PHP te installeren, maar het lukt niet :(

Ik heb het volgende gedaan:

Eerst MySQL geinstalleerd, ging prima, draait prima...
Toen apache en php:
Bestanden gedownload
code:
1
2
3
4
5
6
7
8
9
10
11
12
cd apache
./configure
cd php
./configure --with-mysql --with-apache=/apache --enable-var-track
make
make install
cd apache
./configure --activate-module=src/modules/php4/libphp4.a
make
make install
cd php
cp php.ini-dist /usr/local/lib/php.ini

Toen httpd.conf geedit en bij addtype toegevoegd (onder AddType application/x-tar .tgz):
AddType application/x-httpd-php .php

Toen apache opgestart, en ff een php paginaatje gemaakt, maar hij wil de file downloaden, hij parsed 'm dus niet...

Ik heb het al iets van 3 keer geprobeerd, wat doe ik fout??? :?

edit:
Hm, misschien is dit toch niet het juiste forum...

  • LollieStick
  • Registratie: Juni 2001
  • Laatst online: 20-05 23:59
dit hoort hier wel hoor :)

  • aOk
  • Registratie: September 2000
  • Niet online

aOk

oops linux.

  • RvdH
  • Registratie: Juni 1999
  • Laatst online: 28-07 15:42

RvdH

Uitvinder van RickRAID

Heeft je apache ook daadwerkelijk php support?
Staat het bij httpd -l?

(Edit: ik zei AddType doen zonder je post goed te hebben gelezen, excusez)

  • Jordi
  • Registratie: Januari 2000
  • Niet online

Jordi

#1#1

Dat staat idd in de manual. Maar dat staat ook in zijn post. Wie moet er hier nu lezen :? ;)

Het zal wel niet, maar het zou maar wel.


Verwijderd

Topicstarter
Niemand???

Ow, en httpd -l doet het ook niet, command not found... :?

  • jep
  • Registratie: November 2000
  • Laatst online: 15-08 16:52

jep

/usr/local/apache/bin/httpd -l dan :? :).

  • 2P
  • Registratie: November 2001
  • Laatst online: 21-06 01:34

2P

:wq

Op donderdag 06 juni 2002 17:44 schreef DarkPipo het volgende:
Niemand???

Ow, en httpd -l doet het ook niet, command not found... :?
Komt omdat httpd niet in het path staat.
De default prefix was geloof ik /usr/local/apache dus dan moet je het volgende typen: /usr/local/apache/bin/httpd -l.

Verder zijn die commands die je geeft wat vreemd. Ik zal hier onder laten zien hoe ik het heb gedaan, misschien dat je er wat aan hebt (versie nummers aanpassen natuurlijk ;), commands met $ als gebruiker en # als root)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
untar en gunzip alles
$ tar zxfv apache_1.3.23.tar.gz 
$ tar zxfv php-4.1.1.tar.gz

Apache pre-configure
$ cd apache_1.3.23/
$ ./configure --prefix=/usr/local/apache

PHP configuren en installeren
$ cd ../php-4.1.1/
$ ./configure --with-apache=../apache_1.3.23 --with-mysql=/usr 
$ make
# make install

Apache configureren, compileren, en installeren
$ cd ../apache_1.3.23/
$ ./configure --prefix=/usr/local/apache --activate-module=src/modules/php4/libphp4.a --enable-module=so
$ make
# make install

Apache is dan geinstalleerd in /usr/local/.
Je moet dan alleen nog even php-4.1.1/php.ini-dist kopieeren naar /usr/local/lib/php.ini en eventueel editen.

Daarna /usr/local/apache/conf/httpd.conf editen.

En dan kan je Apache starten met /usr/local/apache/bin/apachectl start.

Success!

Verwijderd

Topicstarter
Ik heb het nog niet opnieuw geprobeerd, maar ik had apache eerst op een andere manier geinstalleerd, met "LoadModule" in de httpd.conf. Dat werkte helemaal niet (en ik had Apache niet met DSO gecompileerd ofzo), dus heb ik apache gewoon weggeflikkerd met 'rm -R -f /usr/local/apache'. Was dat wel de goede manier, of zijn zitten er nog overblijfselen van m'n andere apache installatie op m'n systeem...?

  • jep
  • Registratie: November 2000
  • Laatst online: 15-08 16:52

jep

DSO is ook veel netter :).
Pagina: 1