• Anyone using Dreamhost and hosted on the “lira” server?

    It seems get_home_path() returns “/dh/cgi-system/php.cgi/” instead of “/home/myusername/mydomain”

    any suggestion to change this?

    thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • What do you need to use it for? Is it wordpress related?

    I believe this relates to Dreamhost’s option of running PHP as CGI. See their knowledge base information on it:

    https://panel.dreamhost.com/kbase/?area=2933

    Basically, if you have PHP as CGI and it involves $_SERVER['SCRIPT_NAME'] then it’ll return what you said above.

    I’ve recently switched away from PHP as CGI to PHP as an apache module, at the suggestion of some people on the wordpress irc channel. They think its faster that way. Just remember to deal with file permissions after switching.

    Thread Starter cynics

    (@cynics)

    What do you need to use it for?

    if i’m not wrong that’s how WP locates where to find the .htaccess file. since it is not showing the correct path, it’ll not allow auto-generation/updating.

    jalenack – thanks for the link to the kbase. will look into it. trying not to change to PHP as an apache.

    That is odd, I’ve run WordPress on both PHP as an apache module and PHP as CGI. I’m on the zorg server.

    So the problem is that htaccess isn’t generating correctly? Your permalinks seem to work alright on your site. I guess I would file a support ticket.

    Moderator James Huff

    (@macmanx)

    When I was hosted with DreamHost, and running PHP as CGI and WordPress v1.5, I had no trouble with auto-updating the .htaccess file.

    Thread Starter cynics

    (@cynics)

    jalenack – its not the site on my profile, but i’m doing manual cut/paste now. just that when i update/add Pages, i’ve to manually do the updates. jus some hassle i guess.

    so i suppose mabbe it’s just “lira” … the server my sites are on.

    Moderator James Huff

    (@macmanx)

    Is the .htaccess file CHMOD 666? If it isn’t, WordPress can’t edit it.

    Thread Starter cynics

    (@cynics)

    macmanx, yeah i already went thru every step proposed in the Codex but it’s only becoz WP is reading the wrong path given by Dreamhost, that’s why it can’t edit ( since it can’t find the file )…

    I have the same problem with Dreamhost (my original posting). Certain files can be seen in the application root, but others cannot (e.g. .htaccess). I am on the CAESAR server. When I manually update the .htaccess file, the whole WP app is not seen. I’ll drop them a ticket as this is holding up a significant project for me.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Dreamhose and get_home_path()’ is closed to new replies.