The apache web server.
0
votes
1answer
611 views
How to easily maintain the latest versions of Apache/ MySQL/ PHP on CentOS 6.2?
We have a few servers running CentOS 6.2 deploying web applications using Apache/ MySQL/ PHP.
In the past we've just regularly run "yum update" to keep all the software up to date.
As of right now ...
1
vote
1answer
980 views
Ubuntu Server - Access webserver from other LAN computer, setting up SSH or FTP, closing ports?
I'm running Ubuntu 11.10 x64 Server, with apache2 installed.
The setup is pretty much default configuration.
I have a few questions about;
DocumentRoot/Static IP/Connect from LAN/SSH or ...
2
votes
1answer
108 views
How do I stop Apache from running as root?
New on the job, small place, and the security stuff just landed on my desk. I was hired to be a front-end developer. Happy to learn new things, but never had to do sysadmin stuff before.
I started ...
1
vote
1answer
921 views
Apache cannot fork: cannot allocate memory
I am running apache on Fedora with mod_perl. The server forks a process to send an email frequently - and the fork exits.
Suddenly, I got: Cannot fork: Cannot allocate memory. There was plenty of ...
0
votes
1answer
551 views
How can I Forward a subDomain to a specific port?
My apologies if this has been asked before. I haven't found an adequate solution so... yeah.
When a specific domain, "example.com" is accessed, I want it to act normally. In other words, it should go ...
0
votes
1answer
151 views
What causes localhost 404 requests to go to http://origin.domain.com [closed]
I've been running Apache on my local computer for years. Suddenly, any request to a local page that is not found, is redirected to http://origin.domain.com/. What could cause this?
Just to be clear, ...
1
vote
1answer
848 views
Why don't I see the XAMPP page on Linux Mint?
I am trying to install PHP MySQL on Mint 12. I downloaded and installed XAMPP. According to the tutorial, when I go to localhost in a browser I should see this:
Instead, I see:
It works!
This is ...
2
votes
1answer
3k views
apache2 Invalid command 'SSLEngine'
Running: CentOS6 x64
When I restart httpd, I get the following error. What am I missing?
[root@localhost ~]# service httpd restart
Stopping httpd: [ OK ...
2
votes
1answer
271 views
Enable .Net 4 Mono on OpenSuse
I have an OpenSuse Linux server and want to run an ASP.net web project. I have installed the apache2 module mod-mono, but when I try to access the ASP web pages it looks as if it is attempting to use ...
4
votes
1answer
101 views
If I'm logged in as root, how do I restart mysql or apache with options?
I know the commands to restart/stop/start, but when I try to pass options it doesn't seem to work!
CENTOS 6, MySQL 5.14
service mysql restart
service httpd restart
Then I tried this:
...
1
vote
1answer
1k views
Port Mirroring using iptables - copy all traffic among nginx on :80 and apache on :8080
I have nginx running on port 80 and apache running on port 8080
I want to transfer all the traffic to both nginx and apache asynchronously i.e the performance of one server wont be dependent on the ...
5
votes
1answer
199 views
Unkillable apache2 processes
After upgrading from debian lenny to squeeze (apache2 2.2.16-6+squeeze4 and php 5.3.10-1~dotdeb.1), my apache processes started to exit with segmentation fault. It happens every 5-30 minutes (for 1 ...
3
votes
2answers
13k views
What user should apache and PHP be running as? What permissions should /var/www files have?
I just spun up an Ubuntu 11.10 box and then ran apt-get install apache2 php5 to install apache2 and PHP 5 on the box. Now it is functioning as a "web server" and it loads the "It Works!" page. Now I'm ...
5
votes
3answers
2k views
How do I create web pages in my home directory and have the web server serve them in my web browser?
I have recently installed the Apache web browser in my Debian Squeeze (using command tasksel and selecting [ ] Web server). Now I get it to start via sudo /etc/init.d/apache2 start and then I go to my ...
1
vote
2answers
181 views
Apache server doesn't start when mod_sm.so is loaded
I have an Apache 1.3 on a Sun machine (SunOS 5.10 Generic_138888-01 sun4u sparc SUNW,Sun-Fire-15000). If I keep the following two lines in httpd.conf, the server will not start:
LoadModule sm_module ...
2
votes
1answer
82 views
Restrict local website to selected users
Suppose I have two local websites under /var/www/mysite1 and /var/www/mysite2 via apache I can access them via localhost/mysite1 and localhost/mysite2.
The pages are for local use only and I have ...
1
vote
2answers
247 views
How to “get” a HTTPS website running?
I have a website serving several pages that can be reachable via HTTP.
How can I make these sites available via standard HTTPS? (not self-signed). What are the steps? (go to a CA, and then?)
Can ...
-2
votes
1answer
200 views
How to find the htpasswd file created for SVN over Apache?
I setup subversion with remote access over apache. I created an htpasswd file for it, but now I've forgotten the filename and path. How can I find it?
0
votes
1answer
312 views
How to redirect user to Android Market in Apache?
On my website I should redirect Android users to my application on Android Market.
What is the optimal way to do this?
My first idea was
RewriteCond %{HTTP_USER_AGENT} Android [NC]
...
0
votes
2answers
465 views
Setting up Apache 2 Local Development Environment & Permissions
I frequently find myself encountering problems (usually permissions) when trying to setup a local development server. Or creating a new site (alias).
Very common problem is I need to allow www-data ...
0
votes
0answers
248 views
suphp directory not owned by user
I have an odd problem with suphp.
I have logged in as tom and added some php to a directory in my web server.
Now I'm getting this error:
Directory /home/.../web/public_html is not owned by tom
I ...
0
votes
0answers
214 views
apache ldap authentication taking far too long
I configured apache2.2 (CentOS 5.6) to provide ldap authentication with Active Directory.
<Directory "/var/www/html">
AuthType Basic
AuthName "Authenticate with domain ...
1
vote
3answers
2k views
Why is apache2 showing up a defunct in the process list?
When I run top I see one line that doesn't look too good:
2475 www-data 20 0 0 0 0 Z 1 0.0 0:00.19 apache2 <defunct>
Why is this process <defunct> and what should I ...
1
vote
1answer
158 views
How to rewrite all subdomains except one
Right now my rewrite rule forwards all subdomains except chat.auricle.fm to the root:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*\.auricle\.fm [NC]
RewriteRule ^(.*)$ http://auricle.fm/$1 [L,R=301]
...
2
votes
4answers
225 views
Creating a public document directory for a normal user
We usually see personal web pages like http://a-site.com/~someone/, in this case, "someone" is a user of "a-site". How to enable this by default, so whenever we add a new user "foo", then ...
0
votes
2answers
896 views
Can't access Apache log folder
I want to see apache log file. This is what I tried:
I granted most all permissions to apache2 folder.
hieund@hieund:/var/log$ sudo chmod a+rw apache2/*
But I can't cd to it. So I add my user to ...
1
vote
1answer
585 views
How to use localhost in browser instead of localhost:10088?
Installed zend-server CE.
I would like to use this port (10088).
But anytime I enter localhost I should enter localhost:10088, because localhost doesn't work.
In the hosts file I tried to enter ...
2
votes
1answer
549 views
New files and folders created, automatically inherit same permissions as parent folder
Does it exist?
I create a folder with, let's say, all permissions set, and some services (i.e. Apache web server) create subfolders and put files there (uploaded media files from website users). Such ...
0
votes
1answer
130 views
Apache redirecting when it shouldn't
I have inherited a LAMP server with a lot of customization.
I want to enable mod_status in apache to get some monitoring of apache started. Problem is, with mod_status enabled in the httpd.conf, I am ...
2
votes
1answer
143 views
Wikilink to a symbolic link in ikiwiki
I am running an ikiwiki for my personal use on my laptop via apache2 (os: ubuntu 10.04).
If I want to make a link to a local pdf-file I put the file into my scrdir and use the usual wikilink syntax. ...
1
vote
3answers
1k views
Troubles installing php with MySQL support
So I wasn't sure if this question would go best here or on Overflow or Server Fault, but decided to try here first. I'm installing LAMP on a VPS, and am running into issues configuring and building ...
2
votes
1answer
259 views
How can I monitor the load of a php script on a server?
We've got a website on our dedicated server which seems to be causing problems.
Recently it has been crashing our dedicated server - it's very annoying. It will crash at random times. The tech ...
2
votes
1answer
228 views
Creating a local in-house testing web server
What we are trying to achieve is to have an in house Linux-based (probably Ubuntu) web server which we can test on before pushing to our remote dedicated hosting server.
The problem we are going to ...
3
votes
3answers
2k views
How to configure permissions to allow gedit, apache, and an IDE play together?
I'm using plain Ubuntu Desktop 11.04 and installed my lamp stack using lamp-server. I am trying to use Netbeans as my IDE.
Currently, all virtual hosts are being run from /var/www/vhostname -- but as ...
2
votes
2answers
736 views
Virtual hosting a tomcat webapp in Apache on RHEL 5.0
I am in a hosting fix! I have developed a web app for my organisation that allows sharing, interacting, etc. I want to DEPLOY IT ON LAN. BUT...
I don't want the end user to type: ...
1
vote
2answers
390 views
nagios w/o apache?
I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and ...
3
votes
3answers
9k views
“Symbolic link not allowed or link target not accessible” / Apache on CentOS 6
I've got a brand new CentOS 6 installation, which has a symlink in the document root to my development files:
[root@localhost html]# ls -l
total 4
-rwxrwxrwx. 1 root root 0 Sep 18 20:16 index.html
...
2
votes
1answer
536 views
Getting PHP fatal errors in vTiger while logging from a normal users [closed]
I am getting the error below and notices in Apache logs when I am trying to login with any normal user on vTiger although admin user is working fine and able to see everything as expected.
Below are ...
1
vote
1answer
195 views
can't open transfered website from old DS to new DS
I have 2 dedicated servers both running CentOS 5.3/Plesk 10. I've transfered a website (domain) from old server to a new one via Plesk migration manager and the website (domain) shows in the domain ...
5
votes
2answers
3k views
Localhost .htaccess not working on Ubuntu
I have been trying to get my .htaccess file to work on my localhost. I know that the file works because it is on my server and works. However it doesn't seem to be working locally.
I have followed ...
0
votes
1answer
708 views
Install apache,php and mysql on CentOS VPS
I try to install apache,php and mysql server by these commands.
yum install httpd
yum install php
install mysql-server mysql
service httpd start
service mysqld start to start your mysql server
...
2
votes
0answers
483 views
Permissions for Apache and FTPd users
I'd like advice about permissions on directories and files on a web/ftp server.
Here is my situation:
Debian Server with those user:group
userme:userme for SSH
www-data:www-data for apache/php
...
2
votes
1answer
423 views
Check for process already running in webfaction?
I use Django framework on webfaction and have 5 different cron jobs. One of them lasts much longer than others and sometimes gets stuck (30-120 seconds or more).
I have already set that cron job to ...
1
vote
1answer
154 views
how to find the server key [closed]
When I run openssl s_client -connect 0.0.0.0:8006 I get the Server certificate as:
-----BEGIN CERTIFICATE-----
MIICSTCCAbKgAwIBAgIESfnb7zANBgkqhkiG9w0BAQUFADBpMQswCQYDVQQGEwJJ ….
From which ...
0
votes
2answers
180 views
Linux (Debian) web server advice
I'm at the start of a new company in which the main activity is building internet web apps. I was very familiar with linux 8-9 years ago, but since then, I've lost a lot of touch with it (couldn't ...
1
vote
1answer
336 views
How can I get mod_perl running in Arch Linux?
I've installed mod_perl, and even tried enabling it, unfortunately it seems to be preventing apache from starting.
LoadModule perl_module modules/mod_perl.so
here's the error.
/usr/sbin/apachectl: ...
2
votes
1answer
295 views
Writing a bash script for apache conf files
I'm trying to automate creating vhosts on my computer. This is merely a learning experience for bash scripting. I'm currently novice. I'm trying to learn more about awk, sed.
No, this isn't homework. ...
2
votes
1answer
241 views
can't view images stored on mounted network drive on linux webserver
I have a network drive mounted at /home/lv_admin/uslonsnas001 where I have stored images. The mount point and all sub folders have rwx mod 775 privileges. My PHP script moves the images to this ...
2
votes
2answers
2k views
FreeBSD: How to install Django with mod_wsgi?
Using FreeBSD 8.2-RELEASE. I want to mess around with Django and I want a working setup on my freebsd system. My understanding is I need to install python, apache, mod_wsgi, and django. The ...
2
votes
2answers
913 views
Run Ubuntu 10.04 LTS with Apache2 SSL with passphrase
I am setting up a Virtual Machine with Ubuntu 10.04 Lucid Lynx Server.
I have been reading the section on setting up Apache with an SSL certificate within the book : "Beginning Ubuntu LTS Server ...