Questions tagged [linux]

Linux is a Free (libre), Open Source, Unix-like operating system.

Filter by
Sorted by
Tagged with
2
votes
1answer
743 views

403 Forbidden error was encountered while trying to use an ErrorDocument

I am trying to configure Apache HTTP Server by running a web application using Apache's mod_fgcid, a module for FastCGI. I have put a configuration file which allows the interface of my app to be ...
1
vote
0answers
11 views

Apache/PHP: Internal server error. Untraceable! How is that even possible? [migrated]

I have a Nextcloud server running NextCloudPi (NCP) on a Raspberry Pi 3. NCP is Raspbian/Apache2/PHP/MariaDB stack so to speak. It's run reliably for years. But recently my Nextcloud died! All it does ...
4
votes
2answers
937 views

Apache not working on AWS Linux after reboot - 301 Response code

I have setup an EC2 instance with the Amazon Linux image and installed LAMP and Wordpress as per the Amazon docs. It works fine, serves the default Wordpress page, but as soon as the instance is ...
1
vote
1answer
29 views

Change server structure to be able to view files/folders in browser (Dedictaed server)

I'm trying to deploy Wordpress on a red hat Linux server (dedicated server). I'm trying to access it using the normal URL structure [IP]/[rootfoldername]/[nameofthefile] but it's not working. Note ...
1
vote
1answer
38 views

Is CloudFlare full SSL less secure than Cloudflace full (strict) SSL?

I have a Linux shared hosting on Hostgator, and am using a Full SSL from Cloudflare which Encrypts end-to-end, using a self-signed certificate on the server. How secure is it? What are different ...
0
votes
0answers
15 views

Emails sent from outsourced app return host error when sent to same domain name they came from

I have a client who has Plesk Onyx and they gave me their credentials to check for issue they are having but cant seem to spot it. I don't know Plesk version due that account I have doesn't have ...
2
votes
0answers
60 views

“mod_fcgid: process graceful kill” and 500 error each time a large SQL file is uploaded to phpMyAdmin [closed]

This is what I'm getting when I tried to upload 19MB SQL file to phpMyAdmin. This is part of my php.ini most important config: php_value session.gc_maxlifetime 10800 php_value max_input_time ...
4
votes
2answers
1k views

X-Robot-tag noindex not appearing in header

I am trying to include the following in my response header to all resources in multiple directories (dirone/dirtwo/dirthree/direfour) from an Apache server. X-Robots-Tag: noindex, nofollow In my ...
1
vote
0answers
12 views

Subdomain virtualmin is not working

Hello there and thank you for your time. I have a domain working very well on Linux Server with Virtualmin which is vuelosenglobos.mx. Within vuelosenglobos.mx domain i've created erp....
0
votes
1answer
52 views

Google Pagespeed test, image slowing speed

I have to test the speed from my Website with PageSpeed Insights, it found what slow my sites, I have to try how here to say, but nothing to change... My Website has with SSL, https://linuxusers....
0
votes
0answers
41 views

Migrate from Virtualmin to Plesk or cPanel (specifically the files and databases)

I have a dedicated CentOs 7 server with Virtualmin and quite a few domains on it. I would like to migrate them to an Ubuntu 18.04 server with Plesk. However, I may would be willing to migrate ...
3
votes
0answers
31 views

Server receiving hit from its own DigitalOcean public IP Address. Why is that and how to resolve this?

I have a MEAN Stack application deployed on a Digital Ocean Droplet and I am using Nginx as proxy server to handle the request and redirect to application's particular port. I wrote a short script in ...
1
vote
1answer
210 views

Some users are redirected to cpanel cgi-sys/defaultwebpage.cgi while other don't

I have a website which used to be hosted on a managed Bluehost plan that includes a cPanel by default. for some non-technical reasons, I've decided to move the website from Bluehost to an unmanaged ...
2
votes
1answer
3k views

What does “Require all granted” on Directory / (root) REALY means? (Apache 2.4 on CentOS7

im sure, this question looks really stupid first. but i need a "second opinion" on this, even i did some research on my own but i am still unsure about this. By default the Apache Configuration on ...
0
votes
1answer
17 views

Log folder permissions in Linux servers: Is it a good idea to use 0666?

Its a well known problem: When migrating or deploying systems often log folders are not writable because of permission problems. But giving 0777 on them can be a security problem in a production ...
0
votes
0answers
18 views

serving conf files returns 403 - cpanel

I recently moved to a new linux hosting with cpanel. I provide static .conf file to my clients. They can download them directly. They use to download them directly without any problem going to http://...
7
votes
2answers
30k views

Have disabled apache site config file 000-default.conf, but it still seems active. Why?

I added a file mysite.conf to my apache sites-available folder with the correct settings, then enabled it and reloaded apache, and it isn't working. I want to disable the default site config as ...
1
vote
1answer
645 views

How can I prevent people from looking at a listing of files in parent directory if I haven't uploaded index.html? [duplicate]

Possible Duplicate: How to restrict the download of all files in a folder? I haven't uploaded index.html or index.php to my root directory. How can I prevent people from looking at a listing of ...
3
votes
1answer
213 views

Different cPanel physical memory usage with free -m and top terminal command

So, I have a cPanel access. In the cPanel statistic, I see that my Physical Memory Usage is 2 GB and almost full. When I go to terminal and run free -m I got this: total used ...
1
vote
1answer
83 views

Server timeout from outside, network unreachable from inside

I have a Linode instance (Debian 7.4) running Apache server (2.2.22) that I mostly use for just storing files that I can then easily link to from elsewhere. I've additionally purchased a domain from ...
0
votes
1answer
1k views

HTTPS + IP not redirecting to configured Domain Name and gives “Your connection is not private” [Nginx/Ubuntu]

I am using NGINX for 301 redirects on Ubuntu and reverse proxy for my Web Application and aim is to redirect traffic to non-www url such as https://mywebapplication.example. So with my current ...
2
votes
0answers
35 views

Identify a user agent consuming massive bandwidth downloading and uploading specific files but never sending a referrer

Blank HTTP_REFERER user agents are downloading and uploading a couple specific files to and from our server! This is causing HUGE bandwidth and CPU usage. We blocked blank referers on our CDN and ...
4
votes
1answer
280 views

addon domains keeps adding primary domain in URL

I took new vps plan from inmotionhosting.com and moved my host from previous hosting company. I have several cpanel accounts in the whm, imported them all using the migration tool from server to ...
1
vote
0answers
112 views

which image of AWS to choose for PHP? [closed]

I want to set up a linux server that will run moodle (an application in PHP) on AWS. I think the best two images to choose from are: Amazon Linux 2 AMI (HVM) Amazon Linux 2 comes with five years ...
1
vote
0answers
97 views

What command will restart Apache from a PuTTY terminal to manage a cPanel server?

Once when we logged on to the server via putty terminal with authorised SSH credentials What is the command given to the putty terminal for restarting the Apache server after loading some extensions? ...
3
votes
1answer
293 views

Proper way of allowing Apache to serve from an encrypted folder (/home dir)

I have a folder in my home folder, /home/user/mywebsite. My home folder was encrypted when I installed Ubuntu. I have a symlink in /var/www/fleet -> /home/user/mywebsite. My configuration file: <...
2
votes
0answers
334 views

503 service unavailable error for ALL files except PHP files when using Apache virtual hosts

Apache 2.4/ PHP 7.0 Virtual hosts setup working correctly. There are no issues loading JPG files when pointing directly to the server using IP address. <VirtualHost *:80> ServerName example....
1
vote
1answer
99 views

Sandbox a folder in linux / CPanel

Is it possible to entirely sandbox a folder on linux? This is because certain users will be able to upload any files they want to this folder and execute PHP scripts (which in turn can execute more ...
5
votes
2answers
1k views

Check if an image is already optimized for the web

I have found this tool that optimizes images for the web. What is surprising for me (of course, there will be other tools like this :)) is that it only optimizes the uploaded image if it is possible, ...
0
votes
2answers
3k views

Why doesn't Apache allow access to files outside the web root --from within index.html?

As the title states.. I have the following organization to my project but am unable to access the related CSS and JavaScript files from within my HTML code --unless I create symbolic links from the ...
1
vote
1answer
4k views

How do I use URL redirection with reverse proxy?

My requirement is to redirect the URL, which is running on port 80 with reverse proxy. I guess I would have to use URL redirection, reverse proxy together. There is already a web-domain active like : ...
1
vote
0answers
25 views

Can Linux run ASPX coded websites? [closed]

My website is a set of ASP.NET/ASPX files with C# code embedded in <script runat=server> blocks with some DLLs - all .NET managed code, nothing weird. I wrote it so I'm able to make small ...
2
votes
1answer
4k views

Logged Out Too Soon; PHP Sessions Expire Too Quickly. Is this a Linux, CentOS, Cookies, CPanel problem?

Recently, I've been getting logged out sooner than expected on several websites that I manage on Linux servers. The problem started spontaneously a few months ago. At the time, I had not made any ...
2
votes
1answer
4k views

Fail2Ban & Port-Scanning

Is there any filter built into Fail2Ban to temporarily ban any IP addresses which attempt port scanning activities (provided that iptables logs these activities)?
19
votes
4answers
67k views

Allowing access to an Apache virtual host from the local network only

I have a web page on a Linux server I administer, running Apache 2.2. This server is visible to the outside world for some other services. I would like to configure Apache so that a given virtual ...
2
votes
1answer
29 views

Some domains defaulting to first hosting package on WHM

Ok so I have a linux hybrid server running WHM/cPanel. I have the slight problem that when someone points their domain at our server, if there is no hosting package set up yet it defaults to the first ...
0
votes
1answer
362 views

.htaccess redirect based HTTP_REFERER [closed]

Our webpage was redesigned and moved to a web CMS platform. This means some of our blog posts shared via Twitter just link to a 404 page. I am wondering if it is possible using .htaccess or something ...
3
votes
0answers
63 views

How I give Apache access to users vhosts and keep it secure?

I have 2 RHEL 7 servers running Apache 2.4 behind a load-balancer. Both connect to an NFS data store where web pages are held and both servers run ssh to allow users to put web data on them. The users ...
3
votes
1answer
649 views

Problem with missing JSON functions on PHP 5.2.6 / Plesk 8.4

I have a vserver running openSuse 10.3, Apache 2 and Plesk 8.4. I can update/upgrade neither, as it is apparently not recommended to upgrade openSuse 10.3 (and an update to the EOL 10.4 does not seem ...
2
votes
1answer
390 views

Session cookie lifetime in PHP different on RHEL vs Mint?

Sorry if this is long-winded: I have the same site running on two servers (server_old & server_new). It's a hand-rolled PHP & Ajax thing I made for managing my inventory and loaning out ...
4
votes
4answers
5k views

Can file encoding change when FTP is used?

I'm developing a web application which downloads a number of web pages using PHP curl. It then uses diff to compare the files as they change each day. I reported a problem a few weeks back where ...
4
votes
1answer
277 views

Trying to install web2py on a shared server (Dreamhost)

I've been trying to install web2py on a subdomain on my shared account at Dreamhost. There used to be some info in their knowledge base, but it has been removed for outdated. I've found lots of ...
3
votes
1answer
2k views

Enable remote access to MySQL server (Linux)

How can I enable remote access to my MySQL Debian server?
0
votes
1answer
43 views

File priority in Joomla website

I have a Joomla site which is hosted on a Linux server which has 2 files, sitemap.xml and sitemap.html. When I try to access example.com/sitemap, sitemap.xml shows up instead of sitemap.html. Can ...
0
votes
1answer
923 views

Multiple Web servers on a single IP [closed]

A few other questions on here cover how to do this on a single server but I'm having trouble figuring out how to build this with multiple Web servers behind a single external IP. I have a simple ...
1
vote
0answers
659 views

Cannot access WHM and SSH/root after a configuration in Host Access Control

I added my IP (like 172.32.1.0/255.255.255.0) to allow access for ssh, whm and cpanel in WHM -> Host Access Control. Then, I added all IP to deny access for them. However, after saved changes, I lost ...
3
votes
3answers
102 views

If i use 301 redirects (to bounce the requests), will the other destination be aware of my Server IP?

(Just for the knowledge) I wonder, let's say one day, when my Site is suddenly having some attacks at the login page (e.g: /login.php). If i don't bother about my Login page anymore, and i want to ...
1
vote
2answers
111 views

Backing up Web Server Locally

As an added backup, I'd love to have an external hard drive sitting here with my Mac that backs up our web server. Is there any way to have a total backup initially done of the entire web server, with ...
1
vote
2answers
450 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or cpanel....
1
vote
1answer
37 views

Possibility of creating an Amazon AWS EC2 instance from the Linux command line?

I'm trying to figure out if it is possible to create an EC2 instance (say of OmniOS) from CLI in my Linux. As per my understanding, it is seeming pretty much straight forward to launch an instance but ...