Skip to content
Advertisement

Tag: apache

Shell script executed from php, but commands in sh script wont run

I’m making a PHP page with the purpose of creating and activating Apache VirtualHost files. The pages generates the files and places it in /etc/apache2/sites-available/. After that a shell script is called by with: shell_exec(“/bin/sh /usr/local/bin/myscript.sh”); myscript.sh: The script seems to be executed (the sleep time corresponds to the amount of time it takes to run and if I don’t

Apache Access Control to IPs (X-Forwarded-For) or valid-user

I used to block access to certain folder of my Apache server using valid-user or ip directive, like the following: Now, I have placed my server behind an F5-BIGIP device which won’t let me fully DNAT client’s connections. The device is also behind a Linux server that serves as gateway with DNAT/SNAT rules hat are working accordingly. I can log

What is the opposite of mod_wsgi-express start-server

I accidentally closed the terminal after running this command And I can’t find the resource on how to stop the server What is the command? Answer The solution I opened terminal and killed the process via the pid I opened the terminal and ran the following code to get the pid of the process This is a sample response I

Makefile in Linux error: *** No rule to make target `all’. Stop

I’m installing Apache on my Linux server RedHat 6.4. I follow the following guide: http://squirrelmail.org/docs/admin/admin-3.html When executing the make file, i got the following error: Can you please suggest how I can proceed further? Answer SquirrelMail is in the epel.repo https://fedoraproject.org/wiki/EPEL https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

How to access website on a Linux server in Azure? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Accessing files outside the root directing

My client asked me to do a website where a user can enter a path on the machine, PHP should scan the path and load all the media files in the directory and subdirectories. The user can enter any path, Desktop, or external drives, whatever, outside the root directory. That’s what the client wants and he’s running on Linux. I

Apache & SFTP permissions on AWS EC2 Linux hosting

Using SSH I’ve granted access to my SFTP clients user “ec2-user” with the following command: sudo chown -R ec2-user /var/www/html However I also need to grant access to Apache which I can do with the following command: sudo chown -R apache:apache /var/www/html I assumed this would grant access to both, but this is not the case. How can I apply

Advertisement