Ubuntu :: /localhost/something/index.php Not Found Even It Exists?
Jan 24, 2010
I have a very strange problem.Few days ago everything was working fine.Now every site I'm developing under /var/www doesn't open at all.If i have a file /var/www/siteone/index.php, when i try to open http://localhost/siteone/index.php it's not opening. And IT USED TO OPEN few days ago.It seems that php is working: http://localhost/index.php is working.I'm using .htaccess in subfolders. I remove it for tests - nothing changed.What new i did to my Ubuntu:Installing of VMware Server 2.0.2 + Windows XP as a guest. Works fine.Strange error/warning from error.log in apache2 folder:PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/apc.so' - /usr/lib/php5/20060613+lfs/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0[Sun Jan 24 18:34:02 2010] [error] [client 127.0.0.1] File does not exist: /var/www/siteone/localhostWhy this localhost appears at the end of line?I'm using linux/ubuntu for about 3 months already - i'm not confident with it.
Installed apache2 and php5, got the message "It works!" and phpinfo() displays the info page from withing the my folder. But when i put my index.php and rest of the files in www/mysite/ I only get a blank page displaying nothing, as if my php scripts wont parse. If I create a plain html "hello world" doc it displays that.. I've used this guide before [URL] and got it to work last time some months ago, but this time around after clean ubuntu reinstall it's showing nothing, remember I struggled with some permission things last time doing sudo chmod a+rwx /var/www/* and same for subfolders css and images. but now nothing happens, no errors or nothing. I didnt have to do enything else last time, no php.ini or nothing, it just worked, after I set permissions to get css and images to display correctly. Tried to put my files in www alone but dont work either (also cannot delete the default index.html in the www folder). Tried to restart apache2 and the computer, but no luck. My site also works online from other servers, so this is a local problem.
I've just upgraded my laptop to Fedora 14 and installed LAMP on it for a test environment. I've followed the official instructions to install but seem to have a problem that I didn't have on F13 or Opensuse. Each time I try to access index.php on localhost I get a permission denied message and an SElinux alert. I have tried 7 different solutions on various forums and just can't view anything in a browser.
/var/www/html has been set to chmod 777 /var/www/html/index.php has also been set to chmod 777
A standard user can definitely read and write to the above files/folder. Until I commented it out the Welcome/Test page was working perfectly.
I have installed XAMPP on my system and started it just fine, but for some reason when I type "http://localhost/myDirectory/index.php" into the address bar of a browser, I get a 404 error. I followed the instructions hereand after creating test.php, I was still not able to view it. Can someone please tell me what I am doing wrong?
Ubuntu 10.04: I get the following error in Synaptic: "Could not download all repository indexes" "Could not get [URL]...86/Packages.gz 404 Not Found" (translated from Norwegian).[URL].. does not exist, but it does for Karmic (change lucid for karmic in the url). How do I correct this in Synaptic?
W:Failed to fetch http://ppa.launchpad.net/gezakovacs/...86/Packages.gz 404 Not Found , E:Some index files failed to download, they have been ignored, or old ones used instead.
Failed to fetch [URL] 404 Not Found Some index files failed to download, they have been ignored, or old ones used instead. I have been getting this for a while now complete with a red triangle with an ! in it on the panel.
My network name is eth2 it was changed by some reason and now i got these errors... i installed, reinstalled, re re installed, tried to run the asistant but no luck :/
Code:
* Stopping the Firestarter firewall... eth0: error fetching interface information: Device not found eth0: error fetching interface information: Device not found eth0: error fetching interface information: Device not found
I downloaded the latest version Ubuntu from ubuntu.com and I am trying to install Oracle XE from the below link but for the first step couldn't find "deb" command, is the command replaced[URL]
i think a bug exists in the default cd dvd writer for ubuntu. where would i report that?it asked whether id like to use the third iso standard because the file was larger than 2 gigs, and i did, and the checksum failed at the end, reporting an error and confusing me for a few minutes.
i have network ( 5 windows and one ubuntu )simply i changed the hostname of my ubuntu pc and changed the workgroup name put the old pc name ( old hostname ) still on the network also the old workgroup name
I'm working on my first bash script. My script will do several things but right now I'm just trying to get the basic part of it down and working.I have a section that looks like this
The problem is that if you take that right now and run it, it will return back good in that it does exist. What I need it to do is pass back that it's bad because it doesn't exist (that is unless you actually do have that directory in your root).
I'm setup on a virtual dedicated server with a host running ubuntu, but I'm trying to setup subversions.Now I can set it up in say /svn/myrepository But I want to set it up on one of my websites e.g.
/var/www/vhosts/example.com/httpdocs
but when i run svnadmin create on httpdocs i get the following error.
svnadmin: Repository creation failed svnadmin: Could not create top-level directory svnadmin: 'httpdocs' exists and is non-empty
Slowly but surely learning to live without synaptic. How do I find out which packages exists (and what they do) using apt-get?man apt-get does not give the answer or I don't see it in there.
I want to create a file in the /root directory and then make sure it exists. The following code keeps telling me that the file doesn't exist even though it does.
Code: #!/bin/bash echo -e "username=someusername passwordsomepassword" | sudo tee /root/.credentials if [ -e /root/.credentials ]; then echo "File exists!"
[Code]...
[Edit] Added second double quotation mark at the end of "somepassword"
I seem to be having some problems with the clipboard. If I copy something in firefox, then quit out of firefox, the thing I copied no longer exists. I don't think this used to happen, I'm sure I would have noticed before now.
10.10 64 bit clean install. If you download software via Software Centre, terminal or Synaptic will you automatically download, if it exists, the 64bit version?
Code: sudo rm -f /var/log Now I cannot update or upgrade any package (I know there are updates waiting but Update Manager doesn't show any packages to download). How can I rebuild the index of packages and its versions in /var/log/apt ?
I just installed OpenShot from Ubuntu Software Center. When I want to launch it, it displays nothing, then I try from terminal and I get this:
Code: OpenShot (version 1.1.3) Process no longer exists: 15049. Creating new pid lock file. A new frmMain has been created Segmentation fault
2 month early I was at Ubuntu 10.04 beta and this problem occurred in : VLC, OpenArena, FileZilla etc. and I made a fresh install in April. I configured Ubuntu and have lots of important files, A fresh install isn't an option for me.
I am running Ubuntu 9.04 at work and have a sudden need to install a newer version of python-support (> 0.9.0) than is currently available in the repo (0.8.7) for my Ubuntu version. Upgrading to 9.10 is not an option as we are planning to jump to 10.04 LTS in the next few months and I am unable (unwilling) to mess with a complete upgrade prior. Is it possible for me to upgrade to the newest version of python-support - or is this package OS version specific? Assuming it's possible, how might I go about the process of upgrading?
Is it possible to set up a udev rule that will check if a file exists on a USB drive?
I've got a few ubuntu servers in environments with some very not-techy peoples. Im hoping to get to the point where I can give them a few USB sticks with scripts on them, and if they plus one of these sticks in it will be mounted in, say, /media/special (rather than /media/usb0..7) and then the script would be run. But if a usb drive without special.sh is inserted, it should be mounted to /media/usb0..7 as normal.
I've been googeling for udev rules, and it seems simple enough to specify a mount point based on brand/model/serialnumber/etc... but i havent been able to find anything about checking for the existance of a file.
Tho the more i think about it, the more im starting to think its not going to be that straight forward. Can udev check for a file on a drive before that drive is mounted? Is it going to be a case of mounting every drive to /media/usb0..7 then having a script run that will check for the file, and if its there change the mount point before running special.sh?