The apache web server.
2
votes
1answer
409 views
How do I get simple scripts which seem to need root priveliges to run via the www-data user?
I am programming a small webinterface to control samba on Debian (kernel 2.6.32-5-686). I started by writing simple scripts to add users, create folders, etc. They worked fine when run as root. ...
5
votes
2answers
2k views
How to avoid apache reload when rotating logs?
I use logrotate to rotate Apache access-, error- and rewrite-logs. My config file looks like this:
/apache/*log {
compress
dateext
rotate 365
size=+300M
olddir /log/old/apache
...
2
votes
2answers
249 views
Monitor bandwidth usage from different virtual hosts
I've got a VPS running Ubuntu and Apache and hosting several sites on it using virtual hosts. It would be very interesting to monitor which of these sites takes the most power and bandwidth, I've been ...
1
vote
0answers
127 views
apache2 gui / Comanche Replacement
I opened an OLD redhat book to the section about Apache configuration and it talked about the Comanche GUI. I thought "That's great! Why hasn't anyone suggested that before?" Then I found out that ...
0
votes
1answer
469 views
Ubuntu 10.04 LAMP Virtual Host seems to ignore active sites
I was going to delete this question, but I couldn't because it has been answered. I am abandoning this question because I am going to replace my desktop install with a server install. We'll see if ...
3
votes
2answers
3k views
Execute shell script from php, as root user?
Need to execute the following line from PHP:
$res = shell_exec('sudo sh /home/nicklas/cronjobs/make_account.sh
username password');
The problem is nothing happens on execution. If i try to ...
1
vote
1answer
97 views
Runtime User Privilege Management ColdFusion on CentOS cPanel
I'm needing to understand the correct workflow for managing permissions to allow the ColdFusion 9 runtime user {coldfusion} to have access to user accounts.
The germane elements ...
Centos 5.8
WHM ...
0
votes
0answers
129 views
DP: Apache Web Server character encoding [closed]
I'm double posting because I think U guyz may have a clue:
http://serverfault.com/questions/423663/apache-web-server-character-encoding
10x
1
vote
1answer
411 views
Apache not responding on port 80 after forwarding port?
I'm trying to set up a web server for my first time. I'm running Ubuntu 12.04.1 and i've installed LAMP. I have also set up a static IP for the server, 192.168.0.111 and reserved it in the router ...
2
votes
2answers
283 views
Scripting htdigest -c /path/to/file/$user $user $user in Bash
this is what I want to be able to script with a password in variable $pass.
htdigest -c /etc/apache2/pw/$user $user $user
At the moment it asks me to manually enter a password, this is not going to ...
0
votes
0answers
97 views
How do I setup a website with apache and mod_mono?
So, it seems everything is installed and working. I am using Linux Mint (Cinnamon/Maya).
I have Mono 2.10.8.1 (mono -V).
I'm totally new to apache. I have the fuzzy idea that there's some sort of ...
1
vote
2answers
413 views
How to install mod_mono on Linux Mint?
I'm a linux newbie trying to install mod_mono on Linux Mint Maya/Cinnamon.
I can't seem to find any tutorials or anything on how to do this.
So far, XSP and MonoDevelop seem to be working. I created ...
3
votes
1answer
352 views
How to configure permissions to allow apache to securely have access to a file in a shared environment?
This is a follow up question from my previous, but I felt it might be more Linux based.
http://serverfault.com/questions/414207/how-to-set-linux-permissions-to-allow-apache-to-have-access-to-a-file
...
4
votes
1answer
753 views
Bash, remove lines containing string with grep
This is currently deleting the whole contents of the file in question:
#!/bin/bash
rpc_port="9201";
dir="/etc/apache2/ports.conf"
cat $dir | grep -v "Listen $rpc_port" > $dir
The file contents:
...
1
vote
2answers
157 views
apache, tomcat context path
I have Tomcat and Apache installed in CentOS 5.
They're integrated with a help of mod_jk.so.
They both display the same in http://www.tource.com/cms/admin and http://www.tource.com:8080/cms/admin
...
3
votes
0answers
134 views
Traffic getting routed through Apache
for some reason, certain outgoing traffic on my server gets routed to the apache webserver i am running. this problem just started happening. i have the webserver set up to use vhosts, the webserver ...
1
vote
2answers
625 views
RewriteRule to cause subdomain to load another DocumentRoot?
I could sure use a little help with what I am trying to do with a RewriteRule in .htaccess:
...to causes URLs using our sharpedge. subdomain to auto-load from the Internet_IE directory - one level ...
1
vote
1answer
699 views
conditional DirectoryIndex based on IP address, using .htaccess
I've got this in httpd.conf:
<VirtualHost xx.xxx.xx.xxx>
Options All +ExecCGI
ServerAdmin hostmaster@thehost.com
DocumentRoot /var/www/html/domain.com
ServerName dl.domain.org
...
0
votes
5answers
4k views
Problems setting up web server in CentOS
I want to set up a web server on one of my computers (Dell Desktop) and decided on CentOS as the OS. Apache is installed properly (I think. pgrep httpd returns a bunch of processes that are running). ...
1
vote
1answer
305 views
Permisions overwritten when files are transfered via FTP. What to do?
Got my web server up and running using apache2 with the ability to ftp to /var/www folder. However, if I make an update to .html and copied over the file via ftp, the file's permisions become more ...
2
votes
1answer
167 views
How to block ip adresses which access more than n-pages in m-prediod of time?
How to block ip adresses which access more than n-pages in m-prediod of time?
I want to blovk all auto-traffic and I am not sure how to approach this issue.
3
votes
1answer
105 views
How to redirect traffic from subdomain to main domain
I have a demo.domain.com and domain.com
they both show the same information and point to the same folder.
How can I redirect all demo.domain.com visitors to domain.com?
1
vote
2answers
1k views
Cannot Compile Apache: “Error, SSL/TLS libraries were missing or unusable”
Arch Linux 2011.08.19 (Linux 3.4.2 i686)
Apache 2.2.22 → 2.2.22 (recompile & reinstall)
OpenSSL 1.0.1.c-1
These details are likely irrelevant, but: I’m using yaourt with customizepkg to build ...
2
votes
0answers
232 views
Can /mnt/hgfs/'shared folder' be used as apache root?
I have an Ubuntu Server (12.04) running on my development machine. It is in a VM. I have succeeded with the task of setting up Apache2, MySQL, and PHP. I can access the server from my host browser ...
2
votes
1answer
77 views
How to make a module dynamically loadable on Debian?
I'm applying an API from maxmind. They require additional an module for Apache. Now they recommend the command:
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
...
1
vote
0answers
264 views
Permission issues while setting up cakephp
I am pretty new to linux and trying to setup cakephp on opensuse 12.1.
I did as told on the cakephp website(blog tutorial) and most probably encountering some permission issues.
I slapped the cakephp ...
-1
votes
4answers
352 views
Arch Linux: Yaourt/Makepkg Can Not Build Apache
I am using yaourt to automatically compile Apache from source every time there’s an update available from extra. I am doing this so that I can have a custom suexec docroot (/srv/www rather than the ...
0
votes
1answer
1k views
Giving apache user same permissions as root only on specific folders
Not sure if this is possible but is there a way to grant the Apache user same level of permissions (ownership) as root only on specific folder(s).
Why I need this:
We have a CentOS 6.2 server with ...
1
vote
2answers
368 views
How to make apr available for subversion install?
I try to install subversion from source, but on ./configure receive:
configure: error: no suitable apr found
I have download apr source and installed:
libraries have been installed in:
...
2
votes
1answer
285 views
Moin underlay permissions
I am running moinmoin on Debian squeeze... this is a wiki I migrated from an old Debian Lenny machine whose power supply died a couple of years ago. I copied /opt/mydebianwiki to the new server and ...
1
vote
2answers
458 views
How can I get crontab to use a different PHP installation location?
I have a MAMP setup which runs PHP 5.3.5 on my Mac OS X 10.5 computer. I am trying to install a crontab that executes a PHP script, which is located on my MAMP server. I can only get the crontab to ...
4
votes
2answers
429 views
apache and php Segmentation fault [closed]
I have recently migrated to Archlinux. I installed Apache, php and mysql according to the Arch Linux LAMP wiki page.
Now I have setup a virtual host for my new Symfony project.
For every request I ...
2
votes
2answers
2k views
Find web server group? Permissions problem
I'm trying to make Wordpress work. I currently have this error message:
Could not create directory.
/var/www/html/wp-content/upgrade/theme_name
when trying to upload a theme. This is the ...
3
votes
1answer
80 views
Where to securely place files needed by PHP in Linux filesystem (according to FHS)
I have a PHP script running on my LAMP server that requires certain files in order to produce HTML content. The script is publicly accessible (i.e. http://example.com/script.php) but the files ...
0
votes
0answers
365 views
gitweb.cgi: “Premature end of script headers: gitweb.cgi”
I'm running LAMP on Arch and now want the gitweb going on apache. Followed the instructions as in https://wiki.archlinux.org/index.php/Gitweb but on the gitweb directory (here ...
-4
votes
1answer
331 views
Changing IP address of Apache server using PHP statically
I want to statically assign the IP address of my Arch linux using php. I want to change the IP by using netmask,interface,broadcast,address & gateway. The user puts up the values into a html page. ...
1
vote
1answer
385 views
How does apache determine what directory to show from public_html?
I am using Ubuntu 12.04 and have configured apache to serve from ~/public_html. I am trying to serve some directory contents over http on LAN.
When I did the following:
ln -s ...
2
votes
1answer
131 views
What is the purpose of Apache2's configuration files?
Why does Apache2 have multiple configuration files? What are their roles? I found some information about older Apache versions, but it's usually deprecated, and the official Apache documentation ...
0
votes
0answers
365 views
Password protect my website on Centos + Kloxo [closed]
I have Centos 5.6 deployed along with Kloxo. Now I want to password protect my website. It means user has to provide uid/pwd to login (like this: ...
1
vote
5answers
537 views
Start/stop program from website
I have some users on my machine that I allow to run small Mumble voice servers. I would like for them to be able to start/stop their voice server from a website (being ran by Apache). With the current ...
1
vote
1answer
90 views
IPv6 address changed after upgrade. Why? and how can I harden my .htaccess against this?
I noticed in my local webserver logs that the IPv6 address of my desktop changed after upgrading to Kubuntu 12.04.
inet6 addr: ...
3
votes
1answer
1k views
How do I install mod_pagespeed using apt-get?
I remember seeing an article at one time on how to do this, but now I can't find it. I have seen other install directions. I want to make sure I can easily update it via apt.
6
votes
1answer
953 views
Throttling web crawlers
My website is being DoS'ed by Google webspiders. Google is welcome to index my site, but sometimes it is querying a tagcloud on my site faster than my webserver can produce the results, making my ...
3
votes
2answers
235 views
How to set secure permissions for multiple users and multiple websites?
On a Gentoo 3.2.12 server with apache2+php, there are several websites running:
/www
/website1
/website2
...etc
The apache user should have read-only access to all the websites. There ...
1
vote
2answers
353 views
How to restart mono web application without restarting apache?
Is there any way to restart ONE web application in mono without having to restart Apache?
Currently i'm doing a sudo service apache2 restart everytime I deploy my .NET web application to mono. But it ...
3
votes
2answers
545 views
Sync with a Directory Listing of An Apache Server
Is there an easy way to keep a folder synced with a directory listing via HTTP?
Edit:
Thanks for the tip with wget! I created a shell script and added it as a cron job:
remote_dirs=( ...
4
votes
2answers
11k views
How to configure SSL in apache?
I have installed apache in RHEL 6. Everything is working fine. What all changes and configurations should be done to use
https://localhost:443/.
If I change the "Listen 80" to 443 it is throwing an ...
1
vote
3answers
213 views
Is there a way to find out which webpages are being accessed by clients on a UNIX webserver?
My web server is running CentOS and every time a certain page is accessed on my forum, httpd locks up and I can never seem to pinpoint the exact file.
Is there any way to view the pages that ...
2
votes
1answer
175 views
Remove a directory level from a website URL
Can anyone tell me how to configure apache to not display a website folder name at the end of a base URL, please? - but only for one out of many websites.
Let me describe the scenario ...
I have a ...
1
vote
1answer
229 views
listen to two IPs for hosting 2 websites with SSL
At my work I had been working on one web application with apche on opensuse listening to one IP, lets say 123.123.123.200.
Now we are adding to differet web application to same machine. both have ...