Title: sofaking21's Replies - page 2 | WordPress.org

---

# sofaking21

  [  ](https://wordpress.org/support/users/sofaking21/)

 *   [Profile](https://wordpress.org/support/users/sofaking21/)
 *   [Topics Started](https://wordpress.org/support/users/sofaking21/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sofaking21/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sofaking21/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sofaking21/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sofaking21/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sofaking21/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/users/sofaking21/replies/?output_format=md) [1](https://wordpress.org/support/users/sofaking21/replies/?output_format=md)
2

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error: Out Of Memory](https://wordpress.org/support/topic/fatal-error-out-of-memory-16/)
 *  [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-out-of-memory-16/#post-2025332)
 * So, what you’ll do is upload a phpinfo.php file to /home/santanam/public_html/.
   The content of this file should be:
    `<?php phpinfo(); ?>` Once the file is in
   place, you should be able to navigate to [http://santanamaria.com/phpinfo.php](http://santanamaria.com/phpinfo.php)
   and see how the server is configured. Print out the results and then remove the
   phpinfo.php file. There is a ton of information contained within this configuration
   printout that can help diagnose the problem. I’m leaning towards the fact that
   their PHP processes are tanking on one or more load-balanced servers. The reason
   why I say that is becasue I had the exact same issues on my servers a few months
   back. I would shoot the hosts helpdesk an email or a phone call.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error: Out Of Memory](https://wordpress.org/support/topic/fatal-error-out-of-memory-16/)
 *  [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-out-of-memory-16/#post-2025312)
 * This is definitely a problem with your php configuration. Create a phpinfo.php
   in your document root and look at the results of your config. You stated you 
   have FTP access, is this your server or is it hosted by a third party? If it’s
   hosted by a third party, it’s likely that you simply don’t have access to the
   php configuration directory and you will need to contact your host to fix your
   issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Multiple WordPress sites on one computer](https://wordpress.org/support/topic/multiple-wordpress-sites-on-one-computer/)
 *  [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/multiple-wordpress-sites-on-one-computer/#post-2022360)
 * Let me start with my preferred method: virtual server. If you don’t have experience
   with Linux this may not be the quickest, but this has been by far the most stable
   environment I’ve ever used.
 * So, here’s what we do. Install a virtualizaiton product of your choice (VirtualBox
   is free). Install a flavor of Linux in your virtual environment (my preferred
   flavor: Ubuntu 10.10 Server). During the isntall, you can chose to install the
   LAMP stack and I would also suggest installing BIND (useful for quick and easy
   subdomain multisite). Install Webmin on your Linux box. While it’s not necessary,
   Webmin can make administration tasks quite a bit easier. Give your Linux box 
   a static IP. Set up an Apache virtualhost with widlcard subdomains and a wildcard
   DNS entry (if you’re going to do a subdomain multisite). Install a Microsoft 
   Loopback Adapter and assign a private IP address to the adapter and set up the
   DNS to your local DNS server. This is helpful if you’re on a laptop that may 
   not always have an internet connection. With all this, you can set up a subdomain
   mutlisite WP install. I’ve found this easiest to work with mutliple sites though
   the set up takes a bit longer. I’m typically doing development on no less than
   4 sites at any given time. Having separate subdomains helps me make sure I’m 
   working on the proper site.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [How to find the upload path for a blog? MU 2.9.2](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/)
 *  Thread Starter [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/#post-1634503)
 * I officially feel dumb. Just in case anyone else ever runs into this type of 
   issue, here’s how I solved it:
 * `$directory = ABSPATH.get_option('uplload_path').'/';`
 * I don’t know why it didn’t click to me that since some of these directories are
   defined as constants, I could just reference them directly.
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [How to find the upload path for a blog? MU 2.9.2](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/)
 *  Thread Starter [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/#post-1634499)
 * You’d be amazed how few themes use the built-in functions. This theme (Intrepidity)
   allows users to upload a custom header, footer and logo image. Another theme (
   Arras) does something similar (only allows for a custom logo), but uses the wp_handle_upload
   hook to upload to the proper blogs.dir/blog_id/files/ folder. I’ve tried recoding
   this section of code using that hook and I must’ve screwed something up pretty
   good.
 * Is there any way to pull the value of WP_CONTENT_DIR that is defined in wp-settings.
   php?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [How to find the upload path for a blog? MU 2.9.2](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/)
 *  Thread Starter [sofaking21](https://wordpress.org/support/users/sofaking21/)
 * (@sofaking21)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/how-to-find-the-upload-path-for-a-blog-mu-292/#post-1634489)
 * That code is the functions.php of the theme. Easiest solution: change themes,
   but the powers that be say that’s not an option.

Viewing 6 replies - 16 through 21 (of 21 total)

[←](https://wordpress.org/support/users/sofaking21/replies/?output_format=md) [1](https://wordpress.org/support/users/sofaking21/replies/?output_format=md)
2