I've installed the beta version of Ubuntu 10.04 server edition (x64), but the system doesn't have an internet connection. Is there a way I can find out what packages are in the apt repository with nothing more than a web browser?
The reason I'm asking, is because I will have an internet connection available when the production system goes live, but it simply isn't possible to internet connect my development system.
I managed to get this to work a while back, but on returning to the cakephp project I had started it seems that whatever changes I've made to nginx recently (or perhaps a recent update) have broken my rewrite rules.
Currently I have:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location / {
root html;
index index.php index.html index.htm;
}
location /basic_cake/ {
index index.php;
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite ^/basic_cake/(.+)$ /basic_cake/index.php?url=$1 last;
break;
}
}
location /cake_test/ {
index index.php;
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite ^/cake_test/(.+)$ /cake_test/index.php?url=$1 last;
break;
}
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 8081;
server_name localhost;
root /srv/http/html/xsp;
location / {
index index.html index.htm index.aspx default.aspx;
}
location ~ \.(aspx|asmx|ashx|asax|ascx|soap|rem|axd|cs|config|dll)$ {
fastcgi_pass 127.0.0.1:9001;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
The problem that I have is that the css and images will not load from the webroot. Instead if I visit http://localhost/basic_cake/css/cake.generic.css, I get a page which tells me:
CakePHP: the rapid development php
framework Missing Controller
Error: CssController could not be
found.
Error: Create the class CssController
below in file:
app/controllers/css_controller.php
var $name = 'Css'; } ?
Notice: If you want to customize this
error message, create
app/views/errors/missing_controller.ctp
CakePHP: the rapid development php
framework
Does anybody have any ideas on how to fix this?
I'm running tomcat on a ubuntu 10.4 VPS with 512MB of RAM (1024 burstable). I'm using it for development, so performance isn't an issue, but memory is.
Tomcat is currently using about 250MB without any apps installed (I compared memory usage with tomcat stopped and running), and I also need to run lighttpd and mysql.
Is there any way to get that number down? I don't need it to be able to handle a large number of requests at once.
I've installed Zend Server CE 5.1.0 on Windows 7 Ultimate 64 bit in its default location, meaning the path to my htdocs is C:\Program Files (x86)\Zend\Apache2\htdocs. Not something that I would like to type each time I check out a project from SVN in Eclipse or something.
I'd like to set the DocumentRoot to a different folder, namely D:\www.
What I've done
I edited conf/httpd.conf, with the significant lines being:
DocumentRoot "D:\www"
<Directory "D:\www">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Include conf/extra/httpd-vhosts.conf
I edited conf/extra/httpd-vhosts.conf to add a virtual host:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot D:\www
ServerName localhost
ServerAlias localhost
SetEnv APPLICATION_ENV development
SetEnv APPLICATION_DOMAIN localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot D:\www\UmbraCMS
ServerName umbracms.local
ServerAlias umbracms.local
SetEnv APPLICATION_ENV development
SetEnv APPLICATION_DOMAIN umbracms.local
</VirtualHost>
I edited C:\Windows\System32\drivers\etc\hosts to add this line:
127.0.0.1 umbracms.local
And I also added a PHP project to D:\www\UmbraCMS. And restarted Apache. Actually, I restarted the computer, too, just in case.
What's supposed to happen
After typing http://umbracms.local/ in the browser's address bar, I want to see my PHP project launch, obviously.
What's actually happening
No matter whether whether I type http://umbracms.local/ or http://localhost/, I'm taken to the test zend page, located in C:\Program Files (x86)\Zend\Apache2\htdocs\index.html, as if neither DocumentRoot was changed nor name-based virtual hosting worked.
Interestingly, when I put another project in C:\Program Files (x86)\Zend\Apache2\htdocs\bugraid\ and then, in the browser, typed http://localhost/bugraid, the project actually opened, or at least tried to, as it completely ignored the project's .htaccess file.
Extra considerations
Zend Server's Apache version is 2.2.16, PHP version is 5.3.0
I've installed MySQL CE 5.5.13 separately, and it works, both from command line and via MySQL Workbench.
I have XAMPP installed, but none of its components are started up. It's got its own install of Apache 2.2.17 and MySQL 5.5.1. PHP version is 5.3.5 (I think).
Question
Have you had a similar situation before? What else might need taking care of in order to have Zend Server's Apache use D:\www as document root for my PHP projects?
I'm planning to set up a Python app (Pyblosxom) on my server and considering to run it in its own virtualenv sandbox with --no-site-packages. I'm hoping that such a setup would be easily portable and maintainable over the years.
However, I've only used virtualenv for development environments that recreate a certain server setup locally, and most sources about virtualenv seem to also mention virtualenv for such a use.
Is there any drawback to running a Python app from a virtualenv on a live server?
I'd like to have different addons set enabled when I'm using firefox for every day internet browsing and different addons set when I'm using firefox as web development tool.
Is there any painless way for this?
Also it would be nice to be able to use them both at the same time on the separate windows.
I am going to buy a new desktop CPU.I am a programmer mainly uses Netbeans IDE for java web application development with glassfish application server.I went through the discussion regarding Dual Core or Quad Core. My doubt is that softwares like IDE's(Netbeans,Eclipse etc with server running) are written with multiple core in mind or not?.I am not a game addict..
So what is best for me and which company should i choose..AMD/Intel..
My current development machine is Windows XP, and I use a modified tcpip.sys to allow me to exceed the 10 connection limit built in to IIS. I know that Vista's IIS has the same limit.
Can anyone confirm whether this connection limit is present in Windows 7 IIS as well?
Recently we have have installed Windows Server 2008 R2 on one of our development boxes at work. We have 10 Client Access Licence's for Microsoft Windows Terminal Server 2008. I'm under the impression that these licences will entitle us to have 10 concurrent connections to Remote Desktop. At the moment we are only allowed two.
Can we have a RD connection per CAL? If so - how do we configure this?
Thanks!
What is the best KVM for a programmer? I need to switch between a locked-down corporate box and my development machine rather than between servers.
I've used a Black Box four port PS/2 VGA KVM switch for many years, but with the advent of USB-only PCs and DVI I need to upgrade as it doesn't play well with USB to PS/2 converters.
My ideal features:
USB keyboard and mouse input/output
dual monitor switching
four ports, but two would do at a push
switch on middle mouse click, or from a keyboard hotkey at a pinch
Hello,
I am using virtualBox with windows datacenter to play around with some web development.
The last time I had to shut down the computer, it installed an update and shut down normally.
When I rebooted, it started doing a checkdisk and processed a bunch of files (from hard poweroffs before mabey).
Now when I start, I get a bluescreen of death every time it loads (Safe mode,etc)
I have googled around for a boot / recovery disk, but can't seem to find one for datacenter.
Cheers
-Will
Hi I am VERY new to backend development. I am trying to setup a User Registration using Codeigniter. I have gotten pretty far but for some reason I can get the "Create Account button working.
I have my site up and running on t-mrkt.com/mycisite would you guys mind taking a look and seeing where I might be going wrong?
Here is a link to my files: https://www.dropbox.com/sh/z54j4qd50yf3t0p/MnnghGBB_D
Thanks for your help!
Adam
I have a Mac Mini with Core Solo 1.5GHz, 512mb RAM, 60gb HDD, etc... I know, it's very old but since it's lying around here, I wanted to bump it up for general usage and some experimental iPhone development. Also, Snow Leopard can't be installed as it doesn't have enough RAM. I browsed around but I'm not sure if this Mac Mini's motherboard accepts a Core2Duo (at least a 2.0GHz). If anyone could inform me which generation of Core2Duo it still accepts, I'd be grateful.
I'm ready to deploy and I want to get my ASP.net web service off of my home development server and out onto the internet. Who would you recommend for good, reliable Mono hosting? Doesn't have to be rock-bottom cheap, just classy and stable.
I am trying to create a locked down Windows 8 account using Group Policies with no tiles on the start screen except for one for the purposes of a Kiosk PC.
How can I (as an administrator account) install a custom application (side-loading) for another user and pin it to their start menu?
This application is still in development so will need to be updated frequently on the locked account for testing.
Quite a hard question to phrase but I know there is an Applications folder in the Dock, above that being programs pinned to the dock, with a dot showing that they are open.
Is there a way to organise these pinned applications into folders on the dock (such as 'Word Processing', 'Development' etc) so clicking the folder shows the apps inside and gives it focus when its open and the window is minimised the icon within that folder?
So instead of having like 20 apps on the dock, you have 3 folders, with the apps inside?
Hi,
I run an Ubuntu server virtualbox under a Windows host for web development.
At the moment I do all editing in Vim running inside PuTTY. It runs pretty well, but lacks some useful features like native copypasting from the host.
I know about the remote mode of Vim, but afaik it can only operate on the same machine.
Question is, is it possible to make gVim on the windows host proxy all the commands (and the editing) to a Vim instance running on the Linux guest?
I use Netbeans for development and I access it by using a Windows Remote Desktop Connection back to my workstation at HQ. This is a great set up except for one thing, I cannot copy text on my local machine and paste it into Netbeans. I can copy and paste into other applications.
Any ideas as to the cause?
How can I fix it?
Our company is moving to new offices in a couple of months, and I am responsible for looking after the move of the development servers in the company. most of the dev equipment is in 5, 42U cabinets + rack for switching/routing equipment. How do most people do this sort of thing? Move the cabinent whole or extract the indvidual components and move the racks empty.
any advise on prep and shutdown before the move would be welcome
I run a small (1 man) consulting company in the field of embedded systems, working from home using a standard DSL internet access. My main development machine is a Windows XP PC, which is connected to the router with an ethernet cable. I also have a MacBook Pro laptop, which is connects to the network via WLAN (WPA-PSK).
Besides enabling the Windows firewall, not using IE, having an up-to-date antivirus program and strong passwords, what do I need to know to keep my customers' data safe on these computers?
In my WinXP I write a bat file to start the putty which is connected to my linux for development.
D:\PuTTY-v0.60\putty.exe [email protected] -pw 123456
But I have to set the charset to utf-8 manually everytime when I do the login.I think it's quite a waste of time.So how can I do the setting more quickly?Thanks.
I'm currently running a Microsoft Server 2008 R2 box and want to utilize Volume Shadow Copy but my development machine doesn't have enough hard drive space for 30 days worth of copies, which is what I am aiming for and currently only have 5 days of backups.
I have another Windows XP box and I was wondering if it was possible to remotely store the shadow copy images in my remote XP box.
If it isn't possible with the built in Volume Shadow Copy, is there an open source alternative that I can utilize that has the same or similar functionality?
When it comes to speed of development, very important thing is your hardware.
I need suggestion to choice between hard drives. What is a best solution: price/value