[MySQL+PHP] Server probleempje

Pagina: 1
Acties:

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
Ik heb zojuist mijn server opnieuw geinstalleerd, alleen zit ik met het volgende probleem(pje).
Iedere keer als ik nu een PHP pagina wil openen op mijn server, dan zegt hij dat de pagina niet gevonden kan worden.
HTML pagina's gaat allemaal goed, alleen de php pagina's dus niet.
Als ik bijvoorbeeld op mijn index een link maak naar mijn forum http://djmagich/forum/index.php zegt hij dat hij de pagina niet kan vinden.
Als ik intoets djmagich/forum krijg ik netjes de dir.listing te zien...
Iemand enig idee waar dit aan kan liggen?

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • Tux
  • Registratie: Augustus 2001
  • Laatst online: 21-08 06:33

Tux

Staan de verwijzingen naar PHP in je httpd.conf wel goed?

En wat staat er in je Apache logs over de opgevraagde pagina's.

Verder geef je weinig informatie. Welke versie van Apache en PHP? Welk OS? Stukken log?
Verder heb ik ook niet het idee dat je eigen onderzoek hebt gedaan alvorens hier een topic te openen.

The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.


  • Erkens
  • Registratie: December 2001
  • Niet online

Erkens

Fotograaf

"pagina niet gevonden" als in standaar Internet Explorer foutmelding? Geef eens de echte HTTP error code, geen idee of IE die weer kan geven.
Want een 404 is natuurlijk iets anders dan 403 of zelfs 500 ;)

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
Als ik ga via http://djmagich/forum/index.php krijg ik gewoon de 404 van IE,
ga ik via http://127.0.0.1/forum/index.php krijg ik

Not Found
The requested URL /php/php.exe/(waar haalt ie dit weg!?)Forum/index.php was not found on this server.


--------------------------------------------------------------------------------

Apache/2.0.49 (Win32) Server at 127.0.0.1 Port 80


PHP Version: 4
MySQL Server 2.0
OS: XP
httpd.conf heb ik ingesteld naar de juiste dingen

Stukje error log:

[Thu Aug 19 23:44:41 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/menu1.htm
[Thu Aug 19 23:45:01 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://127.0.0.1/menu1.htm
[Thu Aug 19 23:46:40 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://127.0.0.1/menu1.htm
[Thu Aug 19 23:46:42 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/version
[Thu Aug 19 23:46:46 2004] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php
[Thu Aug 19 23:47:34 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/menu1.htm
[Thu Aug 19 23:47:41 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/menu1.htm
[Thu Aug 19 23:47:50 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/forum/
[Thu Aug 19 23:51:57 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/forum/
[Thu Aug 19 23:52:00 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/forum/
[Thu Aug 19 23:52:39 2004] [error] [client 192.168.0.2] File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/php, referer: http://djmagich/menu1.htm

[ Voor 11% gewijzigd door HarryL op 19-08-2004 23:58 ]

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • G33rt
  • Registratie: Februari 2002
  • Laatst online: 22-06-2022
Wat zijn volgens jou die juiste instellingen van httpd.conf? We kunnen je instellingen niet raden hoor ;)

Bekijk bijvoorbeeld eens [rml][ Howto] Apache, PHP, MySQL, .htaccess & Virtual Hosts[/rml], misschien dat je er nog iets aan hebt :)

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
Ik heb de instellingen uit die How To door genomen, en het werkt nog steeds niet helaas....
Hij pakt op de 1 of andere manier gewoon mijn PHP documenten niet...

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • Tux
  • Registratie: Augustus 2001
  • Laatst online: 21-08 06:33

Tux

ScriptAlias /php/ "c:/php/" toevoegen aan je httpd.conf

The NS has launched a new space transportation service, using German trains which were upgraded into spaceships.


  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
Helaas werkt dit niet...
Tux schreef op 20 augustus 2004 @ 00:13:
ScriptAlias /php/ "c:/php/" toevoegen aan je httpd.conf

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • G33rt
  • Registratie: Februari 2002
  • Laatst online: 22-06-2022
Nogmaals: wat heb je nu precies in je httpd.conf gezet? Heb je dat precies zo gedaan als in de PHP Manual bij Installation - Apache staat?

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
yep dat heb ik gedaan, ik zal nog maals proberen alles opnieuw te installeren met andere versies (reeds 3 keer gedaan) kijken of het dan wel werkt...

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • leon1e
  • Registratie: December 2000
  • Laatst online: 19:09
DjMaGiCh schreef op 20 augustus 2004 @ 00:42:
yep dat heb ik gedaan, ik zal nog maals proberen alles opnieuw te installeren met andere versies (reeds 3 keer gedaan) kijken of het dan wel werkt...
Voordat we nog verder van het onderwerp afstappen, post je httpd.conf eens hier. Zet er dan ook bij waar je php.exe staat.

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
De locatie van php.exe is: c:/php/php.exe

Mijn httpd.conf

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
ServerRoot "C:/Program Files/Apache Group/Apache2"
#ScoreBoardFile logs/apache_runtime_status
PidFile logs/httpd.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Listen 80

LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so
#LoadModule auth_anon_module modules/mod_auth_anon.so
#LoadModule auth_dbm_module modules/mod_auth_dbm.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

ServerName djmagich:80
UseCanonicalName Off
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "C:/Program Files/Apache Group/Apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

UserDir "My Documents/My Website"
DirectoryIndex index.html index.html.var index.php
AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

ReadmeName README.html
HeaderName HEADER.html

ScriptAlias /php4/ "C:/php/"
ScriptAlias /php/ "c:/php/" 
AddType Application/x-httpd-php4 .php
Action application/x-httpd-php4 "/php/php.exe"

[ Voor 91% gewijzigd door leon1e op 20-08-2004 09:48 . Reden: Code added + config iets korter gemaakt :) ]

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • xander88
  • Registratie: September 2003
  • Laatst online: 05-10-2025
Dat scheelt weer. Gelukkig kwam ik die fout snel tegen..NOT
De laatste regel:
Action application/x-httpd-php4 "/php/php.exe"

Moet dat niet zijn:
Action application/x-httpd-php4 "c:/php/php.exe"

[ Voor 19% gewijzigd door xander88 op 20-08-2004 09:55 ]


  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
Het werkt nu half, Krijg nu nog wat errors als:

Notice: Undefined index: mws_lang in C:\Program Files\Apache Group\Apache2\htdocs\miniwebshop\cfunc.php on line 257

Notice: Undefined index: mws_lang in C:\Program Files\Apache Group\Apache2\htdocs\miniwebshop\cfunc.php on line 257

Maar dit zal ongetwijveld ook op te lossen zijn

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich


  • Erkens
  • Registratie: December 2001
  • Niet online

Erkens

Fotograaf

DjMaGiCh schreef op 20 augustus 2004 @ 10:13:
Het werkt nu half, Krijg nu nog wat errors als:

Notice: Undefined index: mws_lang in C:\Program Files\Apache Group\Apache2\htdocs\miniwebshop\cfunc.php on line 257

Notice: Undefined index: mws_lang in C:\Program Files\Apache Group\Apache2\htdocs\miniwebshop\cfunc.php on line 257

Maar dit zal ongetwijveld ook op te lossen zijn
dat zijn gewoon fouten in je php script ;)

  • HarryL
  • Registratie: Januari 2003
  • Laatst online: 13-08 10:19

HarryL

127.0.0.1

Topicstarter
I know ;)
Die moet ik nog ff uitpluizen (ik als beginnend phper) :P
Erkens schreef op 20 augustus 2004 @ 10:15:
[...]

dat zijn gewoon fouten in je php script ;)

I have gone to find myself, if I get back before I return, Please keep me here! PSNID: djmagich

Pagina: 1