× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Trouble Finding php.ini file for Wordpress

a1k3m1
Aspirant

Trouble Finding php.ini file for Wordpress

Hey Guys,

 

I brought a ReadyNAS a few weeks back, I managed to get the Wordpress app installed onto the system, All seems to be working well until I try and upload a theme for Wordpress, 

 

I get an error saying that the file limit size is 2MB and i cannot upload it?..

 

I know this is an error that can be changed in the php.ini file located in the root directories somewhere.. But where can i find this pesky little file on the ReadyNAS?. Is there another way around this issue? as i am unable to even find the data files for Wordpress. i beleive its located somewhere in .../apps/wordpress . but i cannot load up this directory directly.

 

THanks guys, i had read somewhere about using SSH or something, but i have no idea how to use it or really want to after everyone saying to use caution with it.

Message 1 of 14
StephenB
Guru

Re: Trouble Finding php.ini file for Wordpress

What NAS do you have and what firmware is it running?

Message 2 of 14
a1k3m1
Aspirant

Re: Trouble Finding php.ini file for Wordpress

Sorry i should have added this info on the first post Smiley Tongue

 

Model: ReadyNAS 102
Firmware: 6.4.1

Message 3 of 14
StephenB
Guru

Re: Trouble Finding php.ini file for Wordpress

If you are using the default volume name (data), then you will likely find php.ini in \\nasipaddress\data\.apps 

 

First you will need to access that folder with NAS admin credentials using SMB.  The .apps folder itself is also a hidden folder.

 

Second, when you edit it, be careful to use an editor that preserves linux format conventions.  Notepad++ does this, the Microsoft Notepad app does not.  OSX systems (macs) use the same txt format convention as linux, so if you are using a mac, this is not an issue.

Message 4 of 14
a1k3m1
Aspirant

Re: Trouble Finding php.ini file for Wordpress

Thanks Stephen, Im logged into the ReadyNAS with admin credentials but i am not too sure how to do it using SMB (im a complete beginner with this stuff) is this an additional program i need to install to my PC (Windows 10), i have activated it in my settings if that is what you mean?

 

And after logging in to the admin page, if i go to the address \\READYNASIP\data\.apps to find the php.ini i get the following message "The requested URL /data/.apps was not found on this server."

 

You have said that the folder is hidden, is there a way i can unhide it?

 

Thanks again for your help.

Message 5 of 14
StephenB
Guru

Re: Trouble Finding php.ini file for Wordpress


@a1k3m1 wrote:

Thanks Stephen, Im logged into the ReadyNAS with admin credentials but i am not too sure how to do it using SMB (im a complete beginner with this stuff) is this an additional program i need to install to my PC (Windows 10), i have activated it in my settings if that is what you mean?

 

And after logging in to the admin page, if i go to the address \\READYNASIP\data\.apps to find the php.ini i get the following message "The requested URL /data/.apps was not found on this server."

 

You have said that the folder is hidden, is there a way i can unhide it?

 

Thanks again for your help.


You need to be using the admin credentials in file explorer (logging into the web browser as admin won't do it).

 

One way is to run cmd, and then

net use * /delete

net use t: \\READYNASIP\data\.apps /user:admin NASADMINPASSWORD

 

That will map the .apps folder to drive letter T on the PC.  Note the first command just removes any existing SMB connections to the NAS - it doesn't delete anything.

Message 6 of 14
a1k3m1
Aspirant

Re: Trouble Finding php.ini file for Wordpress

I just tried as you explained above, and now im getting this error in Command Prompt

"System Error 86 has occured

The Specified Network Password is not correct"

 

im 90% sure the password i am using is correct as i can log into the web browser using the same password and username.

 

From looking around i found that System Error 86 is related to the 'LAN Manager Authentication Level".. I have no idea what it is or means. Any ideas?

Message 7 of 14
StephenB
Guru

Re: Trouble Finding php.ini file for Wordpress

The username has to be admin for this to work.  Also be very careful on the direction of the slashes.

 

Does the time/date on the PC match the NAS?

 

 

Message 8 of 14
BaJohn
Virtuoso

Re: Trouble Finding php.ini file for Wordpress


@StephenB wrote:

The username has to be admin for this to work.  Also be very careful on the direction of the slashes.

 

Does the time/date on the PC match the NAS?

 

 


Sorry to 'hijack' this slightly, but I have just logged a similar post - apologies for that.

The question I would ask is relevant, as it is

'How do I use the find command when logged in as admin, in the root directory and want to pirnt ONLY the location of ALL php.ini files?'

I used to do Linux years ago, and could (then) do this off the top of my head, but recently I am not as bright as I once was.

Thanks in advance

 


RN516 (6x4TB RAID10 using WD Red Disks) :- R8500, WN2500RP and A7000
Windows 10 pro (64bit):- Intel i7 with 16GB memory .......:D
Message 9 of 14
StephenB
Guru

Re: Trouble Finding php.ini file for Wordpress


@BaJohn wrote:

'How do I use the find command when logged in as admin, in the root directory and want to pirnt ONLY the location of ALL php.ini files?'

 

 


If you are logged in using ssh, then

find . -name php.ini

 

will find all php.ini files in the current folder and its subfolders.  If you do this from the root directory, it will search the data volumes, not just the OS directories.

Message 10 of 14
BaJohn
Virtuoso

Re: Trouble Finding php.ini file for Wordpress

@StephenB wrote:

find . -name php.ini

This worked fine ... as below:-

 

Welcome to ReadyNASOS 6.4.1
Last login: Thu Jan 28 11:23:12 2016 from 192.168.1.4
..
root@XNAS:~# cd /
root@XNAS:/# find . -name php.ini
./etc/php5/cli/php.ini
./etc/php5/embed/php.ini
./etc/php5/apache2/php.ini
..
root@XNAS:/#
 
Now all I need to do is find out which one of these is the one to change, or to create a new one in
/apps/wordpress/web/wp-content/wp-admin (on RN516 with OS 6.4.1).
 

RN516 (6x4TB RAID10 using WD Red Disks) :- R8500, WN2500RP and A7000
Windows 10 pro (64bit):- Intel i7 with 16GB memory .......:D
Message 11 of 14
BaJohn
Virtuoso

Re: Trouble Finding php.ini file for Wordpress

As I could not make up my mine which it might be (or another new php.ini elsewhere),

I edited all 3 files in previous post and gave it a try.

The change was simply to add a zero between the 2 and 'M' of UPLOAD_MAX_FILESIZE = 2M,

allowing 20M to be uploaded. (My file was 5.1 M).

 

It worked which means that I can upload into WordPress any Theme, Plugin etc.

Thanks guys, and especially StephenB.

 

I still have to sort out my FTP to WordPress on another post.

 

 


RN516 (6x4TB RAID10 using WD Red Disks) :- R8500, WN2500RP and A7000
Windows 10 pro (64bit):- Intel i7 with 16GB memory .......:D
Message 12 of 14
a1k3m1
Aspirant

Re: Trouble Finding php.ini file for Wordpress

Im still not having any luck with connecting through command prompt, after trying what i think is the admin account and another account i created i am still getting this Error 86 issue.

 

What would be the default login and password be to the ReadyNAS?

Username: admin
Password: password

is this correct?

 

Sorry to take up all of your time for something so simple 😞

 

 

 

Message 13 of 14
BaJohn
Virtuoso

Re: Trouble Finding php.ini file for Wordpress

If using SSH try typing in 'root' and then using the same passord as used for the 'admin' user.


RN516 (6x4TB RAID10 using WD Red Disks) :- R8500, WN2500RP and A7000
Windows 10 pro (64bit):- Intel i7 with 16GB memory .......:D
Message 14 of 14
Top Contributors
Discussion stats
  • 13 replies
  • 3650 views
  • 0 kudos
  • 3 in conversation
Announcements