Reputation: 13
I've got a problem with installing PHP on my Zyxel NSA 310.
I installed the PHP plugin and I can access my phpMyAdmin for editing MySQL database, but I don't know how to execute my PHP script. Where should I put my .php files to see the results of my code?
I've tried to put my index.php file in many locations, on my ZYXEL hard drive but the output is raw - the script doesn't execute, I see the source of PHP file. When I test this script on the Apache server on my computer, everything is ok. In addition, it can't be a problem with chmod
, because I allowed reading, writing and executing files in all the directories.
Upvotes: 1
Views: 3492
Reputation: 1
I have a nsa540 zyxel, i make all you describe, install phpmyadmin, create www share and publish in web, i can go with my browser in the share, i see the list of files, but the php script won't execute... I see the code script but he won't execute, for exemple i will install dokuwiki, and when i go to the page where is the install.php file, i'can't continue, i only see the code of the file...
I have make many procedure for ffp-stick to have possibilities to install lightppd, but impossible to have thirdsparty repositorie, the procedure don't work = nothing... I create the web_prefix, but nothing...
When i install the wordpress inside the repositorie official, it's ok.
Upvotes: 0
Reputation: 26
First you have to install/enable PHP-MySQL-PhpMyAdmin (System Settings > Package - what you probably did).
Then you have to create a share - say "www" (Sharing > Shares) and publish it (Applications > Web Publishing - select "www" > Publish selected share).
Afterwards you can put your php script into "www" folder and test it in browser: after entering NSA310/www the address changes to NSA310/MyWeb/www and you should see a list of files - your script should be there; click on it and it should execute.
Upvotes: 1