![]() |
|
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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 |
|
|||
|
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) |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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.) |
|
|||
|
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. > > > > > |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|