apache2,ubuntu,virtualhost,webmin,namevirtualhostRelated issues-Collection of common programming errors
doelleri
php wordpress apache apache2
I have the following error message in the error log file of my website. Can you explain me what it means, is there security problem? How could I fix it?[Mon Feb 25 21:04:34 2013] [error] [client 173.199.116.83] PHP Parse error: syntax error, unexpected T_VARIABLE in /Mywebsite/wp-includes/functions.php on line 192[Mon Feb 25 20:48:01 2013] [error] [client 80.118.73.90] PHP Parse error: syntax error, unexpected T_VARIABLE in /Mywebsite/wp-includes/functions.php on line 192, referer: http://www.
rohith
java perl apache2 bugzilla
This is my java classimport java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; import java.util.Map;import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; public class BugzillaAuthentication {public static void main(String[] args) throws MalformedURLException, XmlRpcException {XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();confi
SlovaN
regex mod-rewrite url-rewriting apache2
I’m playing with apache rewrite_mod (Apache/2.2.17 Win32) and encounter very weird behave of rewriteRule.My script primarily rewrite infinite filter parameters named f1 .. f<infinity> from nice url and in loop adding them as query variables, add path as query, and page number.It works flawlessly, but if I add one another rule (last rule in script)RewriteRule ^(.+)\.html$ /index.php?path=$1.html [QSA]which is for another cases, it change execution of rewriterule at s
Billy Bob Thornton
apache2 ubuntu compression images
I have a weird problem on my production web server running Apache on Ubuntu: it compresses my images thereby dramatically lowering their quality!Actually I have two virtual hosts running, each located in a different folder. Wether I display .gif images by navigating on the two sites, or acceding them directly by their url, their size and quality are invariably degraded. I tried with three different browsers: same problem. Using them on other sites on the Web: no problem. Of course I disabled mo
kalina
server apache2 php
I try to test my php installation on a ubuntu server without gui. Therefore I follow the 3rd this howto for LAMP(!). This includes to install php5 et al. withsudo apt-get install php5 libapache2-mod-php5 php5-mcryptThen PHP is added to the directory index.sudo nano /etc/apache2/mods-enabled/dir.confSo that the file is:<IfModule mod_dir.c>DirectoryIndex index.php index.html index.cgi index.pl index.php index.xhtml index.htm </IfModule>I have the file /var/www/info.php like this:<?p
Private
12.04 apache2 rvm gem redmine
I have a running redmine version 1.3.2 on my ubuntu 12.04 already, and now i am trying to install a new 2.4.2 version at a different location.I used RVM to install ruby 1.9.2 and I need the passenger mod to run the application.I guess the to problem is in my passenger.conf location settings that’s what I found out.PassengerRoot /usrPassengerRuby /usr/share/ruby-rvm/rubies/ruby-1.9.2-p180/bin/rubyPassengerDefaultUser www-dataWith that configuration I receive an internal 500 error already from red
Kongthap
13.04 apache2 virtualhost
I would like to have 2 sites on my development machine.I edited /etc/hosts as follow127.0.0.1 restaurant.local www.restaurant.local 127.0.0.1 lrv4.local www.lrv4.localI created 2 new files /etc/apache2/sites-available/restaurant.local and ../lrv4.local<VirtualHost restaurant.local:80>ServerName restaurant.localServerAlias www.restaurant.localDocumentRoot /var/www/restaurant/public<Directory /var/www/restaurant/public/>Options FollowSymLinksAllowOverride None</Direc
jdpipe
10.04 server command-line ssh apache2
I have an Ubuntu 10.04 server that’s going a bit slow. It’s very slow to log in via SSH, and it’s very slow when making edits via a Mediawiki instance installed on there.For normal read access to the hosted website, it’s fast (I have APC installed, FWIW), and it’s also fast with SSH once I’m actually logged in.What sort of things should I be checking as possible sources of this problem? I need to diagnose it remotely.Cheers JP
Jacob Larson
apache2 php localhost
I have found a question very similar to this, which I thought would solve my problem. However, after changing my .htaccess file, with index.php on the end of the list, and then index.php as the only entry, I still cannot get index.php to display. Every other page works fine, but I don’t know how to fix this. Thanks.
César
installation apache2
Fresh new install of Ubuntu fresh new install of apache2. Apache not working, where should I start? It’s installed, it restarts properly it just doesn’t show anything in the browser but a 500 error:HTTP Error 500 (Internal Server Error): An unexpected condition wasencountered while the server was attempting to fulfill the request.
Anders Lindahl
linux shell loops ubuntu
Hi I want to write and empty body loop. I just want the loop counter to increment so I want the cpu to stay busy without any IO operation. Here is what I have written but it gives me an error:#!/bin/bash for (( i = 0 ; i <= 1000000; i++ )) do doneroot@ubuntu:~# ./forLoop ./forLoop: line 4: syntax error near unexpected token `done’ ./forLoop: line 4: `done’
Andrew Marshall
ubuntu rvm
I’m trying to do this:bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )but I keep getting this errorbash: line 1: html: No such file or directory bash: line 2: syntax error near unexpected token `<‘ ‘ash: line 2: `<head><title>301 Moved Permanently</title></head>What’s going on?
Akash
python ubuntu
Am trying to run the following python programimport re regex=re.compile(“http…imgs.xkcd.com.comics.[\\S]*.[jpg|png]”) f=open(‘out.txt’) for a in f:print regex.findall(a)print ‘\n’when I type the code into the interpreter manually, it works as expected but when i save it as a file and try to run it , it gives errors. The command i used to run it ischmod +x sudo ./pymod.pyERROR:./pymod.py: 2: Syntax error: “(” unexpectedif i dont use sudo, the error i get is./pymod.py: line 2: syntax error near
CodeGnome
ruby-on-rails ruby ubuntu gem
Here is what I’m doingsudo gem install rails ERROR: While executing gem … (Zlib::GzipFile::Error)unexpected end of file alex@ubuntu:~/Documents/$ sudo gem fetch -V rails GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz 200 OK ERROR: While executing gem … (Zlib::GzipFile::Error)unexpected end of fileI googled on this but didn’t find anything valuable. I even installed sudo apt-get install libzlib-rubyand I was able t
user774868
shell ubuntu hadoop hbase mint
I have installed Hadoop and Pig on my Mint (Ubuntu-like) virtual machine. I keep getting strange error messages when running scripts. In fact, when I run hadoop commands I also get errors but at least it works, but with HBase it just fails.For example: running “sh hadoop -rmr /home/myoutput” I get: “hadoop: 102: [: fs: unexpected operator” “Deleted hdfs://localhost/home/myoutput”When I run start-hbase it starts fine.When I run: “sh hbase shell” I get:hbase: 163: hbase: [[: not foundhbase: 163:
Ansgar Wiechers
bash ubuntu dash
I’m getting this errorSyntax error: redirection unexpectedin the line:if grep -q “^127.0.0.” <<< “$RESULT”How I can run this in Ubuntu?
Aleister
c unix ubuntu
I’m looking to make a program with the purpose of compiling another. The purpose being using exec to run gcc. I have to use execve and what I have is:#include <unistd.h> #include <sys/types.h>int main(int argc, char* argv[], char* envp[]) {argv[0] = “gcc”;execve(“/usr/bin/gcc” , argv, envp);return 0; }By doinggcc -Wall p3p4.c -o runIt compiles without problems, but when doing./run p3p1.cTo try and compile another one, this happens:run: error trying to exec ‘cc1’: execvp: No such file
user219051
linux ubuntu look-and-feel sudo
My swing GUI application starts with a script.When I run that script under Linux without sudo it gives me unexpected Look and feel and other graphical problems.Why is running with sudo su to my own account fixes this problem?
Blender
ruby-on-rails ruby ubuntu rvm
On a fresh Rackspace instance, I try installing RVM with this:bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)Then it gives me this error: -sh: Syntax error: redirection unexpectedI’ve seen fixes with “source ~/.bash_profile”, but that gives me another error “-sh: source: not found”
franzlorenzon
memory ubuntu process monitoring metrics
Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu?ps aux will show a numerical snapshot, but I’d really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours.Has anyone got any suggestions?
punkish
apache-2.2 virtualhost static-content
I am unable to configure apache2 frontend proxy to other servers and also serve apache2 content. My intent is to have apache2 serve some static content and some dynamic apps, both with domain names and those as sub-folders of the document root, and also serve some dynamic apps, both with domain names and without, proxied behind apache2. In other words, I want to do the followinghttp://my.server.edu/ (served by apache2 from “/Users/me/Sites”) http://my.server.edu/lib (served by apache2 from “/Use
Binarytales
apache-2.2 virtualhost
I have two servers that are clones of each other save for a few minor configuration changes. I am getting some unexpected behaviour when trying to visit their monitoring.*.com sub domains.Running ./apache2ctl -S on each server gives the following:Staging ServerVirtualHost configuration: wildcard NameVirtualHosts and _default_ servers: *:443 is a NameVirtualHostdefault server 010.staging.com (/etc/apache2/sites-enabled/010:2)port 443 namevhost 010.staging.com (/etc/apache2/sites-
cojomojo
apache-2.2 virtualhost ubuntu-12.04 502-error
I am trying to set up apache virtual hosts on Ubuntu 12.04 lts. I followed this guide here http://www.debian-administration.org/articles/412 except I used /var/www not /home/www. Ive set the document root folder to 755 permissions. It is a server I am running out of my house, so its possible it could be a problem with my router I would think? I am not using a proxy.Is there a certain way port forwarding needs to be set up to run vhosts? (And yes, It worked fine before vhosts. I get a 502 respons
Jordan
windows virtual-machines virtualbox virtualhost hosts-file
I installed a fresh TurnKey LAMP VM (Ubuntu, Apache2, PHP 5.2, the usual) in VirtualBox (latest). I configured networking so it has an IP of 192.168.1.111 on the bridged network. Then I logged into Webmin from the host machine at http://192.168.1.111/–worked fine. In Webmin I set up an Apache2 virtual host with the ServerName foo.local and set up a PHP app in the configured directory. Then I added the line 127.0.1.1 foo.local to /etc/hosts.Now back in my host machine–Windows 7–I edited my C:/
tedneigerux
apache-2.2 virtualhost httpd.conf
What is wrong here?NameVirtualHost *:80<VirtualHost *:80>ServerName domain1.comServerAdmin [email protected] /var/www/html/domain1-com </VirtualHost><VirtualHost *:80>ServerName domain2.comServerAlias www.domain2.comServerAdmin [email protected] /var/www/html/domain2-com </VirtualHost>Problem:domain1.com correctly serves the content at /var/www/html/domain1-com, but domain2.com also serves the content at /var/www/html/domain1-com.Here is th
Shane
apache-2.2 php virtualhost httpd 500-error
This should be a simple thing to find, but I’ve spent over an hour on it–time to ask for some assistance. I have a very basic CentOS 5.5 box running two virtual machines. The first machine has been up for several weeks without any issues and accepts connections over 80 and 443 with a signed SSL cert.Today I went in to add a second Virtual Host entry for a site that will only need to listen on 80. I set up the VM as I normally do, created a SIMPLE index.php script that contains only the word
Emar
apache-2.2 virtualhost redirect
I need your help guys.I have a server running Apache 2 and in there I’ve multiple vhosts bound to different domains. I want that the default vhost (so every address not bounded with a vhost) redirects to one of this domain, call it maindomain.com. Previously, I put in the default vhost config a redirect to maindomain.com and everything was working fine.The problem is that now I changed the hostname of the system (I had to do that!) to maindomain.com. So, if I understood correctly, now maindomain
Kongthap
13.04 apache2 virtualhost
I would like to have 2 sites on my development machine.I edited /etc/hosts as follow127.0.0.1 restaurant.local www.restaurant.local 127.0.0.1 lrv4.local www.lrv4.localI created 2 new files /etc/apache2/sites-available/restaurant.local and ../lrv4.local<VirtualHost restaurant.local:80>ServerName restaurant.localServerAlias www.restaurant.localDocumentRoot /var/www/restaurant/public<Directory /var/www/restaurant/public/>Options FollowSymLinksAllowOverride None</Direc
gsingh2011
php apache apache2 virtualhost httpd.conf
I have my site and it’s staging subdomain running on the same CentOS machine running apache. The subdomain is created using a VirtualHost, and I use it to find any bugs before I push to production. I want the php.ini file for the staging VirtualHost to be a development one, and the production site will use a production php.ini. How can I configure apache to use different php.ini files? I don’t want to use php_value/php_flag for everything, I’d rather just use the php.ini file I already have avai
Eric DANNIELOU
apache2 macosx configuration virtualhost mac
Hi sorry total noob to Apache and Macs here… feel the answer is really obvious but I’ve been looking for ages without successI have the following lines in /private/etc/apache2/extra/httpd-vhosts.confNameVirtualHost *:80<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot “/Library/WebServer/Documents/mfoe/” ServerName mfoe.cycle </VirtualHost>The httpd.conf file is including vhosts# Virtual hosts Include /private/etc/apache2/extra/httpd-vhosts.confSo why whe
John Conde
php cron control-panel webmin
(Possibly this belongs on stackoverflow, although it’s not really a programming issue since the code works when run directly. If it needs to be moved, though, no problem.)I have a PHP file (which consumers a National Weather Service web service via SOAP, if it matters) that I need to run on a scheduled basis. I’m trying to set up a cron job in Webmin. If I use an absolute path to the file in the Command field, when I run it I get some strange errors:/var/www/html/mysite.com/test/ndfdXMLclient.ph
Nyxynyx
ubuntu dns bind nameserver webmin
I installed virtualmin and played around with the DNS settings. Now when I try to start bind9 I get the error:Service bind9 restart* Stopping domain name service… bind9 rndc: connect failed: 127.0.0.1#953: connection refused[ OK ]* Starting domain name service… bind9 [fail]/var/log/syslogOct 11 06:05:45 stock named[6316]: starting BIND 9.8.1-P1 -u bind Oct 11 06:05:45 stock named[6316]: built with ‘–prefix=/usr’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/in
Jorge Castro
server webmin
This is for a school project. I need to configure a simple server that provides DNS, HTTP, FTP and DHCP. Since I don’t like tinkering with the config text files, I decided to use webmin instead. However after successfully configuring these services, after a system reboot they won’t work, and I already tried using the terminal to restart the services myself.So, I’m quite lost.
RecNes
linux linux-mint java-applet webmin
I have running Mint 13 (based on Ubuntu 12.04) KDE desktop with Firefox 19.0.2 and Opera 12.14 browsers. Java installed default by the system and its version is: $~/ java -versionjava version “1.7.0_15″OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.04.1)OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)Java test page (http://www.java.com/en/download/testjava.jsp) displays like this:And each browser have IcedTea7 Plugin for run java apples. But Webmin applets not working
Jorge Castro
webmin
I have installed Webmin with the view to try an understand what is all running.Yesterday I had it setup with login and password, but today when I try to get access to the server with: https://ubuntu:10000/ in order to login, I get unable to connect, the page does not load. Seems like there is no connection. I tried http://localhost:10000 and https://localhost:10000 They both returned the same unable to connect response. I am not sure of what it means to turn https on. … the https and http is n
Kirill
apache2 ubuntu webmin www-data
I’ve asked this on the virtualmin forums, but haven’t had any help from there.Recently, “something” happened and it seems that the apache service has gone a bit weird.What it does: it runs all apache traffic as www-data and sometimes spawns the php5-cgi process as www-data, this is a problem because all the domain users own their directories and default permissions don’t let www-data write to these folders (file uploads are dead) or read .htaccess (permalinks are broken in wordpress).I’ve google
Ladadadada
apache2 mysql webmin scientific-linux
Both mysqld and httpd fail to restart following a reboot of the server, although chkconfig –list shows both daemons set to on for run levels 2,3,4 & 5 All control is being exectuted via WebminReboot server – MySQl and Apache not runningMySQL Database Server MySQL version 5.1.69 MySQL is not running on your system – database list could not be retrieved. ________________________________________Click this button to start the MySQL database server on your system with the command /etc/rc.d/
Scott Pack
apache2 ubuntu virtualhost webmin namevirtualhost
I’m a relative beginner with LAMP servers; I’ve played with Ubuntu on a few systems before but this unexpected problem has me stumped. I’m hoping someone can offer advice. I’ve been reading all day and nothing has worked so far from the other threads.I have never installed Webmin before today. I installed Ubuntu Server 12.04LTS on a machine this morning and added Webmin, trying to be as generic and safe as possible with settings. Perhaps I’m not understanding something about Webmin working with
apasajja
virtual ports webmin
I have finish configure the Virtual Server to use domain name. Then I try to restart the httpd, but it give me an error message like below:Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName [Thu Dec 24 20:20:26 2009] [error] VirtualHost xxx.xxx.xxx.xxx:80 — mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined resultsI have tried changing the name in Virtual Server
PeeHaa
php curl ssh cron webmin
I have a problem with running the script using scheduled cron jobs. The thing is that when I run the php script using the browser it is executed without any problems/failures etc. But when I try to run it using crons or SSH I get weird errors:Notice: Undefined index: HTTP_USER_AGENT in /home/loves/public_html/parser/shop_parse_class.php on line 125PHP Notice: Undefined offset: 0 in /home/loves/public_html/parser/shop_parse_class.php on line 481PHP Notice: Undefined offset: 1 in /home/loves/pu
Scott Pack
apache2 ubuntu virtualhost webmin namevirtualhost
I’m a relative beginner with LAMP servers; I’ve played with Ubuntu on a few systems before but this unexpected problem has me stumped. I’m hoping someone can offer advice. I’ve been reading all day and nothing has worked so far from the other threads.I have never installed Webmin before today. I installed Ubuntu Server 12.04LTS on a machine this morning and added Webmin, trying to be as generic and safe as possible with settings. Perhaps I’m not understanding something about Webmin working with
user1513613
apache2 webserver virtualhost namevirtualhost
I am using named Virtual hostsNameVirtualHost *:80<VirtualHost *:80>ServerAdmin [email protected] “/usr/local/apache2/docs/thegeekstuff”ServerName test1.mydomain.comServerAlias www.test1.mydomain.comErrorLog “logs/thegeekstuff/error_log”CustomLog “logs/thegeekstuff/access_log” common </VirtualHost><VirtualHost *:80>ServerAdmin [email protected] “/usr/local/apache2/docs/top5freeware”ServerName test2.mydomain.comServerAlias www.test2.mydomain.c
Web site is in building