PHP Fedora 13

How to install PHP on Fedora 13

  1. Install PHP
    yum install php php-soap php-pear php-devel

How to configure PHP on Fedora 13

  1. Open the PHP configuration file
    gedit /ect/php.ini
  2. Increase PHP script max execution time
    Replace max_execution_time = 30 with max_execution_time = 120
  3. Increase PHP script max upload size
    Replace upload_max_filesize = 2M with upload_max_filesize = 50M
    Replace post_max_size = 8M with post_max_size = 50M
  4. Save and Close the file
  5. Restart the Apache Server
    service httpd restart

How to test PHP on Fedora 13

  1. Create a localhost phpinfo testing website
    1. Create the phpinfo project folder
      mkdir /usr/share/phpinfo
    2. Create the /usr/share/phpinfo/index.php server file with the following text
      <?php
         phpinfo();
      ?>
    3. Create the /etc/httpd/conf.d/phpinfo.conf Apache configuration file with the following text
      # phpinfo - PHP utility function for displaying the php configuration
      #
      # Allows only localhost by default
      Alias /phpinfo /usr/share/phpinfo
      <Directory /usr/share/phpinfo/>
         order deny,allow
         deny from all
         allow from localhost
      </Directory>
  2. Restart the Apache Server
    service httpd restart
  3. Visit localhost/phpinfo in your web browser
    Note: You should see the phpinfo output

Open Source Software: