Debian Configuration :: Apache Is Working - Can't Read Php Files

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


ADVERTISEMENT

Debian Configuration :: Apache Log Files

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

Debian Configuration :: Apache Working But No Outside Access / Sort It?

May 23, 2011

Having some memory loss i think (in my head not my pc). I have set up apache before , then changed to dsl in the last week and cant seem to get this new modem/router to work. i can get the loopback address to work, as well as the network ip. can NOT get my other machines to hit the server on the network .
also no connection from outside the network from port 80. my modem is a motorola (att) ,apache2 on my toshiba laptop, amd x2, 3gigs ram.

View 9 Replies View Related

Debian Configuration :: Apache - Permission Denied On Files Uploaded Ftp?

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

Debian Configuration :: Amavisd-new + Spamassassin: *.cf Files Not Working?

Apr 28, 2011

I configured a mail server using Squeeze's latest packages with Posfix + Amavisd-new + Clamav + Spamassassin, but apparently the latter is not using the system configuration files, and I cannot figure out why.Running amavis in debug mode I get the following:

# /etc/init.d/amavis debug
Trying to run amavisd-new in debug mode...
Apr 28 16:01:08.291 [1427]: starting. /usr/sbin/amavisd-new at *******************

[code]....

View 1 Replies View Related

Fedora Servers :: Cannot Start Apache - No Read / Write Access To HTTP Files

Jan 14, 2009

I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:

Code:
Summary:
SELinux prevented httpd reading and writing access to http files.

Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.

Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"

Fix Command:
setsebool -P httpd_unified=1

I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>

<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.

View 10 Replies View Related

General :: Read Alternate Gnome Configuration Files?

Oct 4, 2010

I have a number of versions of gnome installed on a number of different hosts. All users have network mounted home directories. In some cases gnome works poorly when reading configuration from the .gnome2 directory. I would like to read config files from version specific directories. Is there any way to specify this when starting gnome? Environment variables perhaps? I know how to move the .gconf directories but this is not sufficient. I need to read the .gnome2 from a different path.

View 1 Replies View Related

Debian Configuration :: Strange - Running Php5 On Debian Lenny And Apache?

Jan 18, 2010

i do have a strange problem get running php5 on lenny 64 inside apache2. i had installed it as all instructions on the web does: # apt-get install php5 libapache2-mod-php5 php5-cli php5-common php5-cgi

apt has enabled php automatically, so
/etc/apache2/mods-enabled/php5.conf does have inside:
<ifmodule mod_php5.c>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</ifmodule>

[Code]...

View 3 Replies View Related

Debian Configuration :: USB Vfat Goes Read-only

Nov 20, 2015

Debian 8.2 .... Desktop is lxde BTW. It auto-mounts the drive, and sometimes it's writeable for a while, but then it all goes read-only out of the blue. su doesn't work. I tried installing autofs and it doesn't mount at all.

/var/log/messages:

Nov 20 11:05:37 debian kernel: [589471.166033] scsi31 : usb-storage 1-3:1.0
Nov 20 11:05:37 debian mtp-probe: checking bus 1, device 41: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3"
Nov 20 11:05:37 debian mtp-probe: bus: 1, device: 41 was not an MTP device
Nov 20 11:05:40 debian kernel: [589474.217399] scsi 31:0:0:0: Direct-Access PNY USB 2.0 FD 8192 PQ: 0 ANSI: 0 CCS

[Code] ....

syslog looks much the same.

I'm not an lxde fan. The file manager always was crashy. But I'm on an Acer Aspire, and too many desktop managers just can't deal with the screen ratio.

View 2 Replies View Related

Debian Configuration :: Apache Authentication On 5.0.6?

Oct 8, 2010

I just installed a net-install of debian 5.0.6. with no GUI and Apache http d. Does anyone know where I can find or how to do a basic Authentication on my web server (user-name and password) I found some stuff but they include .HTpass (of Apache) etc etc, but I can't find them anywhere

View 1 Replies View Related

Debian Configuration :: Mount USB But Can't Write / Only Read

Oct 11, 2015

When I plug in a usb flash drive, my Debian mount it, but when i am going to write, mkdir, rename file or paste a file permission denied.

The result of Code: Select alldev/sdc1 /media/usb0 auto rw,user,noauto 0 0

is Access denied

View 14 Replies View Related

Debian :: Windows Compatible Apache Configuration

Aug 6, 2015

Since a few month, I upgraded my configuration to an Acer Aspire E 17 laptop. I dropped the Windows 8 that was installed inside by default. Right now my hard disk looks like that :

- A Windows 10 Installation form the final released version's iso
- A Debian 8.1 Installation with Gnome 3.x as desktop

As I am a developper, I enjoy Debian, the power, and the capabilities unlocked with Linux systems. However, I still need my Windows installation for design work, making templates, etc. For now, I need to boot Debian if I want to code, and to boot Windows if I want to use some proprietary programs such as Adobe's softwares. For a lot of reasons I can explain, I don't want to use alternative like Gimp, and I don't want to run so big softwares under Wine.

So, I want to do the following : I want to create a little partition formatted in ext4 on my disk (something like 10gb ?) and make this partition running my local configuration of Apache 2. This way, I could run my webserver, with the same files both on Debian (when I need to code) and Windows (when I need to design / template and to test some stuffs into my templates files). I could mount this partition under Windows using ext2fsd program, but this way of thinking supposes there is both Apache's linux binaries and Apache's windows binaries to run and manage the server in this partition (making something like a " portable " version ?) .

View 4 Replies View Related

Debian Configuration :: Proxying Plone Behind The Apache?

Mar 3, 2011

I haven't used Plone in quite a while and am having problems getting Apache to serve it up now. I'm using the same configuration that I used for proxying Plone sites for a couple of years, but now that same configuration now gives me the following error in Apache's error log: [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.Here's the proxy modules I'm loading for troubleshooting purposes for now.

apache2ctl -t -D DUMP_MODULES | grep proxy
Syntax OK
proxy_module (shared)
proxy_ajp_module (shared)

[code]....

I've Googled this extensively and it seems most people who ran into this problem hadn't loaded the proxy_http module after upgrading to Apache 2.2 from 2.0.

Edit: BTW, I'm using Plone 4.0.3 now. I was running Plone 2.5 before. I don't see why that would be a problem though as VHM's are now built into Zope.

View 1 Replies View Related

Debian Configuration :: Migrate From Apache To Nginx

Mar 29, 2011

'm using Debian 6 (Squeeze) and I'm trying to migrate away from Apache to Nginx, but my Nginx installation seems to be showing some weird behavior.

aptitude install nginx-extras

/etc/init.d/apache2 STOP
/etc/init.d/nginx START

the configuration file /etc/nginx/global.conf syntax is ok [alert]: mmap(MAP_ANON|MAP_SHARED, 33554432) failed (28: No space left on device)
configuration file /etc/nginx/global.conf test failed

View 7 Replies View Related

Server :: Sub Domain Configuration In Apache ( On Debian )?

Sep 30, 2010

i have several sites hosted on one machine (Apache 2.2 on Debian). They are configured at /etc/apache2/sites-available/ with this configuration (part of it):

RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 [C]
RewriteRule ^(([^./]+.)?site1.com)/(.*) /www/site1.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site2.com)/(.*) /www/site2.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site3.com)/(.*) /www/site3.com/www/root/$3 [L]
RewriteRule ^(([^./]+.)?site4.com)/(.*) /www/site4.com/www/root/$3 [L]

[Code]...

View 1 Replies View Related

Debian Configuration :: Open Read And Close USB Medium

Nov 2, 2015

Where is now, in new Debian systems, the internal text file where the

adequate medium (live systems recognize a medium /dev/sdb1 if I connect my phone tablet)

has to be present if used?

Is a special procedure to be use to mount, open, read, close and unmount them properly?

View 1 Replies View Related

Debian Configuration :: Apache Virtual Hosts And Ssl - Not Yet Supported

Mar 4, 2010

I'm having trouble implementing SSL on a AvantFax login screen. I've created the the certificates and keys and have them stored in /etc/apache2/ssl and I'm sort of stuck now. I've been following a guide but any changes to the conf files leads to errors. The system I'm using is Debian 5.0

[Code]...

View 2 Replies View Related

Debian Configuration :: Apache - Host-header From Requests Are Ignored

Oct 16, 2010

my server into the public internet and must have my webserver [2.2.9 (Debian)] act secure. But this does not look very easy [I am searching, reading and working on it already the whole day ]. I read the apache docs, but there is a lot of stuff, which is different in Debian [lenny, 5.0.6]. Apache ignores the host-header given by the browser: [URL] are all served, but should be blocked. I new new to apachy, but on my IIS this works as expected. All browsers act equal [so no browser header problem].I configured two VirtualHosts, an excerpt:

NameVirtualHost hugo:80
<VirtualHost hugo:80>
DocumentRoot /usr/share/doc

[code]....

The I go to my hosts file on any box, and add hugo's ip-address under the new name x. Then, x is served, although the host-header in apache Every user coming from the internet could make the same!

View 13 Replies View Related

Debian Configuration :: Awstats Access To Apache Logs?

Mar 10, 2011

In a squeeze box, I installed awstats and it's working like a charm. Its cron job update the awstats database every 10 minutes (as it runs as root). But I would like to be able to update the statistics from the browser as well. So I setup everything as required and I gave "read" access to "others" to every apache log file. Now, a couple of questions came to my mind:

1. Am I compromising server's security giving "read" access to "others" to apache log files?

2. Instead of giving "read" access to "others", I could add www-data user to adm group (as apache log files are owned by root:adm and permissions are rw-r----). Is this more secure than giving "read" access to "others"? 3. If the option would be giving "read" access to "others" at the end, a log file would be owned by root:adm and its permissions be rw-r--r--. As apache rotates its log files, when Apache create a new log file, does it preserve the permissions (rw-r--r--) or create it with the default permissions (rw-r-----)?

View 1 Replies View Related

Debian Configuration :: Apache - Setting Up Squeeze Test Box

Jul 16, 2011

Setting up my Squeeze test box, I can't seem to get APache2 to find index.html. It keeps coming up with the initial "It works!" page.

On my Squeeze server, the /etc/apache2/httpd.conf file contains this line:
DocumentRoot /home/www_local
and that box serves the website perfectly.

On the test box, I created the /home/www_local directory and put an index.html file in it, then populated /etc/apache2/httpd.conf with exactly the same DocumentRoot line and restarted Apache. Still the same result -- Apache isn't finding my index.html file. I have grep'ed all the files in /etc/apache2 and /etc/apache2/conf.d looking for 'DocumentRoot' and it's not in any of them.

View 2 Replies View Related

Debian Configuration :: Accessing Wwwroot Content From Apache Server ?

Mar 15, 2011

I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.

View 14 Replies View Related

Debian Configuration :: Get The Windows One Working Again - Grub Configuration

Oct 3, 2010

I was trying to get the Windows one working again. Here's what fdisk -l reads:

[Code]...

I'll change these or do some grub configurations, if anyone knows what ones can work.

View 1 Replies View Related

Debian Configuration :: Windows 7 Won't Read NTFS Partition Created By Raspberry Pi

Jan 10, 2016

I have a Western Digital 3TB USB drive connected to a Raspberry Pi 2 running Raspbian Jessie. I created an 30GB ext4 system partition and a NTFS Data partition using the remainder of the drive. I formatted the NTFS partition as follows:

sudo mkfs.ntfs -Q -L Data /dev/sda2

The drive works fine on the Pi but when I connect it to a Windows 7 pc the pc doesn't recognise the format of the Data partition and can't access it.

On the Pi I ran:
$ sudo fdisk -l /dev/sda2

Disk /dev/sda2: 2.7 TiB, 2968557453312 bytes, 724745472 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

[Code] .....

Partition table entries are not in disk order.

View 14 Replies View Related

Debian Configuration :: Systemd Can't Read Boot Logs Of Failed Boots

Mar 25, 2016

I'm getting BSOD when I'm booting my main system (debian 8 fully updated). I get a BSOD with a _ sign. URL...because I can't access to failed boots files. Besides having the files

Code: Select allfelipe@debian ~ % ls /var/log/journal   
362d07f9e18b45f8aec4575c347f181d  92e8a448f7a348719da129184a7e6821

Code: Select allfelipe@debian ~ % journalctl --list-boots
 0 0c51ae5b67f144059c5470dbe345d621 vie 2016-03-25 09:05:29 ART—vie 2016-03-25 09:11:58 ART

View 3 Replies View Related

Debian Configuration :: Start X Server In A Read Only Root File System?

Apr 27, 2010

For my project, it's absolutely necessary to have a read-only root partition system. I have a writable /opt/project partition.But, I also need to start x server. startx This tries to write to some temporary files and fails as / is readonly. Is there any how-to on how to move this temporary files to the writable portions of the file system.

View 3 Replies View Related

Debian Configuration :: Apache Directory Alias Leaking Into Virtual Hosts

Sep 14, 2015

I don't know if this should be a followup to my prior topic [URL] ....

Each of the pieces I've installed all have an "Alias" directive in the conf file to link the directory where they live to be present on my server. For instance, DotClear lives in /usr/share/dotclear/web/ and there is a directive

Code: Select allAlias /dotclear /usr/share/dotclear/web
that directs http://myserver/dotclear to that site.

Now, I've set up VirtualHost entries for my DotClear and Owncloud with their own hostnames.

Code: Select all<VirtualHost *:443>
   ServerName          myowndotclear.com
   ServerAlias         www.myowndotclear.com
   DocumentRoot        /usr/share/dotclear/web

[Code] ....

Something similar for Owncloud.

The problem is when I go to [URL] ...., I get to my mythweb site.

This is not so good. So, for the sites that have their own hostnames, I removed the "Alias ..." directive. Of course, now I can't get to the hosts by going to the primary site which is probably fine, but I also still get my mythweb since that doesn't have it's own virtualhost entry.

This doesn't seem like correct behavior. Is there a better place to put the "Alias ..." directive so that it only works from one site and not all of them?

I am also thinking I should just link the directories into /var/www/html, but I'm not sure that's a better solution.

View 2 Replies View Related

Debian Configuration :: Both HTTP And HTTPS On Same Server? (Apache Virtual Hosts)

Oct 30, 2015

How to best manage both http and https pages on the same apache-server without conflicts. For example, if i have both 000-default.conf and 000-default-ssl.conf pointing to mydomain.com, and don't want users who visit mydomain.com without specifically type the https-prefix to be redirected to the https-page - how to handle users using browserplugins such as https-everywhere etc?

Another option would be to create a subdomain ssl.mudomain.com and have users who want to reach the ssl site to have to type ssl. I have tested several things with https everywhere enabled in my own browser, and it seems really hard to make this working the way i want, in one way or another i always end up getting redirected to the ssl-site automatically.

The reason i need this to work is because i run one site that i don't care much about SSL, that is the "official" part of that site, and i also host some things for friends and family on the SSL-part. This would not have been a problem if it wasn't that i use self-signed certificates for my ssl-site and the major user become afraid when a certificate-warning pops up in their browser and therefor leave the site.

View 2 Replies View Related

Debian Configuration :: Apache Reverse Proxy - No Support For Common Database

Apr 14, 2010

I installed apache2 and mysql database on a Debian system. It is using reverse proxy on apache to redirect requests to apache2 running on any machine which is on Xen server as a Virtual host. I tried to install Drupal on it. Every thing went fine till I pointed my browser to:
http://IP[/url] of LAN where Drupal was installed/drupal
then I see an installation page of Drupal which welcomes me. I click install in English then it can not proceed to connect with database. Database configuration: Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that Drupal supports.

I have created a database and username for Drupal separately. What should I check to. There is one more error
http://Public IP/some location/
Is showing me contents of Document Root but there is a folder named drupal on it. When I click on it I get error. Not Found. The requested URL /drupal/ was not found on this server. Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch proxy_html/3.0.0 Server at

What things should I check in for? I am also getting errors like:
- Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName on individual DomU's what should I check in. and on Dom0 when restarting apache2 I get following error.
- Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Wed Apr 14 15:23:05 2010] [warn] NameVirtualHost *:80 has no VirtualHosts

View 1 Replies View Related

Debian Configuration :: Apache - Cannot Access Webserver From Home It's Available Only Within Local Network

Aug 21, 2010

I have installed apache php and mysql on my pc during debian installation... some of my friends complain they cannot access my webserver from their home and it's available only within my local network... Please help regarding this...

View 6 Replies View Related

Debian Configuration :: Apache Config - Restrict The Access To Local Web Server By IP Address?

Jul 29, 2010

I want to restrict the access to my local web server by IP address. Im in a LAN (192.168.200.xx) so i have this:

[code]....

But when i try to connect from 192.168.200.4 it says i don't have permission to access

View 1 Replies View Related







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