Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-2008, 06:40 AM
Eric
 
Posts: n/a
apache/php index.php donwloads instead of executing

system: 2008.0 - 64 bit
I uninstalled apache and reinstalled it and in the new httpd.conf
all i changed was the DocumentRoot to point to the phpsysinfo dir
which is in /var/www/html/phpsysinfo
Â*In firefox i entered: http://192.168.1.7/index.php
and i get a dialog that comes up saying

Â* You have chosen to open
Â* Â* Â*index.php
Â* which is a: PHP script
Â* from http://192.168.1.7
What should firefox do with this file?
Â* * Open with KWord
Â* * Save to Disk

How do i make apache execute this file. I am only using
apache for this locally, not for the internet (my port 80 is blocked by
comcrap) but i really want to try out phpsysinfo

One problem i see is that mod_php isnt loaded
Â*even tho /etc/http/modules.d/70_mod_php.conf is
being included in httpd.conf

I also uninstalled/reinstalled php5 but i dont see mod_php5
listed when i restart apache

How do i get index.php to be executed and not downloaded?

Any ideas?
Thanks
Eric

Reply With Quote
  #2 (permalink)  
Old 06-25-2008, 05:18 PM
Aragorn
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Wednesday 25 June 2008 08:40, someone who identifies as *Eric* wrote
in /alt.os.linux.mandriva:/

> system: 2008.0 - 64 bit
> I uninstalled apache and reinstalled it and in the new httpd.conf
> all i changed was the DocumentRoot to point to the phpsysinfo dir
> which is in /var/www/html/phpsysinfo
> In firefox i entered: http://192.168.1.7/index.php
> and i get a dialog that comes up saying
>
> You have chosen to open
> index.php
> which is a: PHP script
> from http://192.168.1.7
> What should firefox do with this file?
> * Open with KWord
> * Save to Disk
>
> How do i make apache execute this file. I am only using
> apache for this locally, not for the internet (my port 80 is blocked by
> comcrap) but i really want to try out phpsysinfo
>
> One problem i see is that mod_php isnt loaded
> even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>
> I also uninstalled/reinstalled php5 but i dont see mod_php5
> listed when i restart apache
>
> How do i get index.php to be executed and not downloaded?
>
> Any ideas?


I believe it's a thinko on your part. The problem probably does not lie
with Apache but with your Firefox settings. You may have your Firefox set
up not to allow the execution of scripts. Check your security settings to
make sure.

--
*Aragorn*
(registered GNU/Linux user #223157)
Reply With Quote
  #3 (permalink)  
Old 06-25-2008, 05:26 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #4 (permalink)  
Old 06-25-2008, 05:26 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #5 (permalink)  
Old 06-25-2008, 05:27 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #6 (permalink)  
Old 06-25-2008, 05:27 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #7 (permalink)  
Old 06-25-2008, 05:28 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #8 (permalink)  
Old 06-25-2008, 05:28 PM
Wes Newell
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:

> How do i make apache execute this file. I am only using apache for this
> locally, not for the internet (my port 80 is blocked by comcrap) but i
> really want to try out phpsysinfo
>

If port 80 is blocked, use another port. Best to use a router to redirect
it back to port 80.

> One problem i see is that mod_php isnt loaded
> Â*even tho /etc/http/modules.d/70_mod_php.conf is
> being included in httpd.conf
>

Well, if you didn't install apache-mod_php, it's not going to work. It
should install all needed libs when you select it.

> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
> i restart apache
>
> How do i get index.php to be executed and not downloaded?
>

Install apache-mod_php rpm.





--
Want the ultimate in free OTA SD/HDTV Recorder? http://mythtv.org
My Tivo Experience http://wesnewell.no-ip.com/tivo.htm
Tivo HD/S3 compared http://wesnewell.no-ip.com/mythtivo.htm
AMD cpu help http://wesnewell.no-ip.com/cpu.php
Reply With Quote
  #9 (permalink)  
Old 06-25-2008, 05:30 PM
David W. Hodgins
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

On Wed, 25 Jun 2008 02:40:39 -0400, Eric <Scorpus@gordinator.org> wrote:

> system: 2008.0 - 64 bit
> I uninstalled apache and reinstalled it and in the new httpd.conf
> all i changed was the DocumentRoot to point to the phpsysinfo dir
> which is in /var/www/html/phpsysinfo
> *In firefox i entered: http://192.168.1.7/index.php
> and i get a dialog that comes up saying


In /etc/httpd/conf/webapps.d/phpsysinfo.conf, unless you've changed it,
it's set to
Deny from all
Allow from 127.0.0.1


Try http://127.0.0.1/phpinfo.php instead of using the nic's ip address.
Also note that unlike older versions, you have to specify the directory
within which the index.php exists.

Regards, Dave Hodgins

--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Reply With Quote
  #10 (permalink)  
Old 06-27-2008, 01:27 AM
Eric
 
Posts: n/a
Re: apache/php index.php donwloads instead of executing

Wes Newell wrote:

> On Tue, 24 Jun 2008 23:40:39 -0700, Eric wrote:
>
>> How do i make apache execute this file. I am only using apache for this
>> locally, not for the internet (my port 80 is blocked by comcrap) but i
>> really want to try out phpsysinfo
>>

> If port 80 is blocked, use another port. Best to use a router to redirect
> it back to port 80.


port 80 isnt the problem, port 80 is blocked by comcast, which is off the
local network. The router doesnt route accesses from a local machine to
itself.
>
>> One problem i see is that mod_php isnt loaded
>> even tho /etc/http/modules.d/70_mod_php.conf is
>> being included in httpd.conf
>>

> Well, if you didn't install apache-mod_php, it's not going to work. It
> should install all needed libs when you select it.


70_mod_php.conf is beling included in httpd.conf but it acts like HAVE_PHP5
isnt being defined. In any case commenting that out causes the mod_php to
load but it doesnt improve the situation. php files still try to download and
dont execute.
>
>> I also uninstalled/reinstalled php5 but i dont see mod_php5 listed when
>> i restart apache
>>
>> How do i get index.php to be executed and not downloaded?
>>

> Install apache-mod_php rpm.
>
>
>
>
>


Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Mandriva


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:04 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

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 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109