[Samba] php includes lost

Felipe Augusto van de Wiel felipe at paranacidade.org.br
Thu Aug 23 15:04:11 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Phill Atwood wrote, On 22-08-2007 15:34:
> On Wed, 2007-22-08 at 15:03 -0300, Felipe Augusto van de Wiel wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Phill Atwood wrote, On 22-08-2007 11:56:
>> > We have a windows network and the server is running mysql and php.  If I
>> >   access our web app via firefox from a windows box the app works fine.
>> >   However, if I connect to it thru my laptop which is running Debian
>> > Etch and using samba I can access the web page but it doesn't function
>> > properly because the include statments in the php code aren't
>> > functioning properly.  I have a feeling it is either  a problem with my
>> > samba configuration or perhaps it is because I'm not entering the
>> > correct workgroup in the password dialog.  When I use another windoze
>> > machine it doesn't ask me for a workgroup.  I'm having trouble
>> > discovering what ones are defined if any on our system.
>> >
>> > Any suggestions for this problem are appreciated.
>>
>> 	If you don't access your PHP files using a web browser
>> then you are not accessing the HTTP server that handles the PHP
>> dynamic content and this is the expected behaviour.
>>
>> 	It is not clear to me how you are accessing the pages,
>> but if you use IceWeasel (firefox without brand) in Debian it
>> should work just fine. If you use a file browser in a samba
>> mount point, it shouldn't work.
>
> Yes, I'm using IceWeasel.  My url is
> smb://server/wwwroot/repository/index.php

	If you access your pages using this URL your request
does not pass thru a HTTP server and the PHP is not processed,
you can use IceWeasel to access the Samba Share, but then it
it Samba serving the file and not some process like Apache
that is able to interpret PHP code.


> If I try:
> http://server/wwwroot/repository/index.php
> I get redirected to www.server.com
> Phill

	This is explained by Andrew, check you DNS.


	Kind regards,
- --
Felipe Augusto van de Wiel <felipe at paranacidade.org.br>
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/           Phone: (+55 41 3350 3300)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzaHrCj65ZxU4gPQRCI6PAKCRil+Bq/0/5RUh9UycMBHeKnlsxACfbRKq
0XLO8hTTpwdUO2ZZwoEWi/Q=
=sJrL
-----END PGP SIGNATURE-----


More information about the samba mailing list