gong pex

Ranch Hand
+ Follow
since Oct 27, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gong pex

Hello all,

please ignore this thread, I've made mistake,

my actual topic is : python-permission-denied

Sorry for inconvenience

Thanks.
1 week ago
Hello,

thanks for reply

I've change my code like this :

cgi.py


This code could run as well on terminal when I run it using command : python3 cgi.py

but when I run it via apache server (apache2),

it cause 500 internal server error on my browser.

and on error.log apache like this :



Note : I've give permission through sudo chmod 777 on : cgi.py and /root/chat-9

My goal is : I can run cgi.py through browser / url

What should I do?

Please help

Thanks
1 week ago
Hello everyone,

I read Meaningless Drivel on this forum which mean I can ask any topic regardless of code or programming language,

Is that true?

please answer

Thanks.
1 week ago
Hello everyone,

Currently my python code has able to be accessed from ubuntu terminal,

but when I call it via CGI / url address it cause 500 internal server error,

here's my code :



this located on : /var/www/html/cgi-enabled/cgi.py

And I also put some test on python with html (test.py):



This would be run if me delete the entire import and from code (for test.py).

This is my CGI settings :


this located on : /etc/apache2/conf-available/cgi-enabled.conf

my python version is : 3.8.2.

And this tutorial where I learnt to setup apache and python : tutorial-apache-python

please someone help me

Thanks
1 week ago
Hello,

Thanks for reply, I've try your advice, here :

the result still same, permission denied,

and I 've run os.geteuid() as you said, it return 0

what should I do next?

please help

Thanks.
3 weeks ago
Hello everyone,

I created python script to run docker command : docker-compose restart,

but it always return permission denied like this :

sudo docker-compose restart: 1: /root/chat-9: Permission denied



This my python script :


I have change permission on my python script file using chmod 777, but the result still same...

for spec : my OS is ubuntu for server so it always root@server.
              folder chat-9 path is like this : /root/chat-9

my Dockerfile actually for nodejs inside folder chat-9


usually if I run docker-compose restart inside folder chat-9 manually it work, but would permission denied if using python.

Please anybody help

Many thanks.
3 weeks ago
oh ok thanks for reply

Sorry for long reply because I'm very busy lately.

Happy new year 2019
1 year ago
PHP
Hello everyone,

it's possible or not to use 'GET' method to send data from ajax multipart form data like this :



Currently I used method 'POST' to send data, but it cause pending / stalled on XHR so all the process aborted.

Q1 : if the method must be 'POST' only , could you tell me the solution to avoid pending on ajax request?

Q2 : does the hosting provider have potential to influence the process? (currently I use free hosting to hosting my website)

Please help me, because I can't upload anything if the process still pending / stalled.

Thanks
1 year ago
PHP
Hello everyone,

Alright, I think it's hard to write my trouble here,

so, please visit :  https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_element_iframe

And then just replace those code there with these :



These code runs well when I clicked on iframe once, but after I clicked another link page eg : Learn HTML

these code didn't work. it looks if iframe / browser unable to caught event (onclick).

Note : I used w3schools demo to made clear my post, because my actual website currently still under development, but the case that I got same with this demo.

Q : How to fix so that event still able to catch by contentWidth, though user click another link page?

please help me.

Thanks
Hello everyone,

I had try to insert data using codeigniter like this :

my views :



my models :



and finally this my controller :



please someone help me

Thanks
5 years ago
PHP
I think I need to try this,

I appreciate this.

Thank you for help
6 years ago
PHP

Have you already tried this step-by-step tutorial of Microsoft?



A : I already try it, but it's shown HTTP error that was I mentioned before, moreover the PHP is not my expectation (5.3.0).

And is using xampp (lite) not an option? That's what I always use for my development environment



Q : If I download and install this app, can I change the PHP version and phpmyadmin that had installed on xampp?

I ask PHP 5.3.0 and phpmyadmin (3.4.3.1) because my web hosting only support with these version.

please help

thanks
6 years ago
PHP
thanks for answer before,

I think my question is wrong.

I think I need to mention my specification to install php :

- my OS is windows 8

- my apache server : apache_2.2.4-win32-x86-openssl-0.9.8d.msi.

- my php installer is : php-5.3.0-Win32-VC9-x86.msi

I had tried to install php using these application, but it didn't work

Q : Are both of my application won't run if I install on windows 8 ?

if can't please give me advice, what's apache server and php that I should download so that can be run on windows 8

note : I had try to install PHP on IIS 8 , but it's shown http error because FastCGImodule is not available on IIS8.

please help

thanks
6 years ago
PHP
Hello everyone,

I had looking on : webpage

on this site, there is php 5.5 VC11 that version for windows 64 bit, but still experimental

and I search for PHP version 5.3.0 for windows 64 bit.

Q : Is there earlier version of PHP installer that for windows 64?(I expect version 5.3.0, because my web hosting only support PHP with that version)

if available, please give me link to download it.

please help

thanks
6 years ago
PHP
it's work

many thanks
6 years ago