Ubuntu Servers :: How To Actually Use .php Files Properly

Sep 1, 2011

I have found a login script I want to use for a website I am making. I have followed the instructions on here but don't know how to actually use the .php files properly. I open the .php file in my browser and it gives me the option of downlaoding it. How do I get it to work? I know you normally need to provide options to a php script, as far as I have seen, but I don't know how to.

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Can't Seem To Get Authentication To Work Properly?

Aug 23, 2010

I have set up an apache 2 server, but can't seem to get authentication to work properly. I have set up this in my apache2.conf:

Code:
<Directory /var/www>
AllowOverride AuthConfig
</Directory>
<Directory /var/www>
AuthType Basic

[Code]...

I have created the passwords file with htpasswd and defiantly have the right password for bob. However, when I try to log in the box just comes up over and over again and never authenticates. What am I doing wrong? I'm a newbie, so please bear with me if I've missed something really stupid.

View 4 Replies View Related

Ubuntu Servers :: DNS Not Working Properly (Maybe Be BIND9 Related)

Apr 26, 2010

I am migrating my server from Kloxo (lxadmin) to Ubuntu (webmin/virtualmin), and I already had my Nameservers on my register (Godaddy) to go to [URL] and [URL] along with my IP. (I set the ttl to 60 cuz I thought that might be a problem) Now, I do a dig [URL], it gives me this output.

Code:

; <<>> DiG 9.6.1-P2 <<>> thedomz.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40276

[code]...

I can go to my website only when I change my hosts file (on my windows machine).

View 9 Replies View Related

Ubuntu :: Some Flac Files Not Copied Properly

Feb 23, 2011

Lately I've tried rsync for backing up my home partition to an external drive, but I've run into some problems with some flac files (there might be other problematic files though, these are the ones I know of). The external drive is formatted in ntfs. Now, when adding my whole music directory (within my home directory) first as a library to VLC and then copying to the playlist, some files are not playable. I discovered this at work in windows, and resaved all the flac files using ex falso to skip windows incompatible characters. The problem persisted though. I tried the same thing in VLC in Ubuntu, and got again a set of non-playable files, partly, but not completely, overlapping the set of files that were not playable in windows. The original files (on my internal drive) are playable in VLC in Ubuntu. What to do (except to go back to cp instead of rsync, rsync is faster, but if it doesn't copy correctly, it's not worth it)?

View 2 Replies View Related

Ubuntu Multimedia :: Can't Play Mkv Files Properly

Jun 28, 2011

I owned a eee pc 900HA netbook which I installed with Ubuntu 10.04 and Windows XP on separate partition...

I've been using Ubuntu for almost 2 years now and the thing is, I still got this problem since 9.10.

In Windows, I was able to play an .mkv files fully playable on 480p but not with 720p. In Ubuntu, it have problem even playing 480p mkv files and also with flv 480p. 720p is already out of question. By default, it'll download a codec used to play mkv files when the first time I try to run the video.

I have no problem with playing other format (AVI, OGG) on 480p or lower mkv, flv resolution. Is there a reason why it can't run normally on Ubuntu but perfectly rendered in Windows?

I've try almost all codec (mplayer, totem, vlc) but still have problem running at full speed.

View 2 Replies View Related

Ubuntu Servers :: Lamp-Server: Can't Get Localhost To Work Properly?

Dec 23, 2010

I have Ubuntu 10.10 and i installed the lamp-server by typing:

Code:
sudo apt-get install lamp-server^
everything seemed to work fine.

[code]....

View 9 Replies View Related

Ubuntu Multimedia :: Unable To Play MP4 Files Properly

Jul 14, 2010

For some reason, audio and video doesn't sync while playing MP4 video files. I have tried many MP4 files to confirm this is not specific file related issue. I have tried both VLC and Mplayer. Sound track doesn't sync with video track.

View 8 Replies View Related

Fedora :: Installing Gc.bz2 Files Properly ?

Aug 30, 2011

I'm running fiirefox 4 on f14 and was prompted to install firefox 6 by the browser. Usually i download the gc.bz2 file, right click, extract it, run the terminal, cd into the folder, and once into the folder I run ./firefox.

I did that the first time and the new firefox was working fine, without my shortcuts or plugins installed in the new firefox. But the menu in applications still pointed to firefox 4. I tried something on the web to make firefox 6 the "default" browser but then Firefox 6 just completely disappeared. Even when I cd into the newly extracted "firefox" folder in "Downloads" it will still launch firefox 4.

So my question is how do u properly install a gc.bz2 file? Also how do u remove unwanted applications in the Applications menu? I currently have two firefox shortcuts and two chrome short cuts which each launch the same version of the software. When I right click on it nothing there says "remove shortcut" or anything. Also is there any way to move your favourites/shortcuts from ur old firefox to the new one? What's the propper way to do what i'm trying to do ?

View 4 Replies View Related

Ubuntu Servers :: 10.04 Server Edition Not Booting Properly - Monitor Shutting Down

May 16, 2010

I 10.04 32bit server edition on a box I had lying around, set it up for samba+upnp, and everything was going great.

When rebooting, the server now turns the monitor off, and I'm not sure if anything's loading. I see the initial dell splash screen, and hear the hard drive start to run, and then the monitor goes into standby.

View 5 Replies View Related

Ubuntu Servers :: Unable To Save A File Properly With Java On The Sheevaplug

Feb 19, 2011

I can't seem to be able to save a file properly with java on the sheevaplug (ubuntu)

Here's my test-code:

Code:
try {
File f = new File("test.txt");
System.out.println(f.exists());

[Code]....

it seems to save the file, but nothing that is readable in ubuntu.

I'm using the openjdk-6-jre package by the way.

EDIT: NVM! Forgot to cd into the directory holding the jar before running, so it was working but it was saving to the $HOME dir...

View 1 Replies View Related

Ubuntu Servers :: Unable To Configure Virtual Hosts File Properly

Jun 28, 2011

I'm having problems configuring my virtual hosts file properly The site [URL]... opens on http and https The site 10.0.1.3/myapp/ works
I am trying to redirect all traffic from [URL].... to [URL].... while maintaining access to [URL]....

[Code]....

View 2 Replies View Related

General :: How To Properly Set WGet To Download Only New Files

May 14, 2011

Let's say there's an url. This location has directory listing enabled, therefore I can do this:
wget -r -np [URL]
To download all its contents with all the files and subfolders and their files. Now, what should I do if I want to repeat this process again, a month later, and I don't want to download everything again, only add new/changed files?

View 1 Replies View Related

Ubuntu Servers :: Create Script To Keep Machine Cluster Synced Properly Until Failover

Apr 26, 2010

I've been reading up on clustering a bit and want to create simple 2 machine cluster of which the 2nd one will turn on and take over traffic at the previous machine's IP (I'm aware there will be a couple minutes of downtime while the failover server boots). I've looked into doing a simple DNS round robin, but I think both machines would need to be online all the time for this to function correctly. I've also looked into linux-HA and GlusterFS but both seem a little intense for the simple failover I'm trying to achieve. One catch if approaching with DNS round robin... the server that I want to setup with a failover also operates as a DNS server. Anyone know the simplest way to complete this? One idea I had (that seemed like a bit of manual work): Create script that runs every 60 secs through CRON on firewall (running pfsense) and have it check if master-server is up. If it's not, it will send a WOL signal to the slave, which has a mirrored image of the first. the problem I have with that is I will also need to create a script to keep both synced properly which seems almost impossible if one is shut down until failover (my thought was periodic rsyncs.) Perhaps creating a FS to direct all files to for the master/slave would be the only way around that.

View 1 Replies View Related

Ubuntu :: Script To Find All *.avi Files And Symbolically Link To Them Not Working Properly

Apr 5, 2011

I'm running uShare on my Linux 10.4.2 box to stream videos from my computer to my Xbox via Wifi. As the Xbox360 can only handle AVI files I'm trying to write a script that traverses through all my media at;

/media/Media/

Looking for AVI's and then linking to them symbolically into a directory called;

/media/Media/Xbox360/

I plan to set the script up as a cron job so it will constantly keep up to date. This is the script so far;

Code:

#!/bin/sh
#Searches through media drive to find .avi files and symbolicly links them to Xbox360 ushare folder
cd /media/Media/
files=$(find . -type f -iname *.avi -exec echo '{}' +)

[code]....

and the only file being created is .DS_Store, I think. One other caveat I've not yet been able to get my head round, is that from time to time I'll convert videos from say MKV using mencoder to AVI's and plonk them in the /media/Media/Xbox360 folder, and so when the script traverses all my media folders I need to get it to not link to files that are already in that /media/Media/Xbox360 folder.

View 9 Replies View Related

OpenSUSE :: Search In Yeast2 The Properly Files To Add To The System?

Jan 22, 2011

I'have already installed OpensSuse 11.3.It's the first time for me in Linux and I don't know how to search in Yeast2 the properly files to add to the System.

View 2 Replies View Related

Hardware :: Can't Get Movies (dvds Or Files) To Play Properly?

Feb 3, 2010

I just built a new Linux box & cannot get Movies (dvds or files) to play properly.

Xine playback is jittery but audio stays in sync with video.
Xine complains about "Too Many Dropped Frames"
Mplayer playback is ok but audio & video are way out of sync.
Mplayer says my system is "Too Slow"

I think it might be a RADEON driver issue because my Mandriva-2009.1 uses X.org version: 1.6.1 & maybe those drivers (radeon_drv.so) don't fully support the ATI Radeon HD 4200 GPU. I know there is a prorietory driver (fglrx) but before trying it I'd like to here what you think. Here is some relevant info about my computer:

Motherboard
Asus M4A785T-M
CPU AMD Athlon II (X2) Soscket AM3
Chipset AMD 785G/SB710
Graphics ATI Radeon HD 4200 GPU (integrated)

[Code]...

Sorry this post is so long. I know it isn't easy to sift thru a long post because that is exactly what I've been doing this past week while try ing to get a solution.

View 5 Replies View Related

Programming :: UTF-8 Or Locales - Cannot Get Html Files On Pc To Render Properly

Jun 10, 2011

I cannot get some html files on my pc to render properly, Epiphany and Iceweasel show some non-latin characters as garbage but shows others of the same language correctly although Gedit shows the same files, with or without the html code, correctly. I have all the locales installed. Can someone point me to a solution? I am misleading you when I say "garbage", it is always a pair of question marks.

View 5 Replies View Related

Slackware :: Compiled A 2.6.35 Kernel With A Couple Of Different .config Files And Never Had It Boot Properly?

Oct 14, 2010

The new 2.6.35.7 kernel fails to boot on my Lenovo laptop. I had previously compiled a 2.6.35 kernel with a couple of different .config files and never had it boot properly. The failure occurs very quickly and I am including the final screenshot in case that helps.

View 7 Replies View Related

Ubuntu Servers :: Setup Access Properly From A Public Address To A Monitoring Server That Works Fine Locally?

Apr 19, 2011

I've spent days trying to setup access properly from a public address to a monitoring server that works fine locally. Everything works from public access until I try to link to a CVS repository. The rancid CVS repository is set up as a separate server (virtualhost). It appears the referring link causes a DNS error (105: Server Not Found) when the CVS repository server is accessed from the public address. Things work fine when accessing via localhost.

Localhost link:

[URL]

Public link: (this results in 105 error caused by redirection (bold portion of link))

[URL]

Code:

Virtualhost config:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log

[code]....

View 2 Replies View Related

Ubuntu Servers :: .htaccess Working, Rewrite Not Working Properly?

Apr 25, 2011

I had a problem with apache2 and getting .htaccess working. I have done some things and i believe its working the ErrorDocument command is anyway. I believe there may be some problems with the rewrites though.Im trying to take a urlhttp://localhost/showthread/123and make it display whats on http://localhost/index.php?showthread=123The rewrite rule is Quote:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^showthread/([^/.]+)/?$ index.php?showthread=$1 [L]

[code]....

View 8 Replies View Related

Fedora :: Set Up Multipath Properly To Two Devices Properly?

Mar 29, 2011

How can I set up multipath to two devices properly? I'm sure that I need to do something more then just: /etc/init.d/multipathd start

View 1 Replies View Related

General :: "file" Command Not Working Properly For UTF8 Files?

Oct 30, 2009

I have some files which are UTF8 and have first line as blank. It shows as data file by "file" command. If I remove the blank line, it shows it as UTF8 text file. I have to choose displayable text files from many files, so I used "file" command.

Note: I do not have permission to attach file. So not able to attach sample file here.

View 5 Replies View Related

Ubuntu Servers :: Cant Add Files

Aug 9, 2010

i wanted my own server so installed ubuntu and installed apache2, vsftp etc apache2 works, typed in localhost and it showed the 'it works' page. now, after setting up vsftp, i am now able to access the server via ftp on another pc. i used my username password which was created at the beginning of the Ubuntu installation. it connects fine, but everytime i am trying to upload a file to the var/www/ directory, it says permission denied. what do i have to do in order to transfer files into that directory?

View 3 Replies View Related

Ubuntu Servers :: Multiple Php.ini Files

Jul 19, 2010

I would like to have multiple php.ini files for multiple sites.

I've a production site (word wide available) and a test site (available to some selected IP-addresses). I would like to set some different PHP settings for the test site, for example, 'error_reporting' and 'display_errors'.

Is this possible? I'm not looking for some CGI hack, unless it wouldn't work any other way.

View 2 Replies View Related

Ubuntu :: Using Gpg Files On Download Servers?

Apr 16, 2011

When we download ubuntu iso images from the download mirrors, md5sums, sha1sums and sha256sums are provided for the download. But, there are also some .gpg files provided. Are they used to verify some signature or something? How do I use them to verify the signatures of the packages?

View 7 Replies View Related

Ubuntu Servers :: Accessing Web Files On Scp?

May 14, 2011

I am on Ubuntu 10.04.2 on Amazon EC2.I want to use the Cherokee web server and have it (and php) running under www-data then have the files also owned by www-data. I am only able to ssh and scp into my server using the user ubuntu. This means that I am unable to edit the files.I want to be able to edit the files owned by www-data through ssh/scp.Could you assist me in setting my server to allow me to edit the web files through scp?

View 9 Replies View Related

Ubuntu Servers :: What Is Core.1xxxx Files At /

Jan 25, 2010

I have a VPS with Ubuntu 8.10 64bit and I was looking at / and found like 10.000 files from "core.1000" to "core.10000".What is that? Something I can delete or it is a application that I have installed?

Some of the files at "/":

-rw------- 1 root root 5435392 Jan 15 10:00 core.5755
-rw------- 1 root root 5562368 Dec 14 16:39 core.5757
-rw------- 1 root root 5160960 Dec 22 08:40 core.5758

[code]...

View 5 Replies View Related

Ubuntu Servers :: Cannot List The TAPE Files?

Mar 2, 2010

I've having problems in listing files from a TAPE. I did not create this tape and I'm assuming that the files were successfully backed up to this tape.Some commands that I've tried:

PHP Code:
atenreiro@intranet:~$ sudo mt -f /dev/nst0 status
SCSI 2 tape drive:

[code]...

View 1 Replies View Related

Ubuntu Servers :: Apache2 Log Files Not Rotating?

Mar 29, 2010

I can't get my apache2 log files to rotate on an Ubuntu 8.04 64-bit server install.

Does anybody know of logrotate creates an error log somewhere by default?

Here's my /etc/logrotate.d/apache2 file if someone has any insight if I am doing something wrong.

/var/log/apache2/*.log /var/log/apache2/portal/*.log {
weekly
missingok
rotate 52
nocompress

[Code].....

View 9 Replies View Related

Ubuntu Servers :: Apache2 - Cannot Parse PHP Files

May 5, 2010

I have apache2 installed along with php5 and mysql5.0. I have installed them by themselves along with just installing the full LAMP install through terminal. My problem is that I cannot parse php files, it will just download them instead. I did change my apache server to nick/projects (nick is my username). If I navigate to localhost/index.html it works fine but will not parse the php files I have put there. I also have rails working fine in that folder too using apache2.

View 7 Replies View Related







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