Tag Info

New answers tagged

0

Probably there are better solutions, and i don't know if this would be an optimal solution for you, but one way to accomplish this would be to simply call shell_exec() after each mysqli_connect(): $link = mysqli_connect('127.0.0.1', 'root', '', 'db'); shell_exec('<command>');


0

Try with this script Save it with name vpn #!/bin/bash function routeadd { route add -net xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy dev ppp0 } function makepptp { echo pty \"pptp zzz.zzz.zzz.zzz --nolaunchpppd\" >> /etc/ppp/peers/vpn; echo remotename PPTP >> /etc/ppp/peers/vpn; echo require-mppe-128 >> /etc/ppp/peers/vpn; ...


0

Just like iptable rules, route rules are not saved / reloaded on reboot (meaning they don't survive reboots unless you save / reload them). Please see this link for more details.


0

Think i just solved the same Problem. When you're asked wheather you want to install Grub to the MBR select 'No'. It seems stupid but this will not cancel the grub-install process instead you will be asked to which device grub should be installed now. Enter /dev/sdX according to your needs I hope this applies. But I guess so as you're talking of a server. ...


2

Find the user with this cronjob Thats the output from a cron job. do: sudo grep -R "/usr/local/vesta/bin/v-update-sys-queue backup" /etc/cron* /var/spool/cron/crontabs that will show hopefully what cron job is causing the output you can then ever delete it or direct its output to /dev/null Delete the cronjob Okay now you know the user the cronjob is ...


0

I am no expert on Ajenti as I've never used it before but on the server side of things a Connection refused on SSH and this page is not available error on the browser could mean that either a firewall is blocking the ports, the ports for your web services are not forwarded correctly or you are trying to connect to the service using the wrong port number. The ...


1

You can only extend / resize the physical partition if the file system is unmounted. The only exception is if you use LVM. If you use LVM you would first add or extend the physical volume, then extend the logical volume, then extend the file system. With LVM, adding a new physical partition, sdb1 in this example. First make a partition on /dev/sdb, either ...


0

As sмurf wrote VPN and a DNS resolver on a virtual server in a more free country can be a good solution. I use OpenVPN for virtual private networking and Dnsmasq as a local resolver, as an internal authoritative server and as a DNS relay. DNS traffic goes through VPN is various directions. My experience with this setup is very positive. OpenVPN does not make ...


0

Since the OP mentioned he needs a gateway to shovel a LAN worth of computers, then, I suggest setting up a Squid Proxy in place and have it forward traffic to a hosted box in a more liberal country. A web proxy with a good amount of cache and local dns server is needed because high volume of traffic from your said IP to an IP geolocated in another state ...


1

If your ISP (or your government) is intercepting your outgoing connection to port 53 then one thing you can do is set up a VPN to a server outside your country and route the DNS traffic through it. It will cost you a few $/month though. If this is an option search the net for "VPN servers". Don't be tempted to use a free VPN, DNS is way too important to ...


0

I found the cause. EXT4 is populating inode list since it is a freshly created filesystem which causes the rebuild speed to drop.


0

Can you test with Ubuntu 15.04? The ibmvfc module was just recently added to the installer (See LP: #1416001). You can find 15.04 current ISO builds/netboot images at http://cdimage.ubuntu.com/ ISO: /ubuntu-server/daily/current/ Netboot: /netboot/vivid/ If 15.04 works, please verify that the ibmvfc module is being used. After the disk detect phase, ...


1

Use /WEB-INF/duke.gif However, you need to access it as a resource from the servlet context. In your JSP: <% ServletContext ctx = request.getServletContext(); InputStream stream = ctx.getResourceAsStream("/WEB-INF/duke.gif"); %> I hope this helps...


0

The GNU/Linux operating system is commonly used among Web hosting providers. If you manage a website, mailing list, discussion forum, or database, then your data quite likely flows through a Linux system on its way to your users. In order to change your content quickly on a Linux system, you must have a reliable way to copy your files to it. The Secure Copy ...


0

Try to use synaptic package manager https://apps.ubuntu.com/cat/applications/synaptic/ Search for apache2 package and choose the option "complete uninstallation". It should purge all the dirs and packages that apache2 have configured. Then install Apache2 package either using console, or just from spm.


0

After a little more Google Surfing (because now I'm really curious about your problem!), I found This Post, describing a similar issue in which the accepted solution was to remove or comment out the gateway lines from the host config, leaving the guest configs on DHCP. Also, verify your subnet settings because that's messed me up before (on Windows, mind ...


0

Your ISP doesn't recognize hardcube.net which traces to ip-166-62-12-213.ip.secureserver.net (166.62.12.213) If you own this domain, you need to work with your ISP to get the DNS records updated, If you've done so, It can take a couple of days (maybe more?) for the records to propagate across the net. If you ask them how long it will take they will tell ...


0

If you're only going to be running these two services you'll easily get away with 512MB/1GB RAM even with a decent amount of traffic. I'm running 10 websites getting maybe 10k hits a day between them on a 1GB VPS and I use 2% CPU at peak and 300MB RAM, so minor usage. That said, the host you use will have a more significant impact as many hosts limit you in ...


0

Software RAID: Don't do it! I've never ever in my entire career seen a software RAID actually gracefully recover from damaged hardware, whereas I've seen tons of software RAIDs crap out create problems when there were no hardware problems at all... Back-up: RAID is a protection against a single disk failure (or dual disk failure in case of RAID-6)! It ...


0

Correct me if I am wrong, You want to backup your entire Linux server to another windows server! You can do this by simply installing the VSFTPD in your linux server. https://help.ubuntu.com/10.04/serverguide/ftp-server.html Then enable the root login in the vsftpd configuration file. https://help.ubuntu.com/lts/serverguide/ftp-server.html Once this is ...


1

the problem is that windows uses a different new line than linux, so when copying the key from windows to linux, there is a \n at the end of the line that you can not see on linux in the editor. If you tail the /var/log/auth.log and try to login, the error is like: sshd: error: key_read: uudecode AAAAB3N[....]==\n If you change your key on windows so ...


0

Look at the access log in /var/log/apache2/access.log. The access log lists not only the IP address, the timestamp, and the actual request, but also the user agent. This may give an indication of where the requests are coming from, if the IP address doesn't narrow it down enough. Also, a 408 error means that the client has initiated a connection to the ...


0

wpa_supplicant does not directly use wireless device drivers, and the version of Linux kernel being used is important. Check output from running wpa_supplicant in a terminal for its supported drivers. Older kernels and drivers expect wpa_supplicant -Dwext; newer kernels and drivers are cfg80211-based. Look for cfg80211 when running: lsmod | grep ath9k ...


0

Just solved it by running the Ubuntu Desktop live iso from iLO virtual media (with a free iLO Essentails trail from HP) and running boot-repair. Bit weird it didn't work out of the box, but hey, at least it's working now.


2

You can do everything you need from the desktop edition, provided you install the needed software. More importantly, server actually removes some features from desktop edition, which don't make particularly much sense for an enterprise server installation, but you might want available for your purposes. So you might prefer to stay with Ubuntu Desktop, or ...


1

How do I get it over and into my server to be displayed for all the world to see? As your question has 2 parts, I will try to answer them both. Firstly, the "How do I get it over" part. You just need to install ssh server program on your ubuntu box and then ssh from your windows 7 by using putty. Putty is better for administrating your ubuntu server, ...


0

You install SSH. sudo apt-get install ssh Then you use it for administering the server from your Windows box (one popular SSH client is PuTTY), as well as for transferring files to and from via SFTP (not FTP). One SFTP client that I have used is FileZilla, there are many others.


0

There is a /usr/share/ufw/check-requirements script that checks for everything needed for ufw to work. You'll get hints about what's missing. ufw is not meant to work without the full iptables/netfilter build in the kernel or loaded by modules. If you can't build a new kernel, you're in for some trouble. The post you linked tries to go around these ...


2

Try a different mirror, like to the non-regional specific http://archive.ubuntu.com. Doing this is covered here. You can also find out more mirrors on the Wiki.


3

During installation someone provided the system with a user name and a password after setting up the partitions. You need those. It is possible to retrieve the user name by booting up into recovery mode (see the link) and checking doing a ls /home. The username is shown as a directory. sudo passwd {username} will let you set a new password. After you do exit ...


0

Your problem is that your home directory is encrypted. When you log in graphically, your home directory is decrypted automatically. This does not happen with ssh. You have to run ecryptfs-mount-private AFTER logging in via ssh. ecryptfs-mount-private cd ~ ls You will also have a problem is you try to use ssh keys. See ...


1

Here is an example iptables rule set script for my guess as to what you need / want. I have guessed at some addresses, you will have to edit for what you really need. #!/bin/sh FWVER=0.01 # # Mazzy Example 2015.02.20 Ver:0.01 # Only port 80. echo "Loading Mazzy Example iptables rules set. version $FWVER..\n" # The location of the iptables program # ...


0

Hardware requirements: Ubuntu 12.04 amd64 (oraclejdk required) Minimum 2GB of memory, 4GB recommended for production servers (with only 2GB some swap space is required, at least during installation) At least one 2.00GHz CPU or EC2 compute unit Minimum 25GB of free disk, 50GB recommended for production servers So they force you to use a 64-bit version. ...


1

The issue is fixed. First I removed apache2 $ sudo apt-get remove apache2 then I installed libapache2-mod-svn $ sudo apt-get install libapache2-mod-svn This is how the problem is solved. Thanks for your support guys.


1

Finally we found out the reason: The problem was that on migration the file containing our DNS-SERVERS was overwritten by Wmvare. Meaning that even though the servers were duplicates the IP for our DNS-servers was changed.. We had no reason to suspect this as it should have been full copy of functioning server


0

The two most common tools for this are the Apache and nginx servers. Notes: You'll need to edit a few system configuration files. If you're uncomfortable with vim, replace vim with nano, or gedit in the following commands. For example, sudo vim will become sudo -H gedit or sudo nano. Once you're done setting it up, have a look at How to avoid using ...


3

see http://www.nabisoft.com/tutorials/glassfish/installing-glassfish-41-on-ubuntu This tutorial tells you in detail how to install Glassfish 4.1 on Ubuntu 14.04 LTS server and it should also work for 14.10 and newer versions of Ubuntu. It also cover some security concerns. Basically, to answer you questions: you can't run it on port 80 unless you run it ...


0

Not sure what's your goal there but normally you'd install Xenserver to manage virtual machines inside the same server (on its most basic config). You can also have server pools with extra hardware in different locations, aka your laptop. In that scenario you sitll have to install Xen software and configure them to work together. In the case you are ...


0

The fix for me was with three steps: First, I edited /etc/freetds/freetds.conf and changed the tds version like this: tds version = 8.0 The second step was not entering port number. The port was already 1433, and not specifying it fixed the exact same issue on my case. Lastly, to connect properly, I had to restart networking as @user1054844 mentioned as ...


0

First and foremost with issues like this is to re-boot first, then ask questions if the issue persists. A significant indicator in this case was the Tx and Rx packet count being 0 in the ifconfig listing. Investigation at the packet level can be informative in these cases. Use tcpdump (or wireshark, if you prefer) to observe packet traffic while you try to ...


1

Solved I used fdisk -l to show the partitions and then: fdisk /dev/sdb n p 1 [enter] [enter] w and then: mkfs-ntfs -f /dev/sdb1 in that order to partition the drive. obviously if anyone used they replace sdb and sdb1 to their ownif needed.


0

Ubuntu (Desktop/Server/etc.) itself isn't under a license. Rather, it's components and underlying / included software, drivers, etc. are under various licenses, such as GPL. However, you are free to modify / use it to fulfill whatever purpose you desire, even for commercial purposes. Please see Licensing.


-1

It is very easy. Install Wine Install Tally through wine Create a Data folder and share it on server On client , install wine if want to run on linux. Map the data folder Also you can look for trouble free solution Tiguin Linux from http://www.enjayworld.com. They are also giving support for all the issues. They have develop the software in Linux for ...


0

I take it you have ubuntu desktop on the usb. Or else you have to visit http://cdimage.ubuntu.com/ubuntu/releases/12.04/release/ and download the ubuntu-desktop image for the your architecture. And then create a boot usb. Firstly you have to remove (or comment them by adding a # in front) all lines from /etc/apt/sources.list and /etc/apt/sources.list.d/* so ...


1

Removing the gnome-desktop is not a good idea without installing the unity desktop. As a normal procedure you have to run sudo apt-get install ubuntu-desktop unity to install the Unity desktop and then remove the gnome-desktop. Now your machine is in kernel panic mode and to recover from it follow the below steps. Go and take a look in to the below URL to ...


-1

there is a lot of documentation on configuration and installing on the wiki. documentation and Configuration help can be found here: https://wiki.strongswan.org/projects/strongswan/wiki/UserDocumentation#Configuration-Files While it is not exactly "new-bee friendly" it is understandable.


0

I have determined that this was an issue with the motherboard and not with Ubuntu Server. I had tried many settings on the BIOS to get it working (UEFI on/off fast boot on/off, secure boot on/off), but nothing worked. When I took the drive to my main computer, it worked perfectly on my newer Asus motherboard. I guess this Intel board doesn't like 4TB hard ...


0

Thanks for your comment Douggro. It led me on the right tracks to solve the issue. I added a new user and used alias to route all mails to root to that user. I now recieve the emails :D If you want points/karma/whatever system is used here post a answer and I'll approve it, as you led me on the right tracks ;) Best Regards Frederik


0

After a system reboot and retrying the tcp dump suggested by Doug Smythies the system appears to have connected successfully! There must have been some settings that did not take after the configuration, however the issue seems to be resolved. Thank you for your comments!


0

Assuming I have correctly installed two different servers, how do I launch command lines for each version of the servers i have? The command to connect to a specific port for postgres is: psql -h localhost -p 5433 I would assume you need to use ... sudo -i -u postgres psql -p 5433 as a bare minimum (5432 is the default). From the psql man: -p ...



Top 50 recent answers are included