nl is num lines. nw is num words. nc is num characters.
The first time it hits a whitespace, the state becomes OUT (ie. outside a word). If it hits another whitespace immediately, it matches the (...
Type: Posts; User: Ryan Dwyer; Keyword(s):
nl is num lines. nw is num words. nc is num characters.
The first time it hits a whitespace, the state becomes OUT (ie. outside a word). If it hits another whitespace immediately, it matches the (...
Please, for the love of God, don't make your DocumentRoot writeable by Apache. I've had to fix malware issues on other peoples sites caused by this too many times. Some scanner finds a vulnerability...
What's the exact content inside the src attribute? It must start with http:// or https://, otherwise it will be looking for the image on the end user's computer.
Here you go:
#!/bin/bash
LIVE_CONFIG_FILE=live-config.conf
# Determine which file number is currently being used
CURRENT_NUM=`ls -l | grep "$LIVE_CONFIG_FILE" | awk '{print $11}' | cut...
When you installed mysql-server, what password did you set for the root user?
Maybe it's blank, in which case you should try it without the -p part: mysql -u root
If that doesn't work, run sudo...
I don't get it. Are you using output buffering to create the files on the server and having the user download them with content-disposition: attachment? If so, then you need to link your images using...
Sort of. I'm in Australia so it wasn't as simple as a standard warranty replacement. The cost for me to ship the dud wifi card back is more than the cost of buying a new one so I just bought a new...
Sorry for bumping, but I'm not a fan of leaving threads without explaining how the issue was resolved (*cough* http://xkcd.com/979/).
It was a dud card. I got a new one and it works fine.
Hi,
I received my gazp7 today and am unable to use wifi. The Network Manager applet shows only my wired connection. There is no heading in the menu for wireless connections. Pressing Fn + F11 to...
You could start by looking at logs...
Change the ServerName to be whatever the site's hostname is minus www. Add a ServerAlias with the same name but including www. Refer to the example I posted previously.
PHP is always running as a Unix user. The file it writes will be owned by that Unix user. In Ubuntu, under a standard Apache install, that user is www-data. If you're executing a PHP script from...
Make sure your VirtualHost blocks start with this: <VirtualHost *:80>
For example:
<VirtualHost *:80>
ServerName praetorianblackguard.com
ServerAlias www.praetorianblackguard.com...
You need to configure Samba to share that directory. You might be able to do it through Nautilus (file manager), or you can do it by editing Samba's config file.
That's the purpose of the "private" directory: For storing files that need to be outside of the document root but can still be included by Apache scripts.
No, but you need to have a DNS server somewhere serving your domain name. It doesn't need to be hosted by you.
The problem is that users are able to delete their document roots, not that Apache is refusing to start when it encounters a configuration error. Try removing the write permission for the site user...
It sounds to me like your hotel's DNS server got compromised. In that case there's nothing wrong with your computer.
If it happens again, try setting your DNS servers to 8.8.8.8 and/or 8.8.4.4....
I find the most effective solution is to block port 22 externally and forward SSH through a different port. Most (all?) scripts attempt to connect on port 22 and if nothing responds they'll move on...
No, that's a terrible idea. Specifying the absolute path means that your site cannot be ported easily, such as between a development environment and live environment.
...
Make sure libapache2-mod-php5 is installed. You might need to restart Apache afterwards.
Also, the PHP closing tag should be ?> but this is not relevant to your problem.
Take a look at /var/log/apt/history.log.
I'm guessing you didn't install MySQL from a repository but from downloading a .deb file or something.
Remove everything you've done relating to installing MySQL, then run
sudo apt-get...
So fix them before you deploy it to production.
Whether PHP continues or not depends on the type of error it encounters. Notices, warnings and errors do not stop execution. Fatal errors do. This behaviour cannot be set in the config but you can...