Title: /wp-admin/install.php just shows code
Last modified: July 23, 2024

---

# /wp-admin/install.php just shows code

 *  Resolved [shawnlauzon](https://wordpress.org/support/users/shawnlauzon/)
 * (@shawnlauzon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/)
 * I have a new installation on AWS Linux 2023. I’m at the point in the install 
   where I go to the root URL (or `/wp-admin/install.php`), and it should run the
   setup script. However, all I get is the text file which starts like this:
 * `/** * The base configuration for WordPress * * The wp-config.php creation script
   uses this file during the installation. * You don't have to use the website, 
   you can copy this file to "wp-config.php" * and fill in the values. * `

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

 *  [Aaron Robertshaw](https://wordpress.org/support/users/aaronrobertshaw/)
 * (@aaronrobertshaw)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/#post-17908788)
 * Hi [@shawnlauzon](https://wordpress.org/support/users/shawnlauzon/)
 * At a glance, it would appear that your server isn’t processing PHP files correctly
   hence serving the install.php file as plain text.
 * This usually occurs when the PHP module isn’t installed or configured correctly
   on the web server. A couple of things to look at could be:
    1. **PHP installation** e.g. running `php -v` on your AWS Linux 2023 instance should
       return the current PHP version.
    2. **Web Server Configuration**: Ensure the php module is enabled in your web server
       config. Where and how you do this might depend on what AWS Linux 2023 uses. 
       Unfortunately, I’m not familiar with it at all.
    3. **Permissions**: Make sure the web server has permissions to read the WordPress
       directory
 * I hope that helps!
 *  Thread Starter [shawnlauzon](https://wordpress.org/support/users/shawnlauzon/)
 * (@shawnlauzon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/#post-17910217)
 * Thanks [@aaronrobertshaw](https://wordpress.org/support/users/aaronrobertshaw/),
   it would make sense for this to be the problem, but it doesn’t seem so.
 *     ```wp-block-code
       [ec2-user]$ php -vPHP 8.3.7 (cli) (built: May 7 2024 16:35:26) (NTS gcc x86_64)Copyright (c) The PHP GroupZend Engine v4.3.7, Copyright (c) Zend Technologieswith Zend OPcache v8.3.7, Copyright (c), by Zend Technologies
       ```
   
 * And also `phpMyAdmin` works for me, for example the URL at /phpMyAdmin/index.
   php renders fine. Any other idea?
 * EDIT: Oh, and permissions look good as well, everything is:
   `-rw-rw-r--. 1 ec2-
   user apache 405 Jul 23 17:42 index.php`
    -  This reply was modified 1 year, 10 months ago by [shawnlauzon](https://wordpress.org/support/users/shawnlauzon/).
 *  Thread Starter [shawnlauzon](https://wordpress.org/support/users/shawnlauzon/)
 * (@shawnlauzon)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/#post-17910258)
 * Ahh, so it was a permissions problem! But not in reading, but that the `config.
   php` file that I created wasn’t writable by `apache`. I noticed this when I deleted
   the file and allowed the WP script to create the file itself.
 * To the AWS instructions [https://docs.aws.amazon.com/linux/al2023/ug/hosting-wordpress-aml-2023.html](https://docs.aws.amazon.com/linux/al2023/ug/hosting-wordpress-aml-2023.html)
   are missing this. Thanks for the help [@aaronrobertshaw](https://wordpress.org/support/users/aaronrobertshaw/),
   looking more at permissions helped me figure it out.
    -  This reply was modified 1 year, 10 months ago by [shawnlauzon](https://wordpress.org/support/users/shawnlauzon/).
 *  [Aaron Robertshaw](https://wordpress.org/support/users/aaronrobertshaw/)
 * (@aaronrobertshaw)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/#post-17911292)
 * I’m glad you were able to sort it out.
 * If you get the chance, it might be worth providing some feedback to AWS to help
   out others in the future 🙏

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

The topic ‘/wp-admin/install.php just shows code’ is closed to new replies.

## Tags

 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [Aaron Robertshaw](https://wordpress.org/support/users/aaronrobertshaw/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/wp-admin-install-php-just-shows-code/#post-17911292)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
