Jump to content

greenhornet

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling
  • Location
    Sydney, Australia

greenhornet's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Also check that port 80 (the default http port) is viewable by the other machines on your network. Even if you dont have a firewall in between the machines either computer might have a software firewall on it. Use a program like nmap (is on the RH9 install disc) to do a port scan on the server from one of your other computers, if port 80 is open and you don\'t have your httpd.conf file setup to allow access to anyone (it is setup like this by default in RH9) then you should be able to see the pages as Arenium said above. If nmap says port 80 isn\'t open then on the server machine as root type; \"service iptables stop\" and try portscanning the server again. This command will turn your firewall off. It will startup again when you reboot the server however.
  2. Hi There, I am running one server with PHP 4.1 and Apache 1.3, in this server there are a number of old html files that have some <?PHP ... ?> scripts in them. These were parsed by PHP fine, as well as all the regular .php files. The following lines are the in Apache 1.3 httpd.conf *snip* <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi </IfModule> <IfModule mod_php4.c> AddType application/x-httpd-php .php .php4 .php3 .phtml .html .htm AddType application/x-httpd-php-source .phps </IfModule> *end snip* Now I am trying to move these websites to a mew server running Apache 2.0 and PHP 4.2, with the following in /etc/httpd/conf.d/php.conf *snip* <Files *.php> SetOutputFilter PHP SetInputFilter PHP LimitRequestBody 524288 </Files> DirectoryIndex index.php index.php3 index.php4 *end snip* and the following in /etc/httpd/conf/httpd.conf; AddType application/x-httpd-php .html .htm I\'m a little confused, this setup on Apache2 seems to break some things, like when a user gets a 404 error it downloads an empty file with the same name as the bogus file they had in the URL? What is the proper way to setup PHP 4.2 (or 4.3) with Apache 2.0??? This will be on a Red Hat 9.0 server with PHP + Apache installed from RPMs. Thanks heaps for your help guys, I love the way this site is focused on PHP hosting and development, I\'ll be spending a lot more time here!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.