Ubuntu Servers :: (IMO) Apache - Directory PHPInfo Does Not Exist

Mar 23, 2011

Have Apache running on Ubuntu Server. Say I have a domain, www.somewhere.com, and I have uploaded a file, phpinfo.php. If I hit http://www.somewhere.com/phpinfo.php, I get my file as expected. However, If I hit non-existent file http://www.somewhere.com/phpinfo/somefile.dat, it also acts as if I hit phpinfo.php, instead of giving me a 404 error. It seems that because the DIRECTORY "phpinfo" does not exist, it decided that I must have meant to hit phpinfo.php at the root of the site.

If I create an empty "phpinfo" directory then it behaves as expected and gives me a 404 not found page. This is reproducible for any other file name you can think of. I'm sure this is some Apache convenience behavior but I would like to disable it (it is messing with some mod_rewrite stuff I would like to do). Because it's hard to describe I cannot figure out which Apache option it might be (whatever I Google for gives me completely unrelated results).

View 9 Replies


ADVERTISEMENT

Ubuntu :: Apache + PHP Doesn't Work In 11.04 - Phpinfo Gives 500

May 30, 2011

I have installed apache+PHP, but even phpinfo gives 500. CLI PHP works fine. What can be the cause?

View 1 Replies View Related

Ubuntu Servers :: /var/www/phpinfo.php: Operation Not Permitted

Jul 19, 2011

I just setup a server using ubuntu server edition also installed apache, php, mysql and phpmyadmin.. when i try to setup FTP permission via winscp i get the error /var/www/phpinfo.php: Operation not permitted. ans so on for other files present there..

View 3 Replies View Related

Ubuntu Servers :: Phpinfo Didn't Show Configure Options?

Oct 22, 2010

I created a file to show phpinfo. But configure command is missing from the list.

Check some other servers, confiugure command is there.

Is this an ubuntu issue?

View 1 Replies View Related

Ubuntu Servers :: Apache Won't Use User Directory

May 12, 2010

I'm configuring Apache for the first time on this box (8.04 LTS) and Apache2 for the first time ever. "Out of the box" it runs fine and I get the "It Works" page okay. But I'd like to use the virtual site feature to direct Apache to a folder in my user space, and I keep getting errors.

When I point a browser at localhost, the 404 message is "The requested URL / was not found on this server." and the /var/log/apache2/error.log ends with "File does not exist: /htdocs.

Here's my config file from the apache2/sites-available folder:

Code:

I diff'ed this file with the default and the only differences are in the DocumentRoot line and the <Directory ...> line.

My public_html folder has permissions 755 and the index.html file is 644.

View 7 Replies View Related

Ubuntu Servers :: Create New WWW Directory Apache?

May 13, 2011

I want to make a image directory in the WWW folder. It works fine, but when I link to the images on the page it stands that I don?t have permission to the picture, 403. How do I set the permission?

View 2 Replies View Related

Ubuntu Servers :: Apache Directory Browsing Not Working?

Jul 19, 2010

I had directory browsing enabled in Apache on a previous computer, but I can't get it working again:heres my apache2.conf

Code:
#
#Based upon the NCSA server configuration files originally by Rob McCool.

[code].....

View 6 Replies View Related

Ubuntu Servers :: Apache/PHP Set Root Directory Of Website?

Nov 27, 2010

In my website, I'm putting shared files in a "/global" folder. Both "styles.css" and "library.php" are in this global folder. HTML code seems to be working ok - the following bit works great to pick up a style sheet:

Code:
<link rel="stylesheet" type="text/css" href="/global/styles.css" /> However PHP does not seem to understand my root directory. Using the following does not work:
Code:
include_once("/global/library.php");

I receive a "failed to open stream: No such file or directory" error.Spelling out the entire full path works, like so:

Code:
include_once("/srv/www/mysite/global/library.php");

But this type of code is no good as I may change servers in the future. I have my "DocumentRoot" set correctly in my sites-available file. It seems as if PHP is ignoring it. Is there a config file someplace (htaccess? Local php.ini?) where I should update my root directory for this site only? Or am I following bad form and there's a better way to do this? Relative paths don't seem like the answer here though...

View 5 Replies View Related

Fedora Servers :: Apache Says User Directory 'Not Found'

Feb 2, 2009

I have FC10 newly installed, and Apache is serving content from /var/www/ okay.

I'm trying to get Apache to serve web content from user's home directories. This is what I've tried with no success:

Uncommented 'UserDir public_htm' in /etc/httpd/conf/httpd.conf and commented out 'UserDir disabled'.

And...

Uncommented user directory section in /etc/httpd/conf/httpd.conf. It now reads as follows:
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#

[Code].....

I also tried setenforce 0 to temporarily disable SELinux until the next reboot. No luck. It doesn't appear to be an SELinux issue.

That's as far as the information available will take me. I still get URL 'Not Found' when I try to access http://192.168.0.2/~myusername/

setting up user home directory web access?

View 1 Replies View Related

Ubuntu Servers :: Setting Apache DocRoot To Folder In Home Directory

Jan 9, 2010

Vanilla install of Karmic (64 bit) - would like to change the Apache doc root to point to /home/sam/www as it's my web development machine. (Default install is working fine)
Created copy of 'default' to 'mylocal' in '/etc/apache2/sites-available'

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/sam/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/sam/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
...

The permissions on the folder in my home dir:
Code:
sam@rocket:~$ ls -la ww*
total 16
drwxrwxrwx 2 sam sam 4096 2010-01-09 22:26 .
drwx------ 35 sam sam 12288 2010-01-09 22:11 ..
-rwxrwxrwx 1 sam sam 100 2010-01-09 22:27 index.html
sam@rocket:~$ pwd
/home/sam
sam@rocket:~$
The sites enabled set up:

Code:
root@rocket:/etc/apache2# ls -la sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 2010-01-09 22:24 .
drwxr-xr-x 7 root root 4096 2009-12-20 00:22 ..
lrwxrwxrwx 1 root root 26 2010-01-09 22:24 mylocal -> ../sites-available/mylocal
But I still get:
"Forbidden
You don't have permission to access / on this server".

View 8 Replies View Related

Ubuntu Servers :: Directory Listing Missing File Icons For Apache

Sep 9, 2010

For some reason my directory listings are missing their icons for Apache on Ubuntu Server. An example: [URL]. They all come up not found.

View 6 Replies View Related

Ubuntu Servers :: Apache - Change The Permissions For A Directory And All Files Inside

Dec 12, 2010

I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.

View 1 Replies View Related

Fedora Servers :: Apache Binding To Active Directory - Use Web Shares?

Feb 9, 2009

Something that has been in the pipleline at work for a while is user-based web directories. Main PDCs are running Windows Server 2003 using Active Directory, ideally what would happen is that users have a web share under [URL].. - the server behind this would be Linux (either Fedora or CentOS).

What kind of configuration would be needed for Apache to make this possible? The way I have planned so far is to have the Linux box auth against the AD domain (possibly joined), with Apache setup to share local public_html folders. Not sure how I can get rid of the tilde from the start of the username, but it should be pretty easy.

View 1 Replies View Related

Fedora Servers :: User Directory Apache Results In 403 Errors?

Mar 14, 2009

I want to enable User Directories in Apache. So in httpd.conf I set:

Code:
<IfModule mod_userdir.c>
#UserDir enabled // commented out
UserDir public_html
</IfModule>
Directory /home/kees is listed has the following file permissions: drwx--x--x 32 kees kees
Directory /home/kees/public_html has the following file permissions: drwxr-xr-x 2 root root

Directory public_html has two files: index.html and index.php, both with file permissions: -rwxr-xr-x 1 root root If I now try to open http://myhost/~kees/index.html (or index.php) in my browser I get a 403 Forbidden error. If I look in my error log I see the following messages if I first try to open the index.html and then the index.php file:

[Code]...

View 4 Replies View Related

Ubuntu Servers :: Make Apache Show Symbolic Links In A Directory Listing?

Jul 17, 2011

I am trying to make my Apache server show symbolic links in a directory listing, but have so far been unsuccessful. In my latest attempt, I have placed the following code in .htaccess, in the directory with the symlinks that I want listing:

Code:
<Directory />
Options All
</Directory>
Im httpd-vhosts.conf, I have also placed the following code within the relative <VirtualHost></VirtualHost>:

View 5 Replies View Related

Fedora Servers :: Apache - Creating Symbolic Links To Movies Directory

Mar 6, 2009

I'm using FC10 and I want to create a symlink to my movies directory in my home folder:

This is what I did:
I created in
/var/www/html
ln -s /home/username/movies movies

Then in /etc/httpd/conf/httpd.conf
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<Directory "/home/username/movies">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>

Restart apache and then the test page is working.

The directory /home/username/movies has following permissions:
drwxrwxrwx 2 apache apache 4096 2009-03-05 23:43 movies
When trying to access my webpage at localhost/movies I get the 403 Forbidden Error.
Ok then, entering:
sudo -u apache ls /var/www/html
> movies
This works, sudo -u /var/www/html/movies returns the permission denied error.
As well sudo -u /home/username/movies
Is the user apache chrooted by default? SELinux is in permissive mode. What can I do?

View 4 Replies View Related

Fedora Servers :: F11 & Apache Permissions - Reading Files Out Of The Html Directory

Jun 12, 2009

With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?

View 1 Replies View Related

Debian :: No (File Does Not Exist) In Apache 2.4.10 Error Log

Sep 22, 2015

OS:Debian Jessie -- Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64 GNU/Linux

Apache version 2.4.10

IF i test the link http://localhost/123456789 , I can't find the message in /var/log/apache2/error.log

like : [Tue Sep 22 23:30:34 2015] [error] [client 192.168.10.177] File does not exist: /var/www/html/123456789

View 0 Replies View Related

Server :: Apache Document Not Exist Error

Jan 31, 2011

I am in the process of migrating my old server into new Linux new server. As part of the , apache configuraton is one of the process . i have installed http with yum. i added some test dir like /date/test underwhich i created one test.html. When i start apache , it says Starting httpd: Warning: DocumentRoot [/data/test] does not exist.i am not sure about it. I have directory exists. however it shows the error message.

View 3 Replies View Related

Ubuntu :: Copying Files To A Directory And Skip The Files That Already Exist In The Directory?

Jun 30, 2011

How would i go about copying files to a directory, yet skip the files that already exist in the directory, and also remove the files that are in the directory. For example:

Code:

$ls /dir1
img001.jpg
img002.jpg

[code]....

Now i would like to copy from dir1 to dir2, but the contents of dir2 would be:

Code:

$ls /dir2
img003.jpg

View 7 Replies View Related

Ubuntu :: Home Directory Does Not Exist?

Jul 17, 2011

My desktop just froze for some reason and I had to force shut down. When I logged back in I could not get into my /home/username directory, a message popped up that it does not appear to exist and if I would like to put it as root.

what should do to get it back?

View 1 Replies View Related

Ubuntu :: Check If Files Exist In Directory?

Jun 30, 2011

how to check two arguments whether it is a file and the other is a directory, check if files exist in directory and copy it if it is a newer version. Seriously i need idea to do tis, jst some simple sample wil do

View 3 Replies View Related

Ubuntu :: Unable To Login (home Directory Does Not Exist)

Nov 8, 2010

I just recently bought a second hand netbook (HP Mini Mi 110) from ebay which use linux ubuntu as OS. I changed the previous username to mine but when i tried to login again...this warning pop out "your home directory is listed as: '/home/mazlin' but it does not appear to exist. Do you want to log in with the /(root) directory as you home directory? It is unlikely anything will work unless you use a failsafe session" so i click yes. then...

user's $HOME/.drmc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. user's $HOME directory must be owned by user and not writable by other users. next i click OK, then... your session only lasted less than 10 seconds. if you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. try logging in with one of the failsafe sessions to see if you can fix this problem. when i click ok, the login screen reappear again... how to use failsafe sessions.

View 7 Replies View Related

General :: The Directory Would Not Exist Until 'mv' Has Been Called As In?

Jul 3, 2011

I want to copy a file from an old directory to a new directory and ideally I would like that the 'mv' command itself could create the directory for me in one step...That is to say that the directory would not exist until 'mv' has been called as in:Code:mv olddirectory/file.dat newdirectory/file.datso mv would create the directory 'newdirectory' in the above call....I am not sure if this is possible however, that is to say I think it may be necessary that the directory 'newdirectory' already exists before I make the above call to mv, as when I make try the above call when 'newdirectory' doesn't exist I get the following error:Quote:mv: cannot move `test1/4215/4215-001R.fit' to `test2/test.fit': No such file or directoryso to sum up, my question is:is there some paramater for 'mv' that I can change so that it will create the new directory as well as copy the file and if not, are there other commands that might do this?

View 3 Replies View Related

Ubuntu :: Archive Manager Create The Specified Directory If It Doesn't Exist?

Feb 16, 2010

Is it possible to have Archive Manager create the specified folder when I enter it into the path field? Like if I want to put something in "/Main/Sub1/Sub2" But "sub2" doesn't exist, can I just have Archive Manager create it and put the files there?

View 1 Replies View Related

Ubuntu :: Chmod: Cannot Access 'afk-kick' File Or Directory Not Exist?

Oct 22, 2010

here is the most importent part of the file setup.shhere link to pastebin:http://pastebin.com/mwQ1UArHand here the part:

cd
chmod 777 ../bin/panel
cd ../bin/panel

[code]....

View 2 Replies View Related

General :: Check If Directory DOES NOT Exist In BASH?

May 10, 2010

i tried to create a if else statements or either an else statement I get a message saying that the directory exists (mkdir: cannot create directory `./MAY2010': File exists I am running this in a crontab file and I dont want any output telling me that the directory exists. I just want to check if the directory doesnt exist, create one else do nothing (not even a message telling me that the directory exists).

[Code]....

View 8 Replies View Related

Software :: Directory Listing Of Files That Don't Exist?

Oct 16, 2010

I think as a result of a script that started duplicating files in a loop, the allotted capacity on my VPS filled up with multiple nested copies of the same files... After a reboot, I could delete most of them, but got rm stalled in certain directories...

after isolating which ones, I found this: a directory listing that lists the files, and at the same time tells me they are not there!!!

partial listing:

Code:
ls
ls: cannot access userkey.php: No such file or directory
ls: cannot access workshop.php: No such file or directory
ls: cannot access quiz.php: No such file or directory
ls: cannot access webservice_rest.php: No such file or directory

[Code]....

View 5 Replies View Related

Ubuntu :: Finding Folders - Extracting Files - Permission - Directory Does Not Exist

Aug 28, 2010

new to ubuntu and linux, and using Lucid 10.04 LTS ok, i'm trying to get XBMC going, and following a nice step by step instruction on wiki.xbmc.org, but now i'm stuck at this step... In Ubuntu the SVN Repositories are not automatically added. You must add them manually. First, download the SVN Repo Installer from: [URL] Extract it to the ~/.xbmc/plugins/programs directory. If this directory does not exist, run XBMC one time and then exit back to Ubuntu. The directory should now exist.

i ran xbmc once (after the video driver problem was solved, though it messed up my dual monitors, gotta figure that one out yet.) i got the zip file, it's in my downloads. now my newbness really shows... i can't find an 'extract' command for gnome, can't find the .xbmc directory using the file browser, can't figure out how to hunt for folders instead of files, and don't know how to look inside folders i don't have permission to, that is, i don't know if there's a 'sudo' like option for the file browser. i've been searching the forums, but without the correct search terms, i'm wading in an ocean. i really want to give ubuntu an honest try, but i feel like a foreigner. EDIT: btw, up to this point, the forums have been invaluable, you all are great.

View 2 Replies View Related

Networking :: ERROR: Lock Directory /var/run/samba Does Not Exist

Jan 20, 2010

When i try to share a folder from linux ubuntu desktop i am facing a problem a error reported are as follow:

loaded services file OK.
ERROR: lock directory /var/run/samba does not exist
ERROR: pid directory /var/run/samba does not exist

or i have no permission to open samba

View 1 Replies View Related







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