Toon posts:

Apache instaleren

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een apache webserver geinstalleerd op me eigen localhost. En daarbij heb ik ook PHP en MySql geinstalleerd. Ik heb ook de httd.conf ge edit.
Dus start ik mijn apache op samen met MySql.
Open een browser en ga naar: [url="http://localhost"]http://localhost[/url]
hij pakt meteen de index.html pagina. Nu wil ik een PHP pagina doen dus doe ik phpinfo.php

Hij begint te laden het gaat ZEEEEER sloom dus ik laat hem een poos laden maar er gebeurt niks. Conclusie hij kan wel HTMl pagina's pakken maar niet PHP pagina's.

Kan iemand mij helpen?

  • The Source
  • Registratie: April 2000
  • Laatst online: 08-05 13:15
Het lijkt erop dat PHP niet goed werkt. Al in de PHP.ini gekeken?

Anyway... ik denk dat het voor eigen locaal gebruik onder windows is. Dan kun je gebruik maken van PHPdev. Dat is een bundle (Apache/PHP/MySQL/PHPmyAdmin) dat ik ooit heb gemaakt. Het werkt ook onder win2k. Je kunt het leechen op http://www.klopt.nl/phpdev.dev (renamen naar .exe (executable. zip))


Als het voor hosten onder linux is dan raad ik je aan eens te kijken naar [url="http://www.apachetoolbox.com."]www.apachetoolbox.com.[/url] Met dat script kun je onder linux apache met alle gewenste toebehorenden compileren.

Suc6

Verwijderd

Topicstarter
Hij is perfect alleen heb ik nog een hele kleine vraag.
Wat is nu mijn mysql username & pass waar kan ik dat zien?

  • a casema user
  • Registratie: Januari 2000
  • Laatst online: 04-05 21:28
in MySQL-for-dummies....
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
   a) For the start, just define a couple of users for the MySQL system:
      i) an administrator, such as 'mysql', with its own password, that
         can do everything with the system:

         mysql> insert into user values('localhost','mysql',password('xyzzy'),
                'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

         * For some reason, on my Linux system with a German keyboard, I have *
         * to use the acute accent instead of the apostrophe, otherwise I get *
         * parse errors.                                                      *

         This defines the user name 'mysql' with password 'xyzzy' that can
         do everything. To look at what you just did, type in

         mysql> select * from user;

         mysql types out a table with all the known users and their privileges.

       ii) a privileged user for playing around:

         mysql> insert into user values('localhost','john',password('blah0x1'),
                'Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');

       iii) create your own database for a todo list, phone numbers, whatever:

         mysql> create database johns_DB;
         mysql> insert into db values('localhost','johns_DB','john','Y','Y','Y','Y','Y','Y');

         The first line creates the databse "johns_DB", but that doesn't
         make it visible to mysql.  The second line does that.

        iv) When you are done installing users and databases, quit mysql and
            issue the command

                foo>bin/mysqladmin reload

pfff , nu alweer moe :P

Taaaa taa taa taaaa taa taa ta taaataaaaa.