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
ADVERTISEMENT
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
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
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
Feb 10, 2016
I am trying to access logs Apache logs (I just installed Apache) and it is giving me permission denied errors. What permissions did you give to yourself in order to access these logs or should I just add this user(myself) to adm group?I can access other log files with no problems for example ssh logs.
View 6 Replies
View Related
Mar 7, 2010
I downloaded an FLV video and placed an extra MP3 file over it. Two files. Total: 30 MBI experimented with about seven rendering containers, and QuickTime renderer was the only rendering container that didn't result in sped-up/compressed video or correct rendering for just fifteen seconds.How in the name of all that is holy did this rendering end up with 570 extra MB?
View 2 Replies
View Related
Feb 11, 2010
I have a Linksys AG300 "Adsl gateway" router/modem. When I download files with Iceweasel, the connection to the internet drops out (the internet connection light goes off, downloading stops). It's been happening for a while with Etch (and whatever version of Iceweasel Etch has), but I've today installed Lenny and it is still happening in Lenny.
My ISP said it could be a problem with the phone line because my computer is connected to an extension, but it does not happen at all if I download with Opera, and I would have thought that the browser wouldn't matter if it was the phone line or something in the router/modem. I'm not that fussed because I can use Opera to get my downloads, and the new version of Iceweasel will let you continue on if the download stops so all is not lost if it stops (it's just annoying). I'd be interested if anyone has any ideas as to why this happens. It seems to be an "Iceweasel thing".
View 4 Replies
View Related
Aug 28, 2011
This is what writes when I enter localhost in browser and press Enter.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
http://localhost/~david/baby.php
Not Found
The requested URL /~david/baby.php was not found on this server.
Apache/2.2.19 (Debian) Server at localhost Port 80
So , I copied file directly into /var/www folder, entered /localhost/baby.php and get this :
Server error The website encountered an error while retrieving http://localhost/baby.php. It may be down for maintenance or configured incorrectly. Here are some suggestions: Reload this webpage later. HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
So , it's not 'bout path or server .. or about php file (I tried few). I don't know what to do
View 8 Replies
View Related
Apr 12, 2011
I have an apache installation with /var/www/bob as the document root and the only site served up. I have bob as the directory's owner, and he is able to upload his files to that folder via ftp (vsftpd on the server). When a browser tries to access the pages, it simply gets a 403 forbidden. The problem occurs when apache2 tries to access the files bob uploads. The www-data user (Apache daemon) gets permission denied when I try to cat bob's files in the shell, so it's purely a permissions issue. What I can't figure out is how to give the Apache daemon the ability to read bob's files while also making certain it does not have the ability to modify any of them.
View 1 Replies
View Related
Apr 3, 2010
I recently downloaded Frets On Fire and the HRP Polymer pack for Duke3D...Duke3D runs fine with just EDuke32 and no mods, just Duke3D and EDuke32. But when I try the HRP Polymer pack, it says in Terminal "NVIDIA: Direct Rendering failed, attempting indirect rendering." This is fine...if I want the game to lag like hell, I'm sure my video card and the driver for it support DR, the video card is a NVIDIA Geforce FX 5200, the same message appears in terminal when I run Frets On Fire, I think it does with other games too, if someone could explain how to enable Direct Rendering.
View 5 Replies
View Related
Jul 27, 2014
After seeing disappointing FPS in games with the open source AMD driver, I decided to install the proprietary one using the instructions on the Debian wiki. As I have a Mobility Radeon HD 3670, I needed to install the legacy driver. Everything installed fine, and I was able to configure my GPU by putting
Code: Select allSection "Device"
Identifier "My GPU"
Driver "fglrx"
EndSection
in /etc/X11/xorg.conf.d/20-fglrx.conf. I then restarted the computer, so that the open source driver could be blacklisted. In addition to the base driver installation, I installed the legacy Catalyst Control Center and the 32-bit fglrx OpenGL library. The problem is that, whenever I run fgl_glxgears, the rendering window is just a black screen. KDE renders just fine, and I am currently typing this using Iceweasel. I have tried using aticonfig to disable fast TLS, but the problem still occurs. The packages that I have installed are:
firmware-linux-nonfree
fglrx-legacy-control amd64
fglrx-legacy-atieventsd amd64
fglrx-legacy-driver amd64
fglrx-legacy-modules-dkms amd64
libfglrx-legacy amd64 and i386
libfglrx-legacy-amdxvba1 amd64
and libgl1-fglrx-legacy-glx amd64 and i386
. Also, when I type fglrxinfo, the renderer string is my GPU and not a software renderer.
View 0 Replies
View Related
Mar 23, 2011
Below are example screenshots of Freemind from Ubuntu Lucid and Debian Squeeze
Lucid
Squeeze
You'll notice that there is slightly different quality, it is also applies to pdf documents.
and my question is.. how do i increase rendering quality in debian squeeze?
View 7 Replies
View Related
Apr 7, 2010
I've compiled Firefox 3.6.3 on Debian Lenny with the following mozconfig: http://pastebin.mozilla.org/713438When executed, I'm getting strange rendering errors: http://imgur.com/Bmosk
View 3 Replies
View Related
Feb 11, 2011
I'm noticing some odd rendering glitches under Iceweasle 3.5.16, with GNOME 2.30.2 running Debian 6.0 i386 default install.Google for example has an odd black bar that blinks, it almost seems like some odd selection bug (but I have not made any selection). Sometimes it doesn't appear other times right after starting Iceweasle it happens. Any ideas? It happens on other websites in random areas.
View 4 Replies
View Related
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
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
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
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
Feb 12, 2010
I installed compiz with nvidia trouble is when I run compiz white bars or lines (bars) appear in open windows (icewease, gedit, etc.). They disappear after a few moment and reappear when scrolling a page. BTW everything works fine with metacity running as window manager.
Here is my xorg.conf:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (randy@juliet2) Fri Sep 5 15:03:39 PDT 2008
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (randy@juliet2) Tue Jun 24 10:44:02 PDT 2008
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection .....
I have the nvidia driver 173.14.09 installed. Running Debian Lenny stable x64 and turion x2 with a geforce 8200M G graphics card with dual screens. I first installed the debian repos compiz, then upgraded to the tuxfamily repo version. I installed the nvidia driver 190 from nvidia's website and that fixed it!
View 2 Replies
View Related
Jun 7, 2011
Alright ... recently switched from Ubuntu with FF 4.0 to Debian with Iceweasel which I had to upgrade to 4.0 since I really liked the way it worked on Ubu 10.10 ... but I'm having some really strange rendering issues. Flash is not a problem at all, works fine on all flash sites that I've checked out. Some sites though, including this Debian forum, do not show everything in the Iceweasel browser window.
For example, sometimes I'll be browsing on a page with huge chunks of white, clearly indicating that "something" should be in those spaces. When I look at those same pages with Chrome or Opera, everything is filled the way it should be ... all content is displaying properly.
On some sites, like this forum, the rendering is even worse because not only do some items not show up, but in addition most of the links don't work at all. For example, if I use Iceweasel 4.0 to look at the board index of this forum, I can't click on any of the links, not the links in the main sections anyway. If I open up Chrome (that's what I'm using to write this) or Opera, the problem is gone.
What the heck is going on, does anyone know? Is this an Iceweasel bug? Am I missing some package update? I'd hate to have to switch my preferred browser just because this weirdness is going on. At first I thought it was a fluke, specific to a site or two only, but at this point I've seen these rendering issues on about 10 sites ...
View 9 Replies
View Related
Jul 31, 2011
How can i change that login window's font rendering, i mean that screen which you can select user and type password. Is anybody have the experience for tweaking gnome login font or background image?
View 3 Replies
View Related
Feb 5, 2011
according to [URL]... glx server only supported in 2.6-32-21-generic. so to get 3d rendering support i need to compile a that kernel version in squeeze or install from sid/experimental?
View 6 Replies
View Related
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
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
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
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
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
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
Mar 6, 2011
I've been trying to get hardware acceleration (Direct Rendering) working on my system without success. I'm not even sure if my card supports DR or not, my searchs haven't turned up a result for this question. I don't know if its the video card, nvidia packages or bad configurations. Any help with the diagnosis?
Distro: Debian Lenny
Kernel: 2.6.26-2-686
VideoCard: nVidia Corp. NV44 GeForce 6200 TurboCache(TM)
nVidia-kernel-2.6.26-2-686 v.173.14.09
nVidia-glx v.173.14.09-05
View 1 Replies
View Related
Jun 10, 2011
I guess this is a part deux, since I already posted one rendering issue which was eventually resolved ... having to do with the themes of this Debian Forum. Well, I don't know if this is related to that, but yesterday I noticed on another site that my Iceweasel 4.01 is not displaying portions of pages properly. See attached images. Both Chrome & Opera display that page correctly, I've included a screenshot of the same page with Chrome. I have JAVA installed and everything works perfectly fine accross the board on all browsers, except for this "once in a while" issue with Iceweasel. I've noticed this "missing content oddity" on three sites so far (out of 50 or more). No problem with eBay, craigslist, paypal, and other major players.
Open the images with a new tab, then compare both images side by side for best results.
Iceweasel: [url]
Chrome: [url]
View 14 Replies
View Related