Skip to content

[GSoC2025] - Use nightly build & Add xdebug logging#658

Merged
alikon merged 5 commits intojoomla-extensions:5.x-devfrom
mahmoudmagdy1-1:codespaces-patch-2
Aug 22, 2025
Merged

[GSoC2025] - Use nightly build & Add xdebug logging#658
alikon merged 5 commits intojoomla-extensions:5.x-devfrom
mahmoudmagdy1-1:codespaces-patch-2

Conversation

@mahmoudmagdy1-1
Copy link
Copy Markdown
Contributor

Pull Request for Issue # .

Summary of Changes

This PR uses stable nightly version of Joomla for the github codespaces, as well as add logging in the xdebug setup

Testing Instructions

Expected result

Actual result

Documentation Changes Required

@alikon alikon added this to the Weblinks 5.0.0 milestone Aug 22, 2025
xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host=localhost
error_log=/var/log/php_errors.log
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to move error logging setting to php.ini otherwise nothing is logged on the file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something like

 apt-get clean && rm -rf /var/lib/apt/lists/* && \
    # Create a custom PHP configuration file to enable file uploads
    # Create the log directory and file with correct permissions for the www-data user
mkdir -p /var/log/ && \
touch /var/log/php_errors.log && \
chown -R www-data:www-data /var/log/ && \
chmod 766 /var/log/php_errors.log && \
echo "upload_tmp_dir = /tmp" > /usr/local/etc/php/conf.d/custom-php.ini && \
echo "post_max_size = 64M" >> /usr/local/etc/php/conf.d/custom-php.ini && \
echo "upload_max_filesize = 64M" >> /usr/local/etc/php/conf.d/custom-php.ini && \
echo "log_errors = On" >> /usr/local/etc/php/conf.d/custom-php.ini && \
echo "error_log = /var/log/php_errors.log" >> /usr/local/etc/php/conf.d/custom-php.ini && \
echo "error_reporting = E_ALL" >> /usr/local/etc/php/conf.d/custom-php.ini

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Just tried it and it works, thanks

xdebug.start_with_request=yes
xdebug.client_port=9003
xdebug.client_host=localhost
error_log=/var/log/php_errors.log
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then remove from xdebug.ini error_log=/var/log/php_errors.log as declared on php.ini

xdebug.client_port=9003
xdebug.client_host=localhost
error_log=/var/log/php_errors.log
error_reporting=E_ALL
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@alikon alikon merged commit d38d95c into joomla-extensions:5.x-dev Aug 22, 2025
1 check passed
@alikon
Copy link
Copy Markdown
Collaborator

alikon commented Aug 22, 2025

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants