I have been trying to run .py scripts but to no awail
I have successfully ran .sh scripts so I know it is possible
I even put the code
- Code: Select all
#!/bin/sh
printf "Content-Type: text/html\n\n"
printf "Hello Wolrd!\n"
in my test.py file and it worked fine.
I just cannot run python files.
this is the error I get, any help is appreciated
- Code: Select all
[Tue Nov 07 19:46:58.172091 2023] [cgi:error] [pid 25378] [client 127.0.0.1:38348] AH01215: /bin/python3: symbol lookup error: /bin/python3: undefined symbol: XML_SetHashSalt: /opt/lampp/cgi-bin/test.py
[Tue Nov 07 19:46:58.172180 2023] [cgi:error] [pid 25378] [client 127.0.0.1:38348] End of script output before headers: test.py
and this is my python script code
- Code: Select all
#!/bin/python3
print("Content-Type: text/html\n\n")