Combination Apache + Php Problems
Delfos, Jacob
Jacob.Delfos at MAUNSELL.COM
Sun Nov 19 15:32:22 PST 2006
Hi Karin,
If you have used MS4W out of the box, then all the DLL's should be there. However, I expect there is something wrong with your alias in httpd.conf, because it also can't find a normal HTML file, so there's no reason to think there's something wrong with PHP. Can you tell me what the syntax of your alias is?
Regards,
Jacob
» -----Original Message-----
» From: Karin Kampitsch [mailto:Karin_Kampitsch at gmx.at]
» Sent: 17 November 2006 16:13
» To: Delfos, Jacob
» Subject: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems
»
» Hi Jacob,
»
» I tried to open a HTML file, but there is the same problem.
» The browser says that he cannot find this page, and below
» stands that he cannot find the HTTP 404 File. So it's the
» same error message, when i try to open a PHP file.
»
» I did not changed anything so far.
»
» Yes, I use MS4W out of the box. The Mapserver UMN is working
» and also WFS and WMS is fine. Now i want to create a User
» Interface for my map, and therefore I need PHP.
»
» So, do you maybe know, which DLL could be missing, or do you
» think that I should move the php Directory somewhere else
» (for example: C:)? At the moment everything (Apache and PHP
» directories) is included in the MS4W Directory.
»
» C:\ms4w\Apache\php Here is included: the directories
» dev, ext, extras, pear, and and some other files (for
» example: go-pear.bat)
»
»
» C:\ms4w\Apache\cgi-bin Here is included: fdftk.dll,
» php-cgi.exe, php-win.exe, php5apache.dll, php5apache2.dll,
» php5ts.dll, php.ini and so on.
»
» I compared my php files with the file structure in
» http://de.php.net/manual/de/install.windows.manual.php
»
» I found out that I do not have the php5activescript.dll? I is
» this maybe the error?
»
» Or could that be the error?
» In the Installing instruction they say that the php directory
» should be on the C: drive, but my php directory is in the
» MS4W directory. Then I would have to make some changes in the
» httpd.conf - file.
»
» Or is there a Problem with Apache Version 2.0.58 and the Php
» version 5.1.4?
»
» Thank you for your efforts and for helping me!
»
» regards,
»
» karin
»
» -------- Original-Nachricht --------
» Datum: Fri, 17 Nov 2006 07:10:34 +0800
» Von: "Delfos, Jacob" <Jacob.Delfos at MAUNSELL.COM>
» An: MAPSERVER-USERS at LISTS.UMN.EDU
» Betreff: Re: [UMN_MAPSERVER-USERS] Combination Apache + Php Problems
»
» > Hi Karin,
» >
» > Don't double up on the definitions in httpd.conf. If it's already in
» > there, it ought to work.
» > Are you sure the root directory of your webserver is where
» you think it
» > is? Can you open up any other file in that same directory?
» A normal HTML
» > file? If so, there's something wrong with PHP. If not, your
» ServerRoot in
» > httpd.conf isn't set right.
» > I have also heard of people getting a "cannot be found"
» error if php isn't
» > running properly because of a missing DLL. But I suppose
» this is not the
» > case now. Are you using MS4W out of the box? Did you change
» anything?
» >
» > Regards,
» >
» > Jacob
» >
» >
» >
» >
» > » -----Original Message-----
» > » From: Karin Kampitsch [mailto:Karin_Kampitsch at gmx.at]
» > » Sent: 16 November 2006 19:44
» > » To: Delfos, Jacob
» > » Subject: Re: [UMN_MAPSERVER-USERS] Combination Apache +
» Php Problems
» > »
» > » Hi Jacob,
» > »
» > » Thank you for your information!
» > » There already exists such expressions in the httpd.conf file:
» > »
» > » ScriptAlias /cgi-bin/ "/ms4w/Apache/cgi-bin/"
» > » AddType application/x-compress .Z
» > » AddType application/x-gzip .gz .tgz
» > » AddType application/x-httpd-php .php5 .php4 .php3 .phtml .php
» > » Action application/x-httpd-php /cgi-bin/php-cgi.exe
» > »
» > »
» > » I tried it anyway and added these expressions:
» > »
» > » ScriptAlias /php/ "/ms4w/Apache/php/"
» > » AddType application/x-httpd-php .php
» > » AddType application/x-httpd-php .phtml
» > » Action application/x-httpd-php "/cgi-bin/php-cgi.exe" (my
» > » php-cgi.exe is in the cgi-bin directory)
» > »
» > » But it still does not work.
» > » My error message was, when I tried to open the "karin.php"
» > » file in the Url with http://localhost/karin.php, that "he
» > » cannot find the web page".
» > » The file "karin.php" is situated in the root directory of Apache.
» > »
» > » So i do not know whats wrong!
» > » Maybe you have an idea?
» > »
» > » Best regards,
» > » karin
» > »
» > » -------- Original-Nachricht --------
» > » Datum: Thu, 16 Nov 2006 07:59:17 +0800
» > » Von: "Delfos, Jacob" <Jacob.Delfos at MAUNSELL.COM>
» > » An: MAPSERVER-USERS at LISTS.UMN.EDU
» > » Betreff: Re: [UMN_MAPSERVER-USERS] Combination Apache +
» Php Problems
» > »
» > » > Hi Karin,
» > » >
» > » > Can you please elaborate on the "did not work" bit?
» > » > What errors are you getting?
» > » >
» > » > The core bit in the apache configuration (httpd.conf) is this:
» > » >
» > » > ScriptAlias /php/ "/php/"
» > » > AddType application/x-httpd-php .php
» > » > AddType application/x-httpd-php .phtml
» > » > Action application/x-httpd-php "/php/php-cgi.exe"
» > » >
» > » > This makes Apache execute PHP files. You may have to adjust
» > » it to suit
» > » > your setup. And make sure to restart Apache after changes
» > » to httpd.conf.
» > » >
» > » > Regards,
» > » >
» > » > Jacob
» > » >
» > » >
» > » >
» > » >
» > » >
» > » > » -----Original Message-----
» > » > » From: UMN MapServer Users List
» > » > » [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Karin
» > » Kampitsch
» > » > » Sent: 15 November 2006 21:54
» > » > » To: MAPSERVER-USERS at LISTS.UMN.EDU
» > » > » Subject: [UMN_MAPSERVER-USERS] Combination Apache +
» Php Problems
» > » > »
» > » > » Dear Mailing List,
» > » > »
» > » > » I downloaded the mapserver package 4.8.4. In this package
» > » > » also the Apache Version 2.0.58 and the Php version 5.1.4
» > » is included.
» > » > »
» > » > » I tried to open a php file, but it did not work! And so I
» > » > » studied all the installation and configuration instructions
» > » > » and this made me really confusing!
» > » > »
» > » > » So do you know, is there anything I must do with the
» > » > » different files in the Apache directory??? Or is there a
» > » > » problem with the versions of Apache and PHP!
» > » > »
» > » > » It would be very nice, if you could help me!
» > » > »
» > » > » Yours desperate
» > » > »
» > » > » karin
» > » > » --
» > » > » "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
» > » > » www.deutschlandsegelt.de
» > » > » Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen
» > » > » America's Cup-Yacht!
» > » > »
» > »
» > » --
» > » "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
» > » www.deutschlandsegelt.de
» > » Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen
» > » America's Cup-Yacht!
» > »
»
» --
» Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
» Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
»
More information about the MapServer-users
mailing list