php-spx icon indicating copy to clipboard operation
php-spx copied to clipboard

installation documentation not super clear

Open sunnysideup opened this issue 2 years ago • 1 comments

Hi,

This is what I run on ububtu 22.04 / php 8.2:

git clone https://github.com/NoiseByNorthwest/php-spx.git
cd php-spx
git checkout release/latest
phpize
./configure
make
sudo make install

Then I add the following

extension=spx.so
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1"

to the following files: /etc/php/8.2/apache/php.ini /etc/php/8.2/cli/php.ini

Then I run

sudo service apache2 restart

No I am expected to access the tools using in the command line like this:

SPX_ENABLED=1 composer update

IN the root dir of my PHP project.

Output is:

PHP Warning:  PHP Startup: Unable to load dynamic library 'spx.so' (tried: /usr/lib/php/20220829/spx.so (/usr/lib/php/20220829/spx.so: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/spx.so.so (/usr/lib/php/20220829/spx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

And in the brower, I navigate to:

mysite.org.nz.ss4/myurl?SPX_KEY=dev&SPX_UI_URI=/.

and nothing new / different happens (just see the normal page).

One thing that was not super clear is when you talk about http://localhost/ are you talking about my local website or your local tool that should be visible there?

I think you need to change install details into:

a. basics / tldr; and b. detailed options c. exceptions / gotchas / etc.

THANK YOU TTHANK YOU

sunnysideup avatar Apr 07 '24 03:04 sunnysideup

I'm sure that the README could be improved in many ways, but I need more concrete suggestions. For example the basic use cases are already described before advanced ones.

Regarding your issue

PHP Warning:  PHP Startup: Unable to load dynamic library 'spx.so' 

it looks like there is something broken in your env, between make install and your PHP installation files.

NoiseByNorthwest avatar Apr 10 '24 14:04 NoiseByNorthwest