Software :: New Apache Install - Php Files Are Downloading Rather Than Displaying?

Oct 17, 2009

New apache install, php files are downloading rather than displaying, does anyone know whats causing this. When I compiled php with apxs it automatically added this line:

Code:

LoadModule php5_module modules/libphp5.so

I restarted apache, and also try adding this line:

Code:

AddType application/x-httpd-php5 .php5 .php4 .php

and then restarting.

View 2 Replies


ADVERTISEMENT

Ubuntu :: PHP Files Downloading And Not Displaying Page

Nov 19, 2010

When I try to load a php file my browser downloads the file instead of displaying the page. Here is my apache conf file.
#
# Based upon the NCSA server configuration files originally by Rob McCool.
# This is the main Apache server configuration file. It contains the configuration directives that give the server its instructions.
# See [URL] for detailed information about the directives.
# Do NOT simply read the instructions in here without understanding what they do. They're here only as hints or reminders. If you are unsure consult the online docs. You have been warned.
# The configuration directives are grouped into three basic sections:
# 1. Directives that control the operation of the Apache server process as a whole (the 'global environment').
# 2. Directives that define the parameters of the 'main' or 'default' server, which responds to requests that aren't handled by a virtual host.
# These directives also provide default values for the settings of all virtual hosts.
# 3. Settings for virtual hosts, which allow Web requests to be sent to different IP addresses or hostnames and have them handled by the same Apache server process.
# Configuration and logfile names: If the filenames you specify for many of the server's control files begin with "/" (or "drive:/" for Win32), the server will use that explicit path. If the filenames do *not* begin with "/", the value of ServerRoot is prepended -- so "/var/log/apache2/foo.log" with ServerRoot set to "" will be interpreted by the
# server as "//var/log/apache2/foo.log".
#

View 7 Replies View Related

Ubuntu Servers :: 9.10 Server Downloading PHP Files Instead Of Displaying Them?

Mar 17, 2010

I have an Ubuntu 9.10 server set up at my house. I have Apache2 and PHP5 installed on it. Every time I go to the server on a web page and try to load the PHP index page it downloads instead of displaying.

I have virtual servers set up and have the files stored at /home/cusinndzl. If anyone needs to take a look I can let them into the webmin panel.

View 4 Replies View Related

Debian :: Apache Downloading PHP Files Instead Of Rendering

Aug 4, 2015

I have some scripts that need to use a newer version of PHP, Im running Debian 6 which has PHP 5.3.3 support, I found I could install php 5.4 using [URL]. This worked, it updated my PHP to a newer version, the only issue is that when the install completed apache now downloads the PHP file instead of rendering it.

Im guessing this has something to do with the Apache configs, but I don't know what to do.

Code:

Select alltom@vps:~$ dpkg --list |grep -E '(apache)|(php5-)'
ii  apache2                                  2.2.16-6+squeeze12           Apache   
HTTP Server metapackage
ii  apache2-doc                              2.2.16-6+squeeze12           Apache                                                                                                                   
[Code] ...

View 1 Replies View Related

Server :: Displaying An Alternate WebPage When Apache Is Down?

Sep 11, 2010

Code:

# service httpd stop
Stopping httpd: [ OK ]
And now we access the web site by typing the URL: http://192.168.56.10/ and the following message, as expected, is displayed:

Code:

This webpage is not available. The webpage at http://192.168.56.10/ might be temporarily down or it may have moved permanently to a new web address. But is there any way to display a different web page or message when we have brought down the Apache Server for maintenance so that a visitor on our web site would not think that we are gone with our bags and baggages...?

View 1 Replies View Related

Server :: PNG Images Not Displaying From Certain Directories In Apache?

Jan 13, 2011

I have a png file which I put into a user's directory: /~user/file.png This displays OK. When placed in the user's images directory: /~user/images/file.png the file does not display. If I put the file in the global images directory: /images/file.png the file displays OK. Finally if I change the format of the file to a jpg and save it in the user's images directory: /~user/images/file.jpg the file displays OK.

When I look at the Apache access_log and error_log files, there is not even an entry if the png image file is accessed from the user's images directory.

View 4 Replies View Related

Software :: Possible To Use Apache Session On Downloading A File?

Mar 18, 2010

i want to let client download file using apache only!it will tell apache generate a session and let client download the file using that session!it that possible? what method or module should i use?

View 1 Replies View Related

Ubuntu Installation :: Network Install From ISO - Cannot Transfer Files With Apache HTTP

Feb 24, 2010

I have tftpd-hpa and dhcp3-server up and running. I just want to install server edition via network, from the host machine (my laptop, running ubuntu 9.10) with an ISO file (ubuntu 8.04 32-bit server edition). I managed to boot the client machine with pxe-netboot technique, but instead downloading all the files from internet, I need to do this process directly from ISO. To transfer ISO from host to client, I also installed Apache. I unpacked ISO file into /var/lib/tftpboot/server/. I created a link to the Apache root: /var/www

Code:
ubuntu@ubuntu:/var/www$ ls
returns => index.html server
server folder is the place where I unpacked the ISO.

My dhcp3-server has this setup and it works well with netboot, but I don't know how to add Apache to the formula to transfer the iso file from host to client. Firewall is disabled. This is my edited /etc/dhcp3/dhcpd.conf file.

Code:
host pxeinstall {
hardware ethernet 00:06:29:DE:E3:CD;
fixed-address 192.168.2.4; (client IP)
next-server 192.168.2.2; (host IP)
filename "/server/install/netboot/pxelinux.0"; (relative to tftpboot)
} subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.2 192.168.2.5;
option routers 192.168.2.1; }

When I pxe-boot the client, the process comes to a halt when tftp server is trying to access to pxelinux.0 file. I got thls error:
PXE-T00: Permission denied
PXE-E36: Error received from TFTP server
I have no experience with Apache... so I think there is a problem with my IP addresses.. Do I need to use 127.0.1.1 instead of 192.168.2.1 (my routers IP)?

View 3 Replies View Related

Ubuntu :: Desktop Is Not Displaying Files

Jul 4, 2011

My desktop is not displaying files that I put on the desktop days ago. I checked all four workspaces.All the files are still accessible from Nautilus > Desktop.When I drag a file icon (from Nautilus to the empty desktop) and release, the icon does not drop on the desktop, the icon quickly moves back to the folder where it came from.The top and bottom panels of the desktop still operate normally.I am running Ubuntu 11.04 64-bit with classic-Ubuntu desktop.I also noticed that Startup Applications is missing "chrome" that I added this morning.I am the only user on this system. The system is a duel boot Ubuntu - win7. The Ubuntu partition is formated ext4 and there is a separate NTFS-formated partition named "storage" for folders that are accessible from both Ubuntu and win7. That should not be an issue because the desktop folder is on the Ubuntu partition, /home/[user]/Desktop. I have not booted win7 in the last few days.The desktop first
appeared empty after I did two things:

1) installed CryptKeeper from Ubuntu Software Center
2) Enable Automatic Login

After I clicked Applications > System > CryptKeeper, the desktop did not respond to mouse clicks. I did not find any CryptKeeper instructions. I don't know how to use CryptKeeper.The login screen still asked for credentials after I rebooted.So I uninstalled CryptKeeper, disable Automatic Login, and rebooted. But the desktop is still not displaying the files.Could CryptKeeper have changed something in my profile?Does Ubuntu have a log file to see exactly what I did?What else can I try to restore my desktop and enable Automatic Login?

View 8 Replies View Related

Ubuntu :: IPod Touch Not Displaying Synced Files

Jan 11, 2011

after i solved the many other problems that plagued me as an early adopter of the new iPod touch, I took my freshly recovered device (iOS 4.1, on an ipod touch 4G) and tried syncing with Rythmbox and Banshee. It shows up on the GUI as a music player and a camera, I press sync on rythmbox or banshee and it works out. But when the sync is over and I look at my device I find no songs on there, but they're inside the itunes_control file in my ipod when I view the file contents from ubuntu.

I have succeeded in syncing with iOS 4.1 before, but an error forced me to restore my iPod. But that was when I had a jailbroken ipod with the DBversion changed to 2 as per many guides on the internet. But I thought all of these problems were solved with the new libimobiledevice 1.04.

View 1 Replies View Related

General :: Alias For Changing To Directory And Displaying All Files

Jul 4, 2011

I'm trying to setup an alias, that when I change to another directory, any directory, it will also display all its contents like ls -al:Well, that doesn't work. I guess it's an issue with the use of wild-cards.Maybe I should define a new, so far unused, name for the alias like cdl for example.Would be great if someone could help me. I search in several examples for bash aliases but couldn't find the right solution.

View 9 Replies View Related

Ubuntu :: Not Displaying Folders And Files In Desktop After Starting The System ?

Aug 11, 2010

I dont know whats wrong with my desktop....but it is not displaying folders and files in desktop after starting the system.The mouse right click is also not working.But the panels are working.

But once I browse files on my cell phone(using bluetooth) with my system,the desktop is working as usual.

I think I have to add some application( which loads desktop) to list of start-up applications.

View 2 Replies View Related

Ubuntu :: Evince Is Somehow Screwing Up Font Creation When Displaying Dvi Files

Mar 26, 2011

1. Evince is somehow screwing up font creation when displaying dvi files. I can preview the dvi file fine under xdvi. When I try with evince, I kicks off a slew of metafont font-creation runs, then shows me totally garbled pages -- the layout is correct, but none of the characters are right. This happens for documents that primarily use Times Roman fonts.

2. *Every* time evince comes up, it insists on starting in continuous / "fit page width" mode. I don't want either one. I want continuous-mode*off* and the window in the "best fit" view. So I have to click, drag, click, click, drag, release *every* time I pop up a file. It's very annoying. There doesn't appear to be any key in the gnome gconf config database I can set to affect these things. How do I fix this?...

View 1 Replies View Related

General :: Ls Command And Displaying Number Of Files In Current Directory?

Oct 15, 2010

What command will provide you with the number of files in your current directory?
Choose one answer.
A. ls -c
B. ls | wc -w (this one)
C. ls -n | count
D. ls -wc (this one ?)

View 5 Replies View Related

Programming :: Redirect The Output To Multiple Files Without Displaying It To The Screen?

Oct 26, 2010

To redirect standard output to multiple files:

Code:

echo Test | tee file1 file2

My problem is that the word "Test" still displays to the screen? I want same effect as:

Code:

echo Test > file1

but with multiple file redirection.

View 3 Replies View Related

Ubuntu Multimedia :: Files On Video Camera Stopped Displaying On Computer

Nov 12, 2010

We've bought a cheap video camera for our son to make a movie. Files are stored on a 16Gb SD disk. When we first used it a week ago I was able to connect the camera via USB and copy the files to my laptop. Today I went to clear some more files to make room for shooting the movie and nothing shows up when the camera is attached to the laptop. I can view the files on the camera so they do exist.

I have tried:Using different usb ports Using a different computer Using an SD Card Reader on both computers Investigating permissions via terminal (the camera seems to be set to RWX Checking that no one has played with the settings on the camera Nothing has changed on the camera or the laptop as far as I can see and yet the files are not showing up.

Camera Model: HD-C2 2.7" LCD 12MP
Ubuntu Version: 9.10 Karmic Koala

View 4 Replies View Related

Fedora :: Scan Url And Downloading Files

Feb 1, 2011

I understand wget is used to download files. Is there a way I can search a url for what files are available for me to download. I need to install a plug-in from an adobe website.

View 2 Replies View Related

Ubuntu :: What Msg Files Are / How To Stop Them From Downloading

Nov 14, 2010

I've been using PAN for quite some time - recently installed 0.133 from the Ubuntu software centre. Worked fine for a while, no issue. Then, a week or so, it started downloading .msg files in company with the binary files I was getting. Sometimes one .msg file for one binary, sometimes quite a few. It seems to have some correlation to the size of the binary, that is the larger the binary, the greater the number of .msg files were downloaded.This morning, it would ONLY download .msg files. I could see the decoded binary in the PAN viewer pane, but it isn't present on my system. I have made NO changes to any configuration files, other than installing the recommended updates.

How do I correct this?Can anyone tell me what these .msg files are, and how to stop them from downloading?Are there as-good or better newsreaders out there that I can/should try?

View 3 Replies View Related

Ubuntu :: Remotely Downloading Files Through SSH

Mar 27, 2011

How to set up a script to log on to a server through SSH, copy file from the server to the local machine, and then run a script on the downloaded file. More specifically, I've got a minecraft sever that is run on ubuntu.

I know that I can do
# ssh username@ipaddress
to log on to the server through the terminal.

After this it asks me for a password. Once I type in the password I have access to the directories on the server. How can I set up a script to log on to the server and enter password? Once I do this, how do I automate it to copy a file from that server to ~/Desktop? If I can do this, I have a script that will run from there.

I've learned that I can do
scp -r remoteuser@remotebox:/remote/directory /local/directory to copy files from a server to my local machine, but it still asks me for the server password. how do I make it so that the password is automatically entered?

View 2 Replies View Related

Programming :: Php Script For Downloading Files?

Mar 23, 2010

I want users of my website to be able to download files from it.

When they request a download, I would like them to see a window with the following attributes: ability to choose where downloaded file goes; progress of the download, and estimate of remaining time; a button to cancel the download.

There are hundreds of sites out there that do this, so obviously it's possible, but can it be done from a php script on the server? If not, does anyone know of a script in java(/script)?

I would also like to monitor when a download failed and succeeded, and if the failure was not because the cancel button was pressed, pickup whatever system information is available about the failure cause.

View 4 Replies View Related

Debian :: Ftpsync Still Downloading Old Files Despite Exclude?

Sep 6, 2015

I was thinking of migrating my apt-mirror repository to the recommended ftp scrips: [URL] .....

I pre populated my pool with already downloaded files, and setup the scripts.

However, if I run the bin/ftpsync, and monitor rsync with lsof -p, I can see that it is still downloading files from oldstable (wheezy) despite exclude options.

I'm guessing it's a configuration error, but I can't seem to figure it out. Any thoughts? My etc/ftpsync.conf is as follows:

Code: Select allMIRRORNAME=`hostname -f`
TO="/server_storage/srv/mirrors/debian"
RSYNC_PATH="debian"
RSYNC_HOST=ftp.us.debian.org
LOGDIR="${BASEDIR}/log"

[Code] ....

Actually, I don't think it works like I thought it did. A few guides I found listed the exclude options, but the sample config file has this:

Code: Select all## If you do want to exclude files from the mirror run, put --exclude statements here.
## See rsync(1) for the exact syntax, these are passed to rsync as written here.
## DO NOT TRY TO EXCLUDE ARCHITECTURES OR SUITES WITH THIS, IT WILL NOT WORK!
#EXCLUDE=""

So it looks like it doesn't exclude the suites at all.

View 5 Replies View Related

Fedora :: Keep On Downloading Tar.gz Files Into Downloads Folder

Sep 20, 2009

I keep on downloading tar.gz files into my downloads folder and i cant do anything with them. what i need to do to install the file so i can use it? An example, i am trying to install Frets on Fire, and am failing bad.

View 9 Replies View Related

General :: Downloading Very Large Files Via SFTP

Apr 1, 2011

I need to download some very large files (circa 75 GB) from a remote server via SFTP. I've been using SFTP via the command line on my Linux netbook. Around halfway through, the transfer stops and says "stalled." Can anybody recommend a reliable way to download these files?

View 1 Replies View Related

General :: Downloading Files With Same Directory Structure

Apr 8, 2010

How do I download all the files form here: [URL]. I am on freeBSD 7.0 and I tried wget with the -r switch and it gives me URL's only. Maybe this is simply not an ftp site I don't know. How I can download all those files with the same directory structure.

View 5 Replies View Related

Slackware :: Downloading AlienBOB's Multilib Files?

Feb 17, 2010

Is there an easy way to get all of the multilib files from [URL]? I've tried:

1.) wget - won't use wildcards on an http server, and trying to get the whole folder just gets me index.html

2.) ftp - it's not an ftp server and I can't login anonymously via gftp. I wasn't expecting this to work, it was just something else to try.

3.) rsync - If this could work, I may not be using the right syntax. I tried (-n for a dry run first):

Code:
rsync -avn [URL]

And it just sat there doing nothing until I hit ctl-c.

Obviously I could download each file from my web browser but I figured there had to be a more elegant Unix-y way without all the clicky-clicky. Are the files hosted on an ftp server anywhere?

View 5 Replies View Related

Ubuntu :: Rssdler Not Downloading Torrent Files?

Feb 26, 2010

I'm trying to download Star Wars the Clone Wars torrents from two different feeds. The scantime below is temporary while I'm trying to get it to work. Will change it to 15 min later on.Below is the verbose output.

Quote:

INFO --- RSSDler 0.4.2
DEBUG writing daemonInfo
INFO [Waking up] Wed Oct 27 18:12:11 2010
DEBUG checking working dir, maybe changing dir

[code]....

View 2 Replies View Related

OpenSUSE :: Is Downloading Only The .delta.rpm Files Enough For Updates To Work

Mar 24, 2011

I currently mirror the updates repository to my computer using rsync. I was wondering if I could save space and bandwidth by only rsyncing the .delta.rpm files? Are there any disadvantages to this or does zypper/YAST handle updates just fine with it?

View 3 Replies View Related

Ubuntu Installation :: Aptitude Downloading Files Simultaneously?

Apr 24, 2011

Ubuntu Lucid 32-bit desktop machine. I run "aptitude update" and "aptitude safe-upgrade" manually from the command-line regularly to upgrade my machine. I usually don't pay that much attention to the downloading, but I noticed yesterday that aptitude appeared to be downloading four files simultaneously, rather than the one at a time that I've always seen. Would this be correct? How can I change that? I can't say I've ever noticed it before.

View 3 Replies View Related

Networking :: Limit Bandwidth For Downloading Files With Squid?

Jan 23, 2010

I want to limit bandwidth for downloading files with squid. I want to reserve bandwidth for other traffic (esp. web browsing). I know about delay pools but I don't understand well. Some users use download managers to download large movie files. I don't want to block downloading but I want to give them limited bandwidth. May be 5KBps or 6KBps because I have only 512Kbps (64KBps) connection.

View 1 Replies View Related

General :: Uploading And Downloading Large Files Between Clients?

Jun 5, 2011

I am looking for a file sharing program to install on my dedicated server that will allow me to upload large MP3 files and allow my clients to download them. these files are recordings of counseling sessions for families who are seeking help for their children.

What I am looking for is similar to the system this company uses [URL].

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved