Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation documentation not super clear #244

Open
sunnysideup opened this issue Apr 7, 2024 · 1 comment
Open

installation documentation not super clear #244

sunnysideup opened this issue Apr 7, 2024 · 1 comment

Comments

@sunnysideup
Copy link

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

@NoiseByNorthwest
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants