• Hello All,

    I’m trying to setup WordPress on a CentOS 4 system (64 bit version), using Apache 2.0.52, and PHP 4.3.9.

    PHP seems to work. When I visit the directory I’ve setup for the blog, index.php runs and tells me that I need to visit install.php. However, when I try to browse over to install.php, Firefox gives me the option to either run it locally or save it — it’s not running as a server-side script.

    I’ve got a feeling that I’ve got some subtle thing misconfigured. Since I’m running a pretty vanilla version of CentOS 4, I’m hoping that it’s an issue with the default CentOS install, and other CentOS users (or people using the equivalent RedHat version) will have run into this and might possibly know how to fix it.

    I’m not getting any error messages in my httpd logs, or I’d post them here.

    Thank you for any help you might be able to provide …

    ~ PeteVG

Viewing 3 replies - 1 through 3 (of 3 total)
  • It might be an Apache and PHP configuration issue.

    May need to add:
    AddType application/x-httpd-php .php

    to your httpd.conf file.

    Thread Starter petevg13

    (@petevg13)

    Hi MichaelH,

    Thanks for the reply.

    The php package for CentOS adds the AddType line, as well as LoadModule line for module_php4, to a file called /etc/httpd/conf.d/php.conf It looks like apache is loading configuration options from that file properly — I tried adding the lines in question directly to httpd.conf, and I still had the problem after restarting httpd.

    The really weird thing is that index.php runs just fine. It’s just install.php (so far) that has the trouble. I initally thought that it might be a permissions issue w/ the wp-admin directory, but wp-admin/index.php _also_ works.

    It feels like I’m running into some sort of overzealous security measure in CentOS. I have a post up at the CentOS forums as well as here, but thus far haven’t had any luck with finding answers …

    ~ PeteVG

    i stumbled across this thread trying to resolve the exact `problem you were having. i was able to resolve this with a little logic thought about a few other things that related to this issue.

    if you unpacked wordpress in /var/www, you have to create an alias in the httpd.conf file in order to properly get to /wordpress. the lines in my httpd.conf file looked like this that i had to add:

    # Alias for the WordPress directory
    
    Alias /wordpress "/var/www/wordpress"
    <Directory "/var/www/wordpress">
         Order allow,deny
         Allow from all
    </Directory>

    once that was done and i restarted the server, i had no problem with the install then. prior to that i was getting the same firefox open/save pop up. i hope that works for you or any that might have the same issue. if you extract to /var/www/html, i don’t think you would have that problem because it is the root directory for apache.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress on CentOS 4’ is closed to new replies.