Ubuntu Servers :: Correct Localhost Path For Running Php FTP Script
Feb 16, 2010
how to access a FTP server with php. I've written a script from a tutorial but I'm getting errors with the ftp_get function.
PHP Code:
[code].....
Warning: ftp_get() [function.ftp-get]: Error opening /var/www/download.txt/ in /var/www/gwr/connect.php on line 11
I'm having trouble with the ftp_get function and I believe the problem is with the local server path. In this case var/www/download.txt I've also used a folder in that directory called download in the place of the .txt file and it gives the same errors. Is var/www/ the correct path to tell php where to download the files to? I've experimented with the files permission and nothing has worked. I'm running a standard ubuntu desktop install, Karmic Koala.
View 3 Replies
ADVERTISEMENT
Jul 3, 2010
My downloads are navigating to my home folder but not being deposited into the download folder as you can see by the screen shot . I don't know how to configure the correct path to the folder
View 2 Replies
View Related
May 9, 2010
A few days ago I made the mistake of upgrading to Ubuntu 10.04 LTS, and subsequently had nothing but trouble. My volume icon disappeared and for the life of me I couldn't find it or reinstall it. An eerily Windows-like chat icon has appeared next to my login name that I didn't ask for, and more importantly my handbrake program (Matroska encoder) completely stopped working.
I've learned in the past that LTS editions are not normal upgrades, and I should best avoid them. But this one appears from the Ubuntu homepage to be the standard upgrade from Karmic to Lucid. I've had to completely reinstall Karmic on my workstation just to be able to carry on as normal, but the laptop seems to be coping ok with the LTS edition. Can anybody tell me if this LTS is now the default upgrade for Lucid, or is this just a regular LTS and I should wait for my standard one to come out?
View 3 Replies
View Related
Jan 11, 2010
How do i find the correct path to my cd-rom drive? I want to install office 2007 using wine and I have used the programmerfish tutorial and now have to do the following:type wine /path to cd/setup.exe but I cannot seem to find the correct path.
-I tried /dev/sr0/setup.exe but it returned an error.
-I tried /dev/sr0/media/setup.exe. returned the same error.
-I tried /dev/media/setup.exe. Also no good.
I thought using df would help me and there i found /dev/sr0/ would be my cd-rom drive. Dunno it this correct though.
View 9 Replies
View Related
May 13, 2011
I am trying to install OpenCV2.2.0 from the sources and to make it easier in the future I want to create a rpm on my OpenSuse 11.2 x86_64 platform. The instructions how to install are in the specfile The relevant parts of the specfile below:
Code:
---snipp
%prep
%setup
%build
[code]....
View 2 Replies
View Related
Feb 13, 2010
I have just installed Ubuntu 9.10 netbook remix for my new laptop. I've tried at great length to install the correct drivers to get my wireless up and running. I'm currently trying to install the Broadcom driver for my 802.11g wireless card. I have downloaded the headers and tools for ubuntu and am proceeding with the instructions given on [URL].
But when I get to these steps I come unstuck
# mkdir hybrid_wl
# cd hybrid_wl
# tar xzf <path>/hybrid-portsrc.tar
I can make the directory and open it but when it comes to the third step I get a message saying that there is no such file or directory.
View 8 Replies
View Related
May 3, 2010
I need to check and see that dbus, udisks and gvfs are running correctly, how can I check them?
I'm running only LXDE on a custom install of Lucid I did and I can't get my usb hard drive to automount properly and I was told by an LXDE developer that I need to check and make sure these three are running ok.
View 1 Replies
View Related
Oct 2, 2010
I have now installed a radeon 9250l display board. I followed the Ubuntu Radeon documentation page. It tells me that 3d is supported. I am not sure that 3d is correct or running. I am running without a xorg.conf file and my current resolution os 1024x768 (which is fine). I get no errors on boot but want to make sure its correct. I also did:
[code]...
Since the documentation seems to apply to the previous version (mine is 10.04) that may be a problem.
View 3 Replies
View Related
Sep 9, 2011
What's the correct way to shutdown system while apt-get is still running? apt-get complains about unclean shutdown when I just shutdown computer.
View 2 Replies
View Related
Oct 30, 2010
I have a crontab on my vps running every minute that checks to see whether or not a certain port is open on localhost. If the port isn't open, it should run the php script to restart the program. However, I require the use of screen to be able to interact with the program whenever I reconnect to the vps through shell.The problem is, screen is being a pain by saying "Must be connected to a terminal."This is the php script:
Code:
#!/usr/bin/php -q
<?php
[code]....
View 5 Replies
View Related
May 31, 2011
I'm using Fedora 15. For some reason, my computer is booting up graphically. I do not have video drivers for a graphical setup apparently now that Gnome is getting more advanced, so I really need to restore to a CLI. I see /etc/inittab is now deprecated thanks to systemd. The instructions say the following:
Code:
# Ctrl-Alt-Delete is handled by /etc/systemd/system/ctrl-alt-del.target
# systemd uses 'targets' instead of runlevels. By default, there are two main targets:
# multi-user.target: analogous to runlevel 3
# graphical.target: analogous to runlevel 5
To set a default target, run:
# ln -s /lib/systemd/system/<target name>.target /etc/systemd/system/default.target
And that's exactly what I have set up!
Code:
[root@server system]# pwd
/etc/systemd/system
[root@server system]# ls -la
total 20
lrwxrwxrwx 1 root root 37
May 31 10:41 default.target -> /lib/systemd/system/multi-user.target
Why is this machine starting up graphically? I even removed the symlink and recreated it... but that obviously isn't the issue here.
View 8 Replies
View Related
Sep 16, 2010
It complains that it can't connect to localhost because probably libvirtd is not running. Well it is running, so please share your wisdom with me. Here is error message:
[Code]....
View 5 Replies
View Related
Aug 14, 2010
I am trying to set up postfix on my ubuntu server.When I try to login to the pop accounts through telnet
Code:
user@ubuntu1:/$ telnet localhost 110
Trying ::1...
[code]....
View 3 Replies
View Related
Jun 3, 2011
For some rather odd reason, my IRC bot wont connect to the local irc server, but it will connect to IRC.FREENODE.NET, I have no idea why...
PHP Code:
<?php/** PHPIRC Class Simple IRC Bot * * @author Ferdinand E. Silva
[code]...
View 1 Replies
View Related
Nov 28, 2010
I'm running the alsa upgrade script and I have ffmpeg installed so it finds the /usr/local/lib/libavcodec.a first when I want it to use the /usr/lib/libavcodec.so instead because otherwise make errors occur.
Can I point it to use the PATH to /usr/lib/libavcodec.a or should I just uninstall ffmpeg temporarily.
View 5 Replies
View Related
Mar 18, 2010
Have basic LAMP setup on 9.10 box. I want to have a publicly accessible website AND I want to have phpmyadmin available. The only thing is I would rather not have the phpmyadmin interface available on the internet. I usually open a ssh port forwarded tunnel when I need to use phpmyadmin on this server. I want to add a directive to make phpmyadmin bind only on localhost. I have found the phpmyadmin config file in /etc/apache2/conf.d
phpmyadmin.conf -> ../../phpmyadmin/apache.conf
I have tried adding some LISTEN directives, but apache does not like my directives-- I am obviously not doing it right. I have looked for a bit on the internet and can't find out how to disable external access to a configured site in Apache.
View 2 Replies
View Related
Sep 6, 2010
Instead of XAMPP or LAMP, I installed a local web server to my Ubuntu 10.04. Apache and phpmyadmin works well.
I copied the files of my Joomla website to /var/www folder. When I go to administrator panel, it works. But when I type in the browser "http://localhost/[folder_name], a blank page appears and nothing else.
View 2 Replies
View Related
Oct 22, 2010
OK here's what I'm doing:
On terminal 1, I enter:
$ nc6 -vlp 5000
nc6: listening on 0.0.0.0 5000 ...
On terminal 2, I enter:
$ nc6 -v localhost 5000
nc6: ygt-asfandq (127.0.0.1) 5000 [5000] open
Now, as SOON as I make the connection on terminal 2, both netcats immediately quit back to the command prompt. The return code for both is 0.
I do not have ANYTHING in my firewall (I checked with sudo iptables -v -L)
I have attached a wireshark trace of the conversation..
View 2 Replies
View Related
May 11, 2010
Howcome mysql by default is only allowing connections from localhost? I want to access it remotely from another account (not root).
View 1 Replies
View Related
Jul 28, 2010
After spending what seems like an eternity trying to learn how to host a couple of webpages on my laptop for no better reason than to practice creating them without paying for a server. .for the time being, I kept getting the usual errors (stuff I have seen lots of tutorials on) and this time kept getting
"The connection was refused when attempting to contact localhost"
Just by random chance I happened to open up Chromium for one of my attempts and low and behold, I get the much awaited
Quote:
It works! This is the default web page for this server.The web server software is running but no content has been added, yet. I can even login to phpMyAdmin from Chromium. So what's going on with Firefox? Doesn't work in Seamonkey either. Using 10.04
View 7 Replies
View Related
Aug 12, 2010
Am having trouble setting up a localhost DaviCal server. I've followed the directions here: [url]
And everything seems to be working, but when I go to: [url]
I get the "Not Found" page. How do I tweak this to use it locally from my computer? Have searched and tried to follow various tutorials, but no luck.
What I'm trying to do is setup a CalDav server locally on my computer so I can interface Thunderbird with it. The reason being then I can sync my Android phone with the CalDav server on my computer, thus syncing my Thunderbird calendar with it. Android is great, but currently the only ways to sync your calendar is to go through google's servers (not interested) or use the new CalDav sync software from the market... which is what I'm trying to do.
View 1 Replies
View Related
Mar 3, 2011
I am still a newbie at Linux, but have managed to get about 6 different Kubuntu systems up and all running a localhost test web server. I always start out with a server .iso and after installing I add a kubuntu desktop GUI. I have an old laptop that was running 8.04 server w/xubuntu desktop gui and it was running my test web pages through localhost. I got a wild hair and thought it was about time to upgrade to 10.04 server. I always do a complete install and this time I tried lubuntu desktop GUI. I really like lubuntu but for some reason can not get localhost to run. I get a 402 forbidden error. same error with 127.0.0.1 Here is what I get when I run this command
[Code]...
View 4 Replies
View Related
Feb 5, 2010
We have a custom app that runs on boot on some older hardware running DSL linux, and their startup manager was quite simple. We purchased some newer Asus eeebox's which run xandros and things are quite stable and run nice with 1 exception.The application only runs from the root (/) location. This box auto logs in as 'user' and there is a /home/user/.kde/Autostart folder where you can stick scripts to run at boot. So I have a start.sh script, and with little bash programming tried things such as;
sudo cd /
sudo /startapp.pl
but the errors start spewing with the basic;can't find data/xyz as it's looking in the local.I thought there was a basic cwd (change working directory) but everything I try just forces the run from that location.Any ideas or suggestions are appreciated, but things like can you change the code, etc. can't be done, so it must be a programming thing. The only other thought I had but not sure, can you do a cronjob with @boot or something, that when the box starts, it can run this job as root and fire off?
View 3 Replies
View Related
Mar 31, 2010
I've just moved on to 10.04 from 9.10. The program worked fine in 9.10. I *may* have overwritteen a conf file in the upgrade...
I now get the error as below:
My userdir.conf is like this:
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
[Code]....
and I have the PHP5 module installed. I vaguely recall that I may have had PHP4 installed - would the upgrade have removed it? Is there anywhere I can get it from to try? Anything else to do?
View 9 Replies
View Related
May 12, 2010
I am on Ubuntu 10.04 LTS. Installed LAMP yesterday using:
Code:
sudo tasksel install lamp-server
Tested Apache, PHP, MySQL then, all worked fine.
[code]....
View 1 Replies
View Related
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
Jul 5, 2011
I am following this howto to install Apache, MySQL, and PHP5:
[URL]
I have just installed Apache and I am pointing my browser to:
http://192.168.0.100
but I am getting the error message that the server is taking too long to respond.
View 1 Replies
View Related
Jul 11, 2011
I've installed apache2 on ubuntu 10.04 and everything works fine, but when I use functions that needs to connect to Internet, it doesn't work. Is there a simple setup I've forgot? I've been searching and looking for a solution, but I'm stuck!
View 9 Replies
View Related
Feb 24, 2009
how do i change the http://localhost/ to my owe name
View 1 Replies
View Related
Jul 13, 2009
I'm trying to connect to url, but the browser is unable to connect to the localhost; my OS is F11, if someone have encounter this problem? i was able to connect to the localhost when i had F6 OS.?
View 3 Replies
View Related