Tag Info

New answers tagged

0

Are you certain you want to set the environment variable for the actual Apache user, and not for use within Apache itself? Environment variables in Apache are usually implemented via a set of modules, with mod_env and friends - http://httpd.apache.org/docs/2.2/env.html What exactly is your use case? Is there a script/cron that you need to run as the ...


0

It seems like all files created by the user in /etc/httpd/sites-enabled-user are deleted if they contain errors (syntax errors as well as references to inexisting files (log file, SSL certificates, etc.)) and httpd is restarted in the web fronted (by de- and reactivating the WebStation. Solution: put custom configuration files for httpd with .conf suffix ...


0

It seems that older versions of Apache don't support multiple '-c' options - such as httpd on Mac OS Lion. But it's fine on Ubuntu 12.04: apache2 \ -f /dev/null \ -C "DocumentRoot $PWD" \ -C 'Listen 7000' \ -C 'PidFile /tmp/pidfile' \ -C 'ErrorLog /dev/stdout' \ -D FOREGROUND Credits: https://gist.github.com/thwarted/7672130


0

When a process creates a file on unix, the process controls what permissions are assigned to the file. The process specifies a set of permissions, typically 0666 or 0777, in the file-creation system call. The permissions are modified by the process's umask to produce the actual permissions for the file. Special flags on the parent directory are not part of ...


0

I didnt check much, but I tried 2-3 times with different group permissions on a local server. What I get here is that, what ever permissions are given to the file at the local system are exactly the same permissions got by the file at the remote server.


0

Mime types for CSS and javascript should be enabled per default. Check if the mime module is loaded, by running: apachectl -M | grep mime It should return "mime_module (shared)". If not, enable the mime module by running sudo a2enmod mime If the mime module is enabled, but those types are not defined, you can add them to the file /etc/mime.types (for ...


1

I find the best way to install a lamp server on a debian based system is to simply run: sudo apt-get update sudo apt-get install tasksel tasksel install lamp-server It does all the configuration for you. But you should still learn how it all interconnects. After you can open up /etc/apache2/sites-available/000-default and add/alter your virtual hosts.


0

I assume by default you mean what users will see when they visit your apache server through whatever means. You can achieve this by simply putting all the files which make up example.com in the root of apache. This is the www folder found in /var/www where the default apache page lives (the index.html file) With your newly created sites available file point ...


-1

You need to enable name-based virtual hosting. On my Centos box it's towards the bottom of /etc/httpd/conf/httpd.conf as # NameVirtualHost *:80 You need to remove the '#' symbol from the start of the line to enable it and then restart Apache. Without the above, Apache is using IP based virtual host. As (I presume) the name of your host and of the ...


0

Couple of items to check: Make sure you do not have other VirtualHost entries that may be getting called afterwards. Typically the * entry in VirtualHosts is used for requests without a ServerName, so although I would have expected that to work, try changing the first line from: to (Assuming you are using the default port 80 for the host). Those ...



Top 50 recent answers are included