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


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

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 View Related

General :: Internet Explorer Not Downloading Files From System Server / Work Around This?

Jan 27, 2010

I have a very simple php web application deployed on linux (centOS4) machine. It creates a file and stores the file in /tmp folder on my linux machine. The path for this file is specified in the href attribute of the link. Ideally when we click this link the download manager should pop up so that the file can be downloaded on client machine.
When i access this website remotely from my window xp machine on firefox it downloads the file properly but when i run on internet explorer (i have IE7 on my windows XP) and click the link, the download manager does'nt pop's up. even when i right-click that link and select save as, an error message pop's up saying "file path not found". possibly IE is not able to determine the linux file path .so how do i work around this. is there some specific way for specifying the linux file paths to be downloaded by IE?

View 7 Replies View Related

Ubuntu Servers :: Ubuntu Server For File Downloading And Serving

Dec 2, 2010

I would like to run a small file server at home which I could connect to both remotely and within my own network. I was thinking of using something similar to a cheap dell optiplex machine (Pentium 3 or 4 2GHz?, with 256mb ram and a 40GB hard drive[will do something about the lack of space later]).The file server part of this should be straightforward but I wanted advice on how I could manage downloads on the machine. On my laptop I currently use both firefox's built in download manager and JDownloader. Sometimes Jdownloader isn't the ideal solution for all downloads, e.g. sometimes a single connection through firefox gets a faster download speed. I also occcasionally download torrents through Miro.

If anyone has setup something like what I'm suggesting, could you please give me a general idea of how best to go about this?

View 5 Replies View Related

Programming :: Downloading A List Of Files From A Remote Server Using A List?

Feb 10, 2009

I am trying to get this script to work. The purpose is to download a list of modules from the slax.org the list consist of a list of module numbers. What I am trying to do is Download the file or the file name corresponding to the number in the list.the list is comma delimited. this is what I have done so far and I am a stand still.

#!/bin/sh
# Wget script to retrieve modules from slax.org modules
#
# ----Begin of user defined values -----
# Path to wget

[code].....

View 7 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 Servers :: RAID And Hang On Boot Displaying With 10.04

May 15, 2010

I was having this issue with my server when I tried upgrading (fresh install) to 10.04 from 9.04. But to test it out after going back to 9.04 I installed 10.04 server in a virtual machine and found the same issues. I was using the AMD64 version for everything. In the virtual machine I chose openssh and samba server in the initial configuration. After the install I ran a dist-upgrade and installed mdadm. I then created an fd partition on 3 virtual disks and created a RAID5 array using the following command:

Code: sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sd[b-d]1

This is the same command I ran on my physical RAID5 quite a while ago which has been working fine ever since. After running a --detail --scan >> mdadm.conf (and changing the metadata from 00.90 to 0.90) I rebooted and found that the array was running with only one drive which was marked as a spare. On the physical server I kept having this issue with one drive which would always be left out when I assembled the array and would work fine after resyncing until I rebooted. After I rebooted the array would show the remaining 6 drives (of 7) as spares.

I updated mdadm to 3.1.1 using a deb from debian experimental and the RAID was working fine afterward. But then the boot problems started again. As soon as I added /dev/md0 to the fstab the system would hang on boot displaying the following before hanging:

[Code]....

View 7 Replies View Related

Ubuntu Servers :: Index.html Not Displaying On Apache2?

May 26, 2011

I'm having a bit of trouble getting my index.html to display. when i use [URL] and type in my dyndns url i just get "index of /" and not the index.html page

ive got a index.html in var/www and home/gav/public_html and set chmod -R 755 to the index.html

and still no joy....

gav@lapfrog:/etc/apache2$ gksudo gedit httpd.conf
Userdir public_html
Options +Indexes
Options All

[Code]....

View 7 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

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

Ubuntu Servers :: Downloading Jpg From Php Webpages?

Mar 4, 2011

I'm trying to create an archive of a websites images because it tends to go offline now and then. The problem is, when going to the image in full view, it opens it on a php webpage. I've tried using 'wget -m -A.jpg' but it only saves the thumbnails from the menu page instead of the actual images.

View 4 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

Ubuntu Servers :: Php Webpages Not Processing But Downloading

May 29, 2011

I'm really desperate as I have spent the better part of the last 10 hours trying to sort this out before my boss finds out

When I try and browse to one of our websites the browser wants to download the file as the server will not process the php file. I get which is a: application/x-httpd-php

What's really odd is that from inside the network where the server is located everything works fine, its only from the outside that this happens?

Everything was fine until I ran an system update from webmin that updated a ton of things including Apache2 and PHP5.

Its a self hosted server that was running UB server 9.10, but I have since upgraded to 10.04.2 LTS but no luck.

Apache version 2.2.14
PHP Version 5.3.2-1ubuntu4.9
Joomla 1.5 -latest

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 :: 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

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 :: 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

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

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

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

Ubuntu Servers :: Move XML Files From One Server To Another?

Dec 19, 2010

I'm looking for ideas on how to transfer a group of xml files from one server to another server, either in a regular interval or ?I have a listing program, it creates a directory or classified ad type listing. When one of these is created, or an existing one is edited an XML file is created. I need to take these files and get them to another server. I've read about SOAP, FOPEN and of course FTP.

View 1 Replies View Related

Ubuntu Servers :: Moving Files From One Server To Another

Mar 10, 2011

I'm moving my site to a new VPS and need to learn how to move the files from my current server to the new one. I'd rather not download everything to my computer and then re-upload everything... seems like a lot of wasted time. There has to be a way to copy between the two servers, but how? I have heard someone mention rsync... is that a program I could use? If so, how?

View 8 Replies View Related

Ubuntu Servers :: Access To Web Server Files ?

Jul 24, 2011

I'm new to Linux and have taken over at a company where the linux admin walked out. he has several older linux based servers running version 8.1 i tried running the command sudo apt-get install swat xinetd to setup swat but i get an error that it can't find the package. in addition, this directory xinetd is no where to be found under the etc directory. i've verified that samba is in fact installed on these servers but for some reason the xinetd and inetd directories are not on these servers.

Could it be possible that this older version of linux does not support Swat? i'm considering upgrading very soon to the latest but my main problem right now is i need to copy all web server html files that he had on the web Server i know there are different ways to copy files from linux systems but need the best way to copy all the files so none of the website links get broke off this linux server over to my windows server.

Since i don't have access to anything of the directories nor files on the web server, what is the best way to copy these files and folders off this server?

View 7 Replies View Related

OpenSUSE :: Disable Downloading From Multiple Servers In ZYpp?

Mar 14, 2011

Whenever I do anything in Zypper, there is always a huge lag before it starts downloading a file, but then it downloads at normal speed. I think this has to do with the fact that it is now trying to download from multiple servers, and I would like to turn that off. Where do I go for that?

View 2 Replies View Related

Software :: Downloading A File From Multiple Servers ( Mirrors )?

Sep 13, 2010

I want to download a file (reasonably large) from say for e.g sourceforge. The problem is some mirrors give speeds of at max 40kB/s and I was considering options to increase this. I considered download managers and seems to work somewhat I experimented with axel and lftp's pget. Now I am wondering how I might download the same file from severals servers (say sourceforge's various mirrors). I tried axel by concataneting all server adresses but not sure if it is working. How do I verify that it is indeed using all the servers specified??

View 2 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







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