Jump to content

studius

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by studius

  1. Hi! I recently reviewed my disk usage on my hosting account and found that there was a folder called "tmp" in the root directory which was using up almost a 100 MB of space. How do I go about figuring out which files in this folder I can delete and which are essential files? I would like to minimize the space this folder is currently taking up as much as possible. Thank you, studius
  2. a. studius b. Tommy c. studius.heliohost.org
  3. I was able to create the new database through cPanel, but I am still getting the error message: "Access denied for user 'studius_corp'@'tommy.heliohost.org' (using password: YES)" when I use mysqli_connect.
  4. After my account got deleted due to some server problems on Tommy a couple months ago, I tried starting a website again from scratch on my new account (thankfully I had the backed up files). This time, I am not even able to create a database in phpMyAdmin because apparently access is denied for my user. phpMyAdmin also shows I am connected to localhost:3306 while I used to be connected to tommy.heliohost.org. Please let me know how I can fix this issue. My website is nvitro.gq where you will find the error messages displayed. Thank you for your time. Best regards.
  5. Works! Thank you for the quick fix and I'm happy that it helped others too.
  6. Hi, I recently encountered a 500 Internal Server error on my site @ https://studius.tk which has been online without issues for the past few months. The error appeared suddenly and without any significant changes being made to permissions etc. which were set correctly for PHP files and folders containing PHP files. This seems to be a problem with the host, so I am posting this here with the hope that it will be resolved. Thanks!
  7. Yes, I have the same exact issue. When will this be resolved?
  8. Hi wolstech, It works!!! Clearing the browser cookies since adding the session cookie code did the trick. I was also able to modify the length of the cookie so that users were automatically logged out after 30 mins of inactivity. Good stuff, thank you for all your help!
  9. Hi wolstech, Yes, I'm checking $_SESSION['is_logged_in'] which is set to 'true' if login is successful. I've checked my code for syntax errors before and after adding that line and both come out clean. The logic checks out too, as everything on valid.studius.gq (the subdomain where login is located) is able to use all the $_SESSION variables. Only other subdomains are having trouble accessing the variables.
  10. Hi wolstech, Thank you for the reply. I think I was looking for something like this. I added the above function to all my php documents but for some reason I am still getting the same result. Basically, each of the protected pages on my site has an if-else php script that says "if (user is logged in) {show content} else {echo error message}" and even with the cookie set, I am getting the error message when logged in. I am not sure if this has something to do with the problem, but my login PHP script itself is located on a subdomain (valid.studius.gq) while the page the I am trying to access is also on a subdomain (matic.studius.gq) similar to how Google logs users in at accounts.google.com and provides content at, for example, drive.google.com. Must I move my login to the root folder of the domain (studius.gq) for the cookie to work or is something else the issue? Please help, thank you.
  11. Hello, I've done a lot of research but cannot figure out how to make session variables created on one subdomain or root domain accessible to all other subdomains of that root domain. For example, if I login to my account on https://valid.studius.gq, the login php script sets the session variable "logged_in" to true. This allows access to all pages that are protected within the subdomain. However, the same session variable is not valid at https://matic.studius.gq and it redirects back to the login page. Any and all suggestions are appreciated. Thank you.
  12. Hello again, I'm getting the same 500 Internal Server Error again but this time I've checked and double checked all the permissions for directories with php files (755) and php files (644). This time, all pages on the domain are giving the same error, regardless of whether they are html or php files. The last thing I did before this happened was modify the .htaccess file on the root folder of my domain (studius.gq). Please help, thank you.
  13. Hello, I am trying to run PHP code in an HTML file. I wish to maintain the UX of my website by avoiding the .php extension on pages that my users see whenever possible. For this reason, I am trying to find a way to run PHP within an HTML file. Upon doing research I found that it is possible to write a .htaccess file but was unsure what code to add to the .htaccess file so that it would work properly on Heliohost's servers (mine is Tommy). For an Apache server for example, the .htaccess file to solve the issue would be : AddType application/x-httpd-php .html Please let me know the best way to achieve the desired functionality on Heliohost servers. Thanks.
  14. Hello, I am aware that the disk usage for my Heliohost account is 85% and I am getting worried. This is probably due to the several Softaculous scripts that I am using to run various subdomains of my my main site. However, I was wondering what happens when you reach your quota (1 GB)? Does the service suddenly stop or will it be slower? I need to know as I need to plan whether to cancel some of my projects or clean up. Thanks!
  15. Hello, Thanks for the info! I guess this means I can safely ignore the messages then.
  16. Hello, I am using ClipBucket, a Softaculous script I downloaded through the cPanel Softaculous Scripts Installer. However, after setting it up, in the admin area I am receiving a notification telling me: You must update "Server Configurations". When I tried to troubleshoot with the official ClipBucket website, it tells me that I must make certain modifications to PHP such as the following new settings: max_execution_time = 7500 (must be at least 7200)post_max_size = 100M (must be at least 50M)upload_max_filesize = 100M (must be at least 50M)memory_limit = 100MRight now, the max_execution time is 30, post_max_size is 32M, and upload_max_filesize is also 32M. The memory_limit is fine. Please advise on how I should proceed. Thanks!
  17. The path to the script I'm currently on is https://hier.studius.gq/clubs.php and when users attempt to access this page I want to redirect them to https://valid.studius.gq/index.php if they are not logged in. The second page will execute https://valid.studius.gq/login.php that returns a session variable "logged_in" that I then use as a variable in the first script to check log in status using boolean logic. However, on the loading the page clubs.php itself I receive a 500 Internal Server Error possibly because of something going on between the two.
  18. Hello, I came across another 500 Internal Server Error when I tried to access a page using PHP from a PHP page in another directory path. Here is the code below: <?phpob_start();require("../valid/db.php");if (!$_SESSION['logged_in']) {header("Location:../valid/login.php");die();}?> Where am I going wrong and why is the redirect not occurring?
  19. Oh, thank you so much. With all the 6s and 4s I thought I had them all but missed one.
  20. Here is the link: http://valid.studius.gq/verify.php All the permissions seem to be set correctly and I've tried searching for the .htaccess file but it doesn't show up in cPanel's File Manager. Thanks!
  21. Hello, I had a similar issue with 500 Internal Server Error. All my permissions are correct (755 for directories and 644 for PHP files). The error also mentions the following: "Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request." as well as something about an using an ErrorDocument to handle the request. What does this mean and how do I proceed? Thanks.
×
×
  • Create New...