php files are downloaded


 
Thread Tools Search this Thread
Top Forums Web Development php files are downloaded
# 1  
Old 09-12-2010
php files are downloaded

Hello,

I have setup Cherokee web server and php 5.2 in Opensolaris zone. Problem is that all .php files are downloaded from web server and not served when I use IP address instead of DNS name in web brovser.

Example: test.mydomain.com <-- php works
192.168.0.10/index.php <-- file is downloaded.


Any help is welcome Smilie

Kind regards, M
# 2  
Old 09-12-2010
Do you have the handler setup in apache at the global level?

eg:

<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

see PHP: Apache 2.x on Unix systems - Manual for more details.
# 3  
Old 09-12-2010
Quote:
Originally Posted by frank_rizzo
Do you have the handler setup in apache at the global level?
Quote:
Originally Posted by kreno
I have setup Cherokee web server and php 5.2 in Opensolaris zone.
Is the solution/configuration for Apache web server applicable for Cherokee web server, frank_rizzo?
# 4  
Old 09-12-2010
sorry for assuming apache. Yes that will only work for apache. I am not familar with cherokee. Check this link and make sure your setup is simliar.

http://www.cherokee-project.com/doc/cookbook_php.html
This User Gave Thanks to frank_rizzo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Deleting multiple files off an ftp server once they have been downloaded

Hello, I have a server that I have to ftp files off and they all start SGRD and are followed by 6 numbers. SGRD000001 SGRD000002 SGRD000003 The script I have will run every 10 mins to pick up files as new ones will be coming in all the time and what I want to do is delete the files I have... (7 Replies)
Discussion started by: sph90457
7 Replies

2. Shell Programming and Scripting

For loop till the files downloaded

Need assistance in writing a for loop script or any looping method. Below is the code where i can get all the files from the URL . There are about 80 files in the URL .Every day the files get updated . Script that i wanted is the loop must keep on running till it gets 80 files. It matches the count... (5 Replies)
Discussion started by: ajayram_arya
5 Replies

3. Shell Programming and Scripting

BASH scripting - Preventing wget messed downloaded files

hello. How can I detect within script, that the downloaded file had not a correct size. linux:~ # wget --limit-rate=20k --ignore-length -O /Software_Downloaded/MULTIMEDIA_ADDON/skype-4.1.0.20-suse.i586.rpm ... (6 Replies)
Discussion started by: jcdole
6 Replies

4. Shell Programming and Scripting

Help with WGET and renaming downloaded files :(

Hi everybody, I would greatly appreciate some expertise in this matter. I am trying find an efficient way to batch download files from a website and rename each file with the url it originated from (from the CLI). (ie. Instead of xyz.zip, the output file would be http://www.abc.com/xyz.zip) A... (10 Replies)
Discussion started by: o0110o
10 Replies

5. Shell Programming and Scripting

how to limit files downloaded by wget

I am trying to download a page and retrieve only wav and mp3 files via wget. the website is: Alarm Sounds | Free Sound Effects | Alarm Sound Clips | Sound Bites my command is : wget -rl 2 -e robots=off -A wav,mp3 http://soundbible.com/tags-alarm.html When not using the -A wav,mp3... (2 Replies)
Discussion started by: Narnie
2 Replies

6. UNIX for Advanced & Expert Users

question regarding ftp. Files downloaded are of size Zero.

I need to download some files from a remote server using ftp. I have ftp'd into the site. I then do an mget * to retrieve all of the data files. Everything seems to proceed normally and I am given feedback that the files were downloaded. Now if I go into the DOS Shell or Windows explorer, it list... (5 Replies)
Discussion started by: ralphisnow
5 Replies

7. UNIX for Dummies Questions & Answers

HELP! Accidentally downloaded .gz file non-binary

Let me start by saying I am at a VERY beginner level in terms of UNIX/FTP/etc. Someone loaded a file onto a server for me and zipped it using gzip. I accidentally downloaded the file without using "binary". I now have a "filename.txt.gz" sitting on my computer that I need to unzip. Is... (2 Replies)
Discussion started by: UDcc123
2 Replies

8. Solaris

Downloaded application but cannot execute

I am using Solaris 8 - I received a cd with a mapping application on it to load. I loaded the file but I cannot figure out why it will not execute. Can anyone please tell me how to get the application to run? I searched the forum and could not find the answer. Any suggestions/solutions appreciated. (1 Reply)
Discussion started by: gunnyb
1 Replies

9. Shell Programming and Scripting

Just downloaded Python, what now?

Hi i just downloaded Python just to try it out are there any sites or tuts i can get to get me started? thanx (1 Reply)
Discussion started by: SimJim81
1 Replies

10. UNIX for Dummies Questions & Answers

downloaded solaris8

i have downloaded 3 zipped solaris ver 8 07/01 installation cd and i want to ask this question: 1. what will i do to burn it? do i need to extract the file and then burn it? what? Note: Those zipped files have only one file each and it has more than 100mb plus. (6 Replies)
Discussion started by: rodelu
6 Replies
Login or Register to Ask a Question