Debian Configuration :: Setting Up Small Web Server With PHP And SQLite3
Apr 5, 2010
I'm trying to set up a small web server with php and sqlite support. I installed lighttpd, php5, php-sqlite3 and php5-sqlite3. Then, I enabled sqlite and pdo extensions in php.ini:
extension=pdo.so
extension=sqlite.so
extension=pdo_sqlite.so
However, when I try to open a SQLite3 database from php:
$database = new SQLiteDatabase($myDB, 666, $error);
I get the following exception:
SQLiteDatabase::__construct() [sqlitedatabase.--construct]: file is encrypted or is not a database
Some readings in the net make me think that my php settings are not compatible with SQLite3 databases. Is anyone successfully working with SQLite3 databases from PHP5 under Debian? Have you any recommendations? Should I rebuild php maybe?
View 3 Replies
ADVERTISEMENT
Jan 5, 2011
I would like to run a mailing daemon on my system that would receive incoming mail and forwards it to my Gmail account. I have no experience in mail services and forwarding mail at all. where to start reading and/or look for clues?
View 3 Replies
View Related
Aug 24, 2009
I need to setup a small VPN server for about 20 people. Will a VPS with 192mb ram be enough to handle this? The only services I need to run is those necessary for VPN.
View 2 Replies
View Related
Nov 26, 2010
I am putting together a server and computer lab at my school for Standardized testing, and am planning on using debian for it. But first, i must prove to the school board that this is a possible and viable option, so right now it is one pc with 1 gig ram (Going to be the server for this experiment), and two others with around 512 mb ram.the problem with all this is, the computers in the lab cannot have hard drives, as there is some sort of licencing issue. So I need to be able to have these two testing computers boot from the server's hard drive.
View 14 Replies
View Related
Jan 3, 2011
I have 2 windows pc's in my home and an office computer that have my files strewn about. I wanted to have them all in one central location that keeps a backup copy, so i used an old machine to start building a file server. I installed debian 5.0 on the machine, command line interface only. I have gotten ssh working so that i can do all my work on the box from one of my windows pc's by logging in with putty.my current problem is how to easily use the box hard drive for storing my files in an easily accessible way. i'm still working on getting samba to work so that i could map the /home directory to a drive letter on my two home pc's, but i'd also like to access files from my work pc. Before i do that, though, i wanted to know if this is safe and secure to map a drive on a remote machine through the internet? Are there any other security concerns I need to be addressing by having this file server set up?
View 7 Replies
View Related
Jan 7, 2011
We have the following server at collocation: [URL]
Provider's technicians were working for 3 hrs but finally were unable to set up hardware RAID1 on it.
What could prevent them from doing it? Is it difficult to set up RAID1? It is mentionned as basic function in specifications.
They said debian not booting after raid configured...
View 2 Replies
View Related
Apr 2, 2010
I have installed a linux server in my office to run 16 machines. Its main use will be a internal mail server but will be also running websites.
I have installed Ubuntu 9.10 server x64 and have got apache running.
I am looking for the simplest more robust solution for smtp, pop3 and imap. I have only ever used qmail before and found it a pain to configure and its getting old so I though I should probably try something new. I have not much experience with running pop3 or imap on linux so would love a suggestion on that.
View 4 Replies
View Related
Aug 24, 2010
I have a home Debian server running, and i would like to set it up as a gateway. I have 2 networkcards in it. So internet comes from the modem and on the other card i want to setup a dhcp server and it has to share the internet. But i want it also to connect to a vpn and share the internet of the vpn.. Is that possible?
View 4 Replies
View Related
Oct 10, 2015
The "System Settings/Startup Programs" window is large enough but the "Program" column is too narrow and it cannot be resized. The window can be dragged to make it larger but not the individual columns. It looks like a Java listbox with "Enabled = false" set. This occurs in Debian8 64 bit and also in Mint 17 and Mint LMDE2. I am surprised nobody else has raised the issue. I have a basic setup with 22" screen and 1680 x 1050 resolution. It occurs with Nouveau and NVidia drivers. It is not a critical bug so I have coped with it for 2 years but it would be nice to see it fixed. Unfortunately I could not upload a screen shot as "board attachment quota has been reached".
View 2 Replies
View Related
Nov 23, 2010
I have an old scanner script that uses pamthreshold to create a small greyscale image of a text document. This program does not seem to be available in debian. Can anyone tell me how I can install it, or if there are any better alternatives available?
View 1 Replies
View Related
Jan 25, 2010
how to set up dns/bind but the issue I am hitting is that I want to just create a non internet domain setup ie t60.mysuperlan. desktop.mysuperlan. etc . Using a hosts file isn't the best as its pretty much about learning all the stuff to make it work.
View 2 Replies
View Related
Apr 9, 2011
I have two ethernet NIC's on my debian server. One built-in Realtek [eth0] (attached to internet), and a PCI Nvidia ethernet card [eth1] (attached to my Win7 netbook). I used this guide to setup the bridge: url. It worked when I was behind a router. But when I moved the computer in front of the router, to direct connect to the internet, the internet stopped functioning on any device that I plug into my Nvidia NIC. The name of my bridge is 'br0'. Does anyone know how to fix it, so I can route the internet to my second NIC?
My Win7 netbook displays this at an 'ipconfig' command:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix:
Link-local IPv6 Address.....: fe80::143e:4cab:f802:8611%12
Autoconfiguration IPv4 Address..: 169.254.134.17
Subnet Mask.......:255.255.0.0
Default Gateway......:
My Debian interfaces file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo br0
iface lo inet loopback
# Set up interfaces manually, avoiding conflicts with, e.g., network manager
iface eth0 inet manual
iface eth1 inet manual
# Bridge setup
iface br0 inet dhcp
bridge_ports eth0 eth1
View 10 Replies
View Related
Jun 22, 2011
I just installed Debian 6 squeeze on a P3, 632 MB RAM, 20 GB HD, and am trying to get it on-line. Ran lspci and lsusb on it (advice from another forum). Got the following results:
[Code]....
Exactly what I am trying to do: Existing network is as follows: Comcast internet to cable modem to Belkin N Wireless Router Model F5D 8236-4 v3. That router is wired to one desktop (running Windows XP)and has 4 wifi notebooks (two running Windows 7 and two running Mint 9 Isadora) and two Wii consoles running off of it. I am seeking to add another desktop to the network in another room without having to drill some holes and run about 40 feet of cable. Seems like it shouldn't take much to get the two routers to "talk" to each other so I can do this. The router I am trying to hook to it is either a Belkin F5D 9230-4 wireless router or a NetGear N150 WNR1000 v2 Wireless router.
View 6 Replies
View Related
May 30, 2010
Making new computer a few questions Case Newegg.com - GIGABYTE GZ-SPIM51-P0B Black 0.6 mm SECC / ABS Mini-ITX Desktop Computer Case 65W adapter Power Supply motherboard/CPU Newegg.com - ASUS AT3IONT-I Deluxe Intel Atom 330 PBGA437 NVIDIA ION Mini ITX Motherboard/CPU Combo
Ram Newegg.com - G.SKILL 2GB (2 x 1GB) 240-Pin DDR3 SDRAM DDR3 1066 (PC3 8500) Dual Channel Kit Desktop Memory Model F3-8500CL7D-2GBNQ DVD-RW Drive 5.25 Hard Drive 3.5 250 GB IDE Question 1: Do I meet all of the power requirements for this setup? Question 2: Could I switch to the non-delux board and run off the 65 watt stock power supply?
Question 3: If I go with the deluxe board how do I power my hard drive and dvd-rw? Question 4: What kind of hard drive should I put in it, I am only going to use it for openoffice documents, pictures and internet, and netflix.
View 3 Replies
View Related
Sep 18, 2015
I have a problem activating the hotspot on my debian 8. The issue is that I can't activate the hotspot to give other devices wifi connection.
I have the correct driver packages from the non-free repositories (firmware-realtek) and this service (hotspot) worked fine on distros like Ubuntu, Mint and Fedora .
I tried hostapd but it didn't work. I'm using cinnamon desktop.
View 0 Replies
View Related
Mar 21, 2010
setting up NAT and firewalling for both IPv4 and IPv6. The machine is headless, so everything must be configured via CLI. I've done all IPv4 firewall configuration writing iptables rules in a bash script so far
View 1 Replies
View Related
Mar 23, 2011
I am trying to figure out what needs to be done to automatically set read/write permissions for everyone for my proprietary USB device on system boot. I have created a udev rules file which changes the permissions for the device when it is connected, but it does not change the permissions when the system is booted with the device already connected. The file looks like this:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="our vendor id", MODE="0666"
Does something else need to be added to the rules file to make it work when the system boots with the device connected? Is there some other script which needs to be created somewhere?
View 1 Replies
View Related
Apr 30, 2011
Would like to know the best way (or the pros and cons of different ways) to set up Alsa. I did a search for information on how to setup alsa on my system. I found a lot of out-of-date information even on the alsa wiki. What I did finally locate was two different methods for setup, both seemed somewhat up-to-date. One method at the alsa wiki said to put part of the information in the modprobe directory in a conf file and set up certain aliases. Earlier suggestions for putting information in modprobe.conf or conf.modprobe appear to be outdated and a directory with separate files for each device and a conf extension to the files is currently used. The second method from a thread on the Debian forum said to use alsactl init, set sound levels the way you want and then use alsactl save and restore functionality. Older methods using alsaconf instead of alsactl init appear to be outdated as well. Not sure where to put the call to alsactl restore though. Didn't notice that in the documentation.In case it matters, I'm running Debian Stable and have a built-in sound card on the motherboard with AC97 compatibility. It's a Realtek ALC882.
Is there a preferred or better method for setting up alsa? Is there a good pointer to instructions that are not out-of-date somewhere? Would be very interested to hear how others set sound up on their machines. What do others recommend as best steps to do this?
View 5 Replies
View Related
Jul 2, 2011
New to linux in general and am having issues on setting up a Raid 1 array for two disks on an HP Proliant Microserver which I am looking to be accessible from my windows PC. I have installed the latest version of debian succesfully on a 250GB disk that came with the server. I have added 2 2TB disks which I would like to have in a RAID 1 array and to have visible from windows to store music/videos etc on. I have managed to partition the two disks to FAT32 (which I think is best) and have managed to configure the array so that it shows as active when I use cat /proc/mdstat. I have been following the steps in this article [URl]... squeeze-p2 and trying to adapt it to my situation.
I am stuck on the step to create the file systems using the mkfs command. I try mkfs.vfat /dev/md0 and it comes up with the error mkfs.vfat: command not found. I have tried mkfs -t vfat /dev/md0 and it give the error "mkfs.vfat: No such file or directory" So my question is how can I continue with the process of setting up the array? Or maybe I should be asking is it possible to set up an array with FAT32 formatted disks?
View 2 Replies
View Related
Jul 16, 2011
Setting up my Squeeze test box, I can't seem to get APache2 to find index.html. It keeps coming up with the initial "It works!" page.
On my Squeeze server, the /etc/apache2/httpd.conf file contains this line:
DocumentRoot /home/www_local
and that box serves the website perfectly.
On the test box, I created the /home/www_local directory and put an index.html file in it, then populated /etc/apache2/httpd.conf with exactly the same DocumentRoot line and restarted Apache. Still the same result -- Apache isn't finding my index.html file. I have grep'ed all the files in /etc/apache2 and /etc/apache2/conf.d looking for 'DocumentRoot' and it's not in any of them.
View 2 Replies
View Related
May 3, 2010
I'm intending to replace my current router (486DX2 w/16MB running FREESCO which has been faithfully working 24/7 for well over a decade) with a debian box with a bit more grunt and newer features. I'm currently setting up my iptables ruleset and am after a bit of advice re the FORWARD policy. A few example rulesets I have found set the default policy to DROP and the have two lines for each port forward, one to allow the traffic and one to direct the incoming packets to the correct machine.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 25 -j DNAT --to-destination 10.0.100.10:25
iptables -A FORWARD -i eth1 -p tcp --dport 25 -o eth0 -d 10.0.100.10 -m conntrack --ctstate NEW -j ACCEPT
I'm thinking of setting the default policy to ACCEPT to cut down on typing as my default INPUT policy is DROP and unless there is a valid FORWARD rule for a particular port, the packets aren't going anywhere anyway. Or have I misunderstood something. My googling returned heaps of example scripts & not much intelligent commentary. Alternatively, what do you all use to configure & maintain your debian gateways; hand rolled iptables rules, or any toolset recommendations?
View 4 Replies
View Related
Jun 5, 2011
I have installed the Nvidia drivers on my desktop using [URL] according to the Debian way. Everything seems to be fine except the resolution. The best it will let me choose is something like 600x480. I have searched and most of what is suggested around the web is to change xorg.conf. I have tried this using different setting suggested but nothing is working. I did not have a xorg.conf file so I created one with the setting suggested on the Debian wiki.
View 12 Replies
View Related
Oct 9, 2015
I have Debian 8.2 with KDE 4.14 and everything runs perfect, except for the internet connection. This problem happens randomly when I turn on my machine. Sometimes when the desktop loads, the connection is already settled.
But sometimes when the desktop loads, the wifi icon is still loading and keeps stuck at "setting network address". Since this problem happens randomly I really don't know what is happening here. My wifi chip is this:
Code: Select all01:00.0 Network controller: Intel Corporation Centrino Wireless-N 130 (rev 34)
This is the problem:
I installed Debian with non-free firmware because of this chip.
View 6 Replies
View Related
Jul 8, 2010
Since I got the liquorix kernel installed on my machine I got an error of setting kernel variable error. net.ipv6.bindv6only at boot time, since it wasnt a big deal I never looked further into it, but now that I had some spare time and I didnt want to see any errors on my machine I found a solution for it, with a little googling all we need to do is read the /usr/share/doc/procps/README.Debian and bingo no more error i hope this help anyone else with the same problem. I did the 3rd suggestion on that file to load the module in /etc/modules cheers.
View 4 Replies
View Related
Aug 19, 2010
how to get clients connecting to an office printer. during a migration from windows server to debian/samba.
We have:
5 windows XP machines one Windows Server 2003 machine, PDC of the old domain One debian Samba PDC (of TEST domain)/print server (with CUPS installeD) running in a virtual machine hosted by the windows server One Toshiba eStudio 3511 printer
Using the CUPS control panel, I've been able to autodetect and add the printer, and it appears as an available share in SWAT for samba. However, the driver isn't perfect. CUPS could only supply drivers for the 3510c, not the 3511.
However, clients on the TEST domain are unable to access it. Doing so gives an error about a local policy preventing a connection to the print queue. I've tried googling this error and the fix that comes up in every result about changing a point and print policy setting, does not work.
however, I've been able to work around the issue. by first logging in as local administrator, navigating to the domain server, then inputting the domain root account credentials at the prompt. That allows me to attempt to connect to printers, but with a different error
"The server for the printer does not have the correct driver installed...."
I very strongly suspect that the 3510 driver actually will work, but it's just not being shared properly. The printer driver share folder is /var/lib/samba/printers, and that directory contains only a few empty subfolders. CUPS did not place the driver there as I would expect, and that is where clients are looking for it.
The thing is, I have no idea where CUPS DID put the driver.
On the old domain, the printer uses drivers for es4511, and looking on the toshiba site, this seems to be what they provide. The Toshiba Site provides a huge variety of drivers, including several windows ones, a universal driver, and a CUPS PPD. Cups asks for an optional PPD during install and I tried supplying that. It said installed successfully, but didn't change anything.
I've tried pasting the windows drivers into /var/lib/samba/printers/W32X86 too, and likewise with other drivers from toshiba's site. but this doesn't change anything either, so I'm at a bit of a loss.
how to install/setup drivers on a samba PDC, for windows machines?
Also relevant, my smb.conf:
anyone see any possible causes of problems?
# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2010/08/19 13:03:07
[code]....
View 12 Replies
View Related
May 19, 2011
Despite having the Gnome Power Manager set to put the display to seep after 30 minutes, it always happens after 5 minutes. The display will go blank but still lit, and then it powers off after the 30 minutes. Surely, if I set it to 30 minutes, the display should power off then, and not just blank after 5? I have no screensaver packages installed so it's nothing to do with that.
View 2 Replies
View Related
Jul 24, 2011
I am still a noob with linux and debian in particular. I do some android development so through that I have learned a little bit about linux but only the basic command prompt commands and the basics of how linux works and such.Anyways, I was looking around on the forum and on other forums and I couldn't find any helpful information about how to set up wireless connections (such as wifi) on debian. When I installed debian on my computer it asked me for the ipw2200 files and I didn't have them at the time but now I have the latest framework files for that, I don't really know how to install them and after I install them I don't know how to turn on my wireless connections from there.
I am really sorry if someone already made a post on this subject and I am just too clutzy to find it, if that's the case please just post the link to that thread for me cause I'm dumb as crap.So basically the main problem I am trying to fix right now is that I cannot get my internet to work on my old dell inspiron 6000 laptop which I am trying to get to run debian.
View 3 Replies
View Related
Apr 5, 2010
I am *finally* getting around to rebuilding my file-sharing computer. I'll be sharing files with both Linux and Windoze machines. It's a home network, so there's nothing fancy needed. I know I have to tweak my smb.conf file until I'm satisfied with the features and security. I'm using SWAT and I'm starting with a bare-bones conf file. It's not secure but I can see the server and selected files/directories from my other Linux box.
My really dumb question is, do I have to reboot both the server and the client machines every time I change the SAMBA configuration? I thought I just had to stop and restart the SAMBA service in the SWAT software - but then the server disappears from my client. It looks like I need to reboot both machines for the client to see the server.
View 1 Replies
View Related
Jan 14, 2010
I want to create a small network of 3-5 computers. I want to have one computer as my server and have services like NFS, DHCP, NTP, etc. I want to connect it to 2-4 other clients that have the bare minimal installation of linux on them. I would like 1 client computer to have a static ip address and I would like another to receive a dynamic ip address from the server. How would I go about doing all of this without the assistance of GUI's? I want to be able to do all this with the ks.cfg and network config files.
View 4 Replies
View Related
Jan 25, 2011
I will be relocating to a permanent residence sometime in the next year or two. I've recently begun thinking about the best way to implement a home-based network. It occurred to me that the most elegant solution might be the use of VM technology to eliminate as much hardware and wiring as possible.My thinking is this: Install a multi-core system and configure it to run several VMs, one each for a firewall, a caching proxy server, a mail server, a web server. Additionally, I would like to run 2-4 VMs as remote (RDP)workstations, using diskless workstations to boot the VMs over powerline ethernet.The latest powerline technology (available later this year) will allow multiple devices on a residential circuit operating at near gigabit speed, just like legacy wired networks.
In theory, the above would allow me to consolidate everything but the disklessworkstations on a single server and eliminate all wired (and wireless) connections except the broadband connection to the Internet and the cabling to the nearest power outlets. It appears technically possible, but I'm not sure about the various virtual connections among VMs. In theory, each VM should be able to communicate with the other as if it was on the same network via the server data bus, but what about setting up firewall zones? Any internal I/O bandwidth bottlenecks? Any other potential "gotchas", caveats, issues? (Other than the obvious requirement of having enough CPU and RAM).Any thoughts or observations welcome, especially if they are from real world experience in a VM environment. BTW--in case you're wondering why I'm posting here, it's because I run Debian on all my workstations/servers (running VirtualBox as a VM for Windows XP on one workstation).
View 14 Replies
View Related