Ubuntu Servers :: Apache2 Sites-enabled Not Enabling?

Apr 14, 2010

So I am trying to add some sites to my server, right now I have an active site at www2.site.tld. As a test, I copied [URL]to [URL], and changed only the line

ServerName www2.site.tld

to

ServerName what.site.tld

as well as renaming the lines for the log files appropriately then

# a2ensite what.site.tld
# /etc/init.d/apache2 restart

which by everything I have read should result in what.site.tld being identical to www.site.tld. Instead, it flat-out does not resolve. Apache does create some blank log files in /var/www/

View 1 Replies


ADVERTISEMENT

Ubuntu :: Error: Syntax Error On Line 20 Of /etc/apache2/sites-enabled/portal

Feb 1, 2010

I am trying a release of Ubuntu has have run into a problem that does not make much sense. I am receiving the following error: Syntax error on line 20 of /etc/apache2/sites-enabled/portal: Invalid command 'ProxyHTMLEnable', perhaps misspelled or defined by a module not included in the server configuration
fail! I believe the modules required for this is apt-get install libapache2-mod-proxy-html and it shows under the available modules and it was enabled with a2enmod proxy-html.

The line from the config is ProxyHTMLEnable On. The release is the latest download with updates from, 32bit.

View 4 Replies View Related

Fedora Servers :: Good Guide To Enabling Https On Apache2?

Dec 28, 2009

I've got a basic apache2 setup running w/ multiple virtual hosts, would like to try SSL (i.e. https).

I've got the IP networking side well and truly sorted but I need guidance on the apache/ssl config side. I have installed mod_ssl.

Does anyone have a good guide for Fedora that's recent? All I can find are ubuntu and old fedora 'core' guides, so not sure how much applies to F12. The best ones I can find so far is

https://help.ubuntu.com/community/fo...er/apache2/SSL

http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html

View 7 Replies View Related

Ubuntu Servers :: NameVirtualHost 80 Has No Virtual Hosts Apache2 Hosting Multiple Sites Without DNS?

May 10, 2010

I have some problem in apache2 configuration. I have two websites on same IP on LAN.i.e. 192.168.1.5

[Code]...

What should I check in a few blogs I checked they said to mention in [URL]...But in this case what should I put I have two different websites or what other thing I have missed? I do not have access to DNS so that on LAN I can point site1.abc.com and abc.com to same IP 192.168.1.5 which to me seems could resolve the issue.

View 6 Replies View Related

Ubuntu Servers :: Error - Thomas@tdtconsulting:/etc/apache2/sites-available$ Sudo A2ensite Tdtconsulting

Oct 12, 2010

I am having problems accessing my website. I have port forwarding enabled on my router and below are the errors I am getting plus my firewall setup.

Code:
thomas@tdtconsulting:/etc/apache2/sites-available$ sudo a2ensite tdtconsulting
[sudo] password for thomas:
Enabling site tdtconsulting.
Run '/etc/init.d/apache2 reload' to activate new configuration!
thomas@tdtconsulting:/etc/apache2/sites-available$ sudo /etc/init.d/apache2 reload
* Reloading web server config apache2 [Tue Oct 12 18:21:04 2010] [warn] NameVirtualHost 192.168.1.3:80 has no VirtualHosts

[Code]...

View 9 Replies View Related

Networking :: Ubuntu 9.10 Apache2 Multiple SSL Sites?

Jan 10, 2010

With hardy, I was able to have multiple SSL sites on the one machine. But I can't seem to get it to work for ubuntu 9.10, I've read that you need to put each SSL site on a different IP. But I was able to do it with hardy without different IP's.

View 4 Replies View Related

Debian :: Enabling HTAccess In Apache2 For Lenny

Aug 25, 2011

My distro is Lenny. I am struggling with trying to enable .htaccess files. I followed a ubuntu tutorial that did not work at all. How do I enable .htaccess files in all apache2 directories for Debian 5.0 Lenny?

View 1 Replies View Related

General :: Php Not Enabled In Apache2?

Jun 14, 2011

I am running fedora 14 linux with mysql, php and apache. Just get done with installing each app, But the php doesn't seem to be enabled in apache, since test file doesn't work:

<?php
phpinfo();
?>

View 4 Replies View Related

Ubuntu :: Multiple SSL Certificates In The Default-ssl File In /etc/apache2/sites-available/ Folder?

Aug 16, 2011

How can I allow multiple SSL certificates in the default-ssl file in /etc/apache2/sites-available/ folder? I tried

Code:
NameVirtualHost *:443
And
Code:
<VirtualHost *:443>
but I get the error

[Code]...

View 2 Replies View Related

Ubuntu Servers :: Enabling Zip On PHP 5.3 On 10.04?

Jun 4, 2010

Anyone could teach me what is the "correct" method to enable the php Zip extension in a PHP 5.3 on a Ubuntu 10.04?

View 2 Replies View Related

Ubuntu Servers :: Run Two Sites With Webmin?

Sep 5, 2010

Webmin running two websites from one server, i've made a second virtual server for my second site including its own document root with it's own index.html file ,but for some odd reason they both run the same site. And i use a Static ip address.

Sites:

[URL]

View 7 Replies View Related

Ubuntu Servers :: Enabling Apache And PHP With Mod_userdir

Nov 7, 2010

I have a frustrating problem - Apache will serve PHP pages correctly from /var/www but any PHP files in /home/username/public_html are not correctly processed and instead are sent to the browser as a download attempt (i.e. they are not passed to the PHP interpreter).

I have googled and followed the instructions about commenting out the lines in /etc/apache2/mods_enabled/php5.conf, which at present looks like this:

Code:
<IfModule mod_php5.c>
<FilesMatch ".ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>

[Code]....

I have tried it with the hashes removed and the engine value both On and Off to no avail.

View 2 Replies View Related

Ubuntu Servers :: SquidGuard Not Blocking Sites

Mar 16, 2010

not blocking sites

Code:

dbhome /var/lib/squidguard/db
logdir /var/log/squid
dest block {
domainlist block/domains

[Code]....

under db I created a directory block where I created a domain file and a urls file dosen't seem to be working

View 6 Replies View Related

Ubuntu Servers :: Enabling CGI In All /var/www Subdirectories (Apache - LAMP)

Jan 5, 2011

I am trying to set up my local development environment to mimic the behaviour of my webhost: namely executing *.cgi files as CGI scripts, regardless of their location. If I'm not mistaken, the default setup of Apache on Ubuntu has this set up for /usr/lib/cgi-bin only.

I have tried adding +ExecCGI to the /var/www directory settings in /etc/apache2/sites-enabled/000-default. I have also tried AddHandler cgi-script .cgi in the same <directory> block.

View 3 Replies View Related

Ubuntu Servers :: Enabling / Disabling Services Autostart?

Apr 10, 2011

How do you enable/disable the autostart of services. For example let's say I know I'm not gonna use apache and mysql for a while and don't want it to autostart anymore how do I disable it ?

And then once it is needed again how do you enable the autostart again ?

View 5 Replies View Related

Fedora Servers :: Enabling Sqlite In 12?

Feb 4, 2010

I'm having a bit of trouble with a web server running Fedora 12. Apache works fine, and serves up php content without a hitch. My problem is SQLite -- I thought that it was built into php5, but support is disabled in the repo version. phpinfo shows this as part of the configure command:

Code:
'--without-sqlite' ... '--disable-pdo' ... '--without-sqlite3'

The only solution I've read anywhere is "compile php from source," but I'd like to avoid that if possible, for ease of future upgrades. Is there a way to convince php to use sqlite despite its current state?

View 8 Replies View Related

Ubuntu Security :: Some Sites Blocked - Accessing Some Sites - Amazon Paypal And Bigstockphoto Really Slow

Feb 9, 2011

In the past week or so I've noticed some weird network behaviour. I find accessing some sites such as Amazon, Paypal, and Bigstockphoto really slow. Sometimes the page will not load at all. Other sites are fine. The problem sites are not a problem for others on my LAN at home. When I try to open the problem sites, I can see in Firestarter blocked connections coming from 2.1(8/9).xxx.xxx on various ports such as 36007. This only happens for the problem sites. I attached a typical output from firestarter.

This happens with Firfeox or Chrome. Using Ubuntu 10.10

View 4 Replies View Related

Ubuntu Servers :: Multiple Apache Sites With Dyndns

Jul 5, 2010

how is it possible to serve multiple sites hosted in my computer with apache through dyndns.I am using ubuntu 10.04 and i had setup a dyndns domain as of mydomain.homelinux.org/127.0.1.1 medic. Now when i go to mydomain. homelinux.org outside of my lan i see the default site of apache.

View 3 Replies View Related

Ubuntu Servers :: Getting VHosts To Work With Multiple Sites

Jul 13, 2010

What I want to do now is make nicmatthew.co.cc point to /var/www/nicmatthew/html and make rielworld.co.cc point to /var/www/jimriel/html. I have created the apache vHosts nicmatthew.co.cc and rielworld.co.cc containing this:

Code:
<VirtualHost 67.23.224.90:80>
ServerName nicmatthew.co.cc
ServerAlias nicmatthew.co.cc
ServerAdmin nmatthew@nicmatthew.co.cc

[Code]...

So now I would like to know how to make rielworld.co.cc and nicmatthew.co.cc point to the correct places. Do I somehow set up nameservers? Do I make an A record?

View 1 Replies View Related

Ubuntu Servers :: Can Host Multiple Sites On The Same Server?

Aug 15, 2010

Recently I've been earning money doing web development, php, html/css, MySQL and so on. What I have encountered a lot are clients that need a complete solution. They need their site built, but they also need a hosting solution. I've sent more than just a few clients off to GoDaddy, and quite frankly, I'd like to cash in on some of that.

It would do wonders for my business if I could offer them a hosting solution with full support on top of building their site. My problem is I have no idea how to do this. So I'd like to know how I can host multiple sites on the same server. Does anyone know of a nice guide I can follow to set this up? It's really important that I can add sites fairly easily over the internet. Since I will be away at school, I won't have direct access to the server

View 4 Replies View Related

Ubuntu Servers :: Squid Configuration, Allow Blocked Sites Only For 2 Users

Jan 18, 2011

My Squid is working. But I do not know how to unblock a proxy for two users on my network. My configuration

Code:
acl work src 192.168.16.0/24
acl sites dstdomain "/etc/squid/sites.acl"
acl files urlpath_regex "/etc/squid/files.acl"
acl boss src 192.168.16.12

[Code]....

How to enable blocked sites and files for boss and it_user?

View 2 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Apache2 - 98 - Address Already In Use

Aug 29, 2010

I am using Ubuntu Server 10.04 64bit. I am getting an Apache2 start up error after I setup my certificates and configure Apache2 for HTTPS. At the point on start up where I need to type in my certificate pass code I get a lockup due to the Apache2 process being in a hung state. I reboot if needed and switch to console tty2. When I type in the command.

Code:

I get the following error.

Code:

To correct the problem I do this.

Code:

From the output of the command above I look for the apache2 process and make note of its process ID. Then, I kill that process ID. For example, the command below has an apache2 process ID of 1131.

Code:

Next, when I run this command.

Code:

The apache2 server starts up and asks for my certificate password, accepts it when I type it in, and runs perfectly fine afterward.

Fortunately this instance of Ubuntu Server is running inside a VMWare virtual machine. I can just "pause" the virtual machine if I need to rather than going through this crude and tedious start up process too frequently.

Crude and tedious are feelings I'm having too frequently lately with Ubuntu Server.

View 5 Replies View Related

Ubuntu Servers :: Apache2: Php Not Parsing

Oct 18, 2010

I've reinstalled my system and installed apache. I've installed php5. 'a2enmod php5' returns with a message telling me that php5 is already enabled.

However, this code does not parse:

Code:
</php
phpinfo() ;
/>

I get a blank page. When I view the source code for the page, I see the php code.

How do I get php to work?

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache2 With SSI The *right* Way?

Jan 5, 2011

So I've got a box running 10.04LTS Server, and on it is running the latest build of Apache2.It's a home box - a server set up for the sole purpose of experimenting and having fun with. So far, the fun is mostly breaking it over SSH and then fixing it when I get home and can log into it via recovery.What I really want to do is to get this box set up with Apache2 the way it seems like it was designed - with Apache2 serving web pages from its default file location (/var/www) but also being able to log in and upload/download new web page files to that directory over SCP or SFTP. I keep hitting snags.Here's what I've done so far:

1. The server is set up in a DMZ at home and my router updates a Dynamic DNS record; so far I can SSH into it no problem.

2. Apache is working. I get my "it works!" page when I enter either the IP or the dyndns domain name.

3. SFTP is sort of working. I can log on using WinSCP and see the files and download them, but I can't upload to the default directory with my normal login.

Here's my issues: 1. I want to set up Apache *correctly*. To me, that means leaving it pointing to the default directory, but still being able to upload to that directory. I have not (and probably will not) enable the root account. I've set the permissions to 755. I've tried chown'ing the directory, but then it seems I can't view the webpages.As a workaround, I created a www folder in my default user home directory and pointed Apache2 there in the 'default' file in /etc/apache2/sites-available. The changes read as follows:

Code:
DocumentRoot /home/username/www
<Directory />
Options FollowSymLinks[code]...

That gives me a workaround for the default directory SFTP issue, but I would rather learn what I need to do to have it set up and working with default values.

2. You may notice I added Includes under the Options. My goal is to get server-side includes working. But they aren't. I have some existing webpages my work has set up - I using these as a template to use to adapt a flash movie I made to a specific resolution, as well as to learn how to optimize my flash for a webpage. Our webhost uses virtual hosting; I am not yet doing so. I'm not sure what they've done to set up the server-side includes, but the files they are using are all html files - no shtml. The include files themselves have either .htm or .html extensions. All of the pages have .html extensions.

My reading said that I need mod_include installed in Apache2. Where can I check to see that it is installed? Where do I need to add the Includes under Options?Is it in the right place? And finally, where do I need to add XBitHack on to enable it? This is the method that Apache suggests, but the documentation offers no clue as to where to put it. Most of the documentation out there refers to apache.conf, but that's the Apache 1.3 way of doing things.I really just want this to be set up according to the defaults as much as possible.I want to have a good working knowledge of Apache and of how to set it up and configure it, but dang it if it isn't a frustrating process.

View 8 Replies View Related

Ubuntu Servers :: Removed Apache2 But It's Still There?

Mar 8, 2011

I'm very baffled by this, I was setting up my mumble server since my old one had a hard disk failure. I was messing around with web registration but decided I didn't want it since this server is really only for a few friends.

So I removed all the mumble-django and apache2 packages required for web registration, but for some reason apache2 is still on my system and listening for connections.

terminal output below to further clarify.

Code:
Linux voiceserv 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011 i686 GNU/Linux
Ubuntu 10.10
Welcome to Ubuntu!

[Code].....

View 3 Replies View Related

Ubuntu Servers :: Apache2 Not Accessible From LAN

Apr 1, 2011

I have a problem with apache server. The thing is - I can connect to my server on localhost, but when I try to connect from local network, it doesn't reply.

I can ping my web server from lan. I can ssh my web server from lan.

I haven't modified iptables since install except these commands>

Code:
iptables -A INPUT -p tcp -s 0/0 --sport 1024:65535 -d $MY_SERVER_IP --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp -s $MY_SERVER_IP --sport 80 -d 0/0 --dport 1024:65535 -m state --state ESTABLISHED -j ACCEPT

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Cant Uninstall Apache2?

Apr 9, 2011

So i want to remove Apache2 so i can compile my own edited version. But when i do it says that it cant remove it. here is a 'log':

Code:
geisst@ubuntu:~$ sudo apt-get purge apache2
Reading package lists... Done

[code]....

View 5 Replies View Related

Ubuntu Servers :: When UFW Is Enabled Cannot Ping

Jul 10, 2011

I am running Ubuntu Server 10.10. I have enabled UFW with the following rules:

Code:
To Action From
-- ------ ----
80/tcp ALLOW Anywhere
22 ALLOW Anywhere
8080/tcp ALLOW Anywhere

[Code]....

I am unable to ping from the server. What do I have to add to ping from the server? Do I need to Allow from 127.0.0.1 to Anywhere? I would like this server to be as secure as possible.

View 5 Replies View Related

Ubuntu Servers :: Separate The 2 Hosts And Access 2 Different Internal Test Sites?

Oct 7, 2010

I installed Apache2 and I added a second virtual host, now can i separate the 2 hosts and let them access 2 different internal test sites? For Example lets say"

User1 uses one IP
User2 uses second IP

How can I separate it in Apache2 and in the /var/www ?

View 4 Replies View Related







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