PHP Fedora 13
How to install PHP on Fedora 13
-
Install PHP
yum install php php-soap php-pear php-devel
How to configure PHP on Fedora 13
-
Open the PHP configuration file
gedit /ect/php.ini
-
Increase PHP script max execution time
Replace max_execution_time = 30 with max_execution_time = 120
-
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
-
Save and Close the file
-
Restart the Apache Server
service httpd restart
How to test PHP on Fedora 13
-
Create a localhost phpinfo testing website
-
Create the phpinfo project folder
mkdir /usr/share/phpinfo
-
Create the /usr/share/phpinfo/index.php server file with the following text
<?php
phpinfo();
?>
-
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>
-
Restart the Apache Server
service httpd restart
-
Visit localhost/phpinfo in your web browser
Note: You should see the phpinfo output