Search:

Type: Posts; User: Ryan Dwyer; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.13 seconds.

  1. Replies
    9
    Views
    672

    [SOLVED] Re: help understanding C code

    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 (...
  2. Replies
    17
    Views
    1,653

    [ubuntu] Re: Locking down /var/www properly

    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...
  3. [SOLVED] Re: Outputting images to a file through OB_start()

    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.
  4. Re: Need help writing a script to switch config file on button press

    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...
  5. Replies
    4
    Views
    344

    Re: mysql problems

    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...
  6. [SOLVED] Re: Outputting images to a file through OB_start()

    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...
  7. Replies
    4
    Views
    624

    [SOLVED] Re: No wifi on gazp7

    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...
  8. Replies
    4
    Views
    624

    [SOLVED] Re: No wifi on gazp7

    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.
  9. Replies
    4
    Views
    624

    [SOLVED] No wifi on gazp7

    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...
  10. [ubuntu] Re: Webserver access shuts down after a few hours

    You could start by looking at logs...
  11. Replies
    10
    Views
    959

    [ubuntu] Re: multiple sites on apache2

    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.
  12. Replies
    5
    Views
    625

    Re: Simple php question

    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...
  13. Replies
    10
    Views
    959

    [ubuntu] Re: multiple sites on apache2

    Make sure your VirtualHost blocks start with this: <VirtualHost *:80>

    For example:

    <VirtualHost *:80>
    ServerName praetorianblackguard.com
    ServerAlias www.praetorianblackguard.com...
  14. Replies
    2
    Views
    450

    [ubuntu] Re: map to ubuntu server drive

    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.
  15. Replies
    10
    Views
    916

    [ubuntu] Re: Apache2 DocumentRoot error restart

    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.
  16. Thread: dns server

    by Ryan Dwyer
    Replies
    3
    Views
    445

    [ubuntu] Re: dns server

    No, but you need to have a DNS server somewhere serving your domain name. It doesn't need to be hosted by you.
  17. Replies
    10
    Views
    916

    [ubuntu] Re: Apache2 DocumentRoot error restart

    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...
  18. Replies
    4
    Views
    853

    [xubuntu] Re: Google Redirect Virus or not?

    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....
  19. [all variants] Re: ssh getting hammered by login attempts... is this normal?

    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...
  20. Replies
    3
    Views
    7,217

    [SOLVED] Re: My php include is not working

    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.
    ...
  21. Replies
    2
    Views
    335

    [ubuntu] Re: Blank php in firefox

    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.
  22. [SOLVED] Re: List what latest updates were in server.

    Take a look at /var/log/apt/history.log.
  23. [ubuntu] Re: Trying to start mySQL server running but i fail.

    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...
  24. Replies
    14
    Views
    2,861

    [ubuntu] Re: php script continues even after errors

    So fix them before you deploy it to production.
  25. Replies
    14
    Views
    2,861

    [ubuntu] Re: php script continues even after errors

    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...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4