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
Tag: apache
Composer & Linux production server – autoload not working
I have already tried searching for this question and seen a couple of answers, but no luck… I have composer installed with Slim Framework v3. I am using autoload for my files using PSR-4 in the composer.json file like this: And this is my folder structure: I am running it on a localhost Mac OS X El-Capitan using Apache 2.4
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
Correct way to set a crontab to stop and start mysql and httpd
i’m trying to create a shell script to stop and start mysql and httpd every saturday on 3am, i’m doing it: myscript.sh: and setting the crontab to: It’s correct way to do it? i’m stopping and starting mysql and httpd cuz use of memory, should i do some check before stop them? or i can do it without problems? another
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
Use XAMPP-phpmyadmin database of windows in Linux XAMPP
I was on windows and using XAMPP(installed somewhere else than C:/ ) Now i have moved on to LINUX and installed LAMPP. So, i have this XAMPP folder from windows and i copied the project files from htdocs and now i need the database which i didn’t exported while i was on windows. I tried to copy the phpmyadmin folder