Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • About the original post to this thread: I would check to see if vim thougth the file to be “DOS” This happens with cgi perl scripts when samba is running and one is using notepad or something on a windows box to edit the file on the unix machine. Since unix only needs a <LF> and DOS needs both <CR><LF>, files edited on windows but ran under unix will have an invisible <CR> at the end. So, when the shell tries to find /usr/local/bin/php<CR>, it can’t.

    Two solutions: with vim, do a :set ff=unix and save the file. Or, create a symbolic link from /usr/local/bin/php to /usr/local/bin/php<CR>

    The last one’s my favorite for perl scripts I edit with notepad under windows and save to unix with samba. . .

    Hope that makes up for my stupid post.

    I’m new to PHP, just an old, weak perl guy. Anyway, I threw all this stuff up into my cgi directory where I run perl scripts and it doesn’t run. I hacked a few PHP scripts in that directory and they did’t work either. The light came on! Nothing to do with wordpress, no PHP runs from that directory! It started to sink in that PHP is more like ASP than CGI, so I threw it over into my HTML directory, and the PHP scripts run! So, I’m on to the next step. Sorry to bother you all.

    I’m have the same problem:
    http://mcgoy.plumbearcat.com/bin/wp-admin/install.php
    Here’s my apache tags:
    Apache/2.0.45 (Unix) PHP/5.0.5 FrontPage/5.0.2.2634 Server at mcgoy.plumbearcat.com Port 80
    MySQL: 4.1.12 installed from tar ball.
    index.php does the same.

Viewing 3 replies - 1 through 3 (of 3 total)