Title: Php.ini error on line 2
Last modified: August 21, 2016

---

# Php.ini error on line 2

 *  [webow](https://wordpress.org/support/users/webow/)
 * (@webow)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/phpini-error-on-line-2/)
 * I have errors for every open link on my site. Error log sample is here>
    PHP:
   syntax error, unexpected ‘(‘ in /home/mysite/public_html/wp-admin/php.ini on 
   line 2, referer: [http://mysite.com/category/topic-link](http://mysite.com/category/topic-link)
 * My php.ini have just 2 lines
    <?php phpinfo(); ?>
 * How to fix this errors?

Viewing 1 replies (of 1 total)

 *  [David Sword](https://wordpress.org/support/users/davidsword/)
 * (@davidsword)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/phpini-error-on-line-2/#post-4704386)
 * `php.ini` is a server file, to overwrite your servers php settings, not a PHP
   file. ref: [http://us3.php.net/manual/en/ini.php](http://us3.php.net/manual/en/ini.php)
   || [http://support.hostgator.com/articles/what-is-php-ini](http://support.hostgator.com/articles/what-is-php-ini)
 * if you want to see your `phpinfo()` name the file something like `info.php` which
   is a php file

Viewing 1 replies (of 1 total)

The topic ‘Php.ini error on line 2’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [David Sword](https://wordpress.org/support/users/davidsword/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/phpini-error-on-line-2/#post-4704386)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
